:root {
  --ink: #0b1118;
  --ink-2: #111b26;
  --ink-3: #172532;
  --paper: #f5f2ea;
  --paper-2: #fffdf7;
  --text: #e8edf1;
  --muted: #a8b6c2;
  --dark-text: #17212b;
  --orange: #ff8a1f;
  --orange-2: #ffb25f;
  --ice: #70d7ff;
  --temple: #d6a64f;
  --triple: #79e36b;
  --line: rgba(188, 211, 227, 0.17);
  --radius: 18px;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(112, 215, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 215, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 3%, rgba(255, 138, 31, 0.12), transparent 31rem),
    radial-gradient(circle at 92% 12%, rgba(112, 215, 255, 0.09), transparent 34rem),
    var(--ink);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  font-family: Inter, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a { color: inherit; }
img { max-width: 100%; }
.wrapper { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; color: var(--ink); background: var(--ice); border-radius: 9px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 24, 0.93);
  backdrop-filter: blur(18px);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.site-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.site-logo img { display: block; width: 132px; height: auto; }
.site-logo span { padding: 3px 8px; color: var(--orange-2); border: 1px solid rgba(255, 138, 31, 0.34); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.desktop-nav { flex: 1 1 auto; }
.desktop-nav ul, .mobile-menu ul { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a, .mobile-menu a { display: block; padding: 9px 10px; color: var(--muted); border-radius: 10px; font-size: 13px; font-weight: 760; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: #fff; background: var(--ink-3); }
.header-actions { display: flex; gap: 9px; }
.language-switch {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--ice);
  border: 1px solid rgba(112, 215, 255, .25);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}
.language-switch:hover { color: #fff; background: rgba(112, 215, 255, .08); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { cursor: pointer; list-style: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--ink-3); font-weight: 800; }
.mobile-menu summary::-webkit-details-marker { display: none; }

.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 19px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 11px;
  color: #1c1005;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 25px rgba(255, 138, 31, .16);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .17s ease, box-shadow .17s ease, filter .17s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(255, 138, 31, .22); }
.btn-secondary, a.btn-secondary { color: #fff; background: var(--ink-3); border-color: var(--line); box-shadow: none; }
.header-actions .btn { min-height: 40px; padding: 9px 13px; font-size: 13px; }

.breadcrumbs { margin: 25px 0 10px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #5f7383; }
.breadcrumbs a { color: var(--ice); text-decoration: none; }
main [id] { scroll-margin-top: 96px; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(270px, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin: 12px 0 25px;
  padding: clamp(30px, 5.5vw, 66px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(130deg, rgba(255, 138, 31, .10), transparent 34%),
    linear-gradient(305deg, rgba(112, 215, 255, .09), transparent 40%),
    var(--ink-2);
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.025) 50%, transparent 50.2%); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 10px; color: var(--orange-2); font-size: 12px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.independent-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px; padding: 5px 10px; color: #c7d4dd; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.16); font-size: 12px; font-weight: 760; }
.independent-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(112,215,255,.1); }
.hero h1 { max-width: 820px; margin: 0 0 18px; font-family: "Space Grotesk", Manrope, Inter, sans-serif; font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow):not(.independent-badge):not(.microcopy) { max-width: 790px; color: #d4dde4; font-size: clamp(17px, 1.8vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.microcopy { margin: 13px 0 0; color: #8799a7; font-size: 12px; line-height: 1.5; }

.tower-scene { position: relative; min-height: 390px; display: grid; place-items: end center; }
.tower-scene::before { content: ""; position: absolute; bottom: 20px; width: 90%; height: 1px; background: linear-gradient(90deg, transparent, rgba(112,215,255,.35), transparent); box-shadow: 0 0 24px rgba(112,215,255,.24); }
.tower-build { position: relative; display: flex; flex-direction: column-reverse; align-items: center; width: 260px; padding-bottom: 21px; }
.tower-floor { position: relative; width: var(--w); height: 31px; margin-top: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px 4px 9px 9px; background: linear-gradient(90deg, rgba(255,255,255,.07), transparent 16%, rgba(255,255,255,.05) 80%), var(--floor, #223747); box-shadow: 0 8px 22px rgba(0,0,0,.25); transform: translateX(var(--shift, 0)); }
.tower-floor::before { content: ""; position: absolute; inset: 8px 10px; background: repeating-linear-gradient(90deg, rgba(112,215,255,.6) 0 12px, transparent 12px 25px); opacity: .48; }
.tower-floor:nth-child(3) { --floor: #23434f; border-color: rgba(112,215,255,.45); }
.tower-floor:nth-child(6) { --floor: #4a3c25; border-color: rgba(214,166,79,.55); }
.tower-floor:nth-child(8) { --floor: #264630; border-color: rgba(121,227,107,.5); }
.crane-line { position: absolute; top: 4px; left: 50%; width: 1px; height: 76px; background: rgba(255,138,31,.7); }
.crane-block { position: absolute; top: 72px; left: calc(50% - 63px); width: 126px; height: 28px; border: 1px solid rgba(255,138,31,.7); border-radius: 4px; background: #4a2d18; box-shadow: 0 0 25px rgba(255,138,31,.12); }
.tower-label { position: absolute; top: 19px; right: -5px; padding: 7px 10px; color: var(--ink); background: var(--ice); border-radius: 8px; font-size: 11px; font-weight: 900; transform: rotate(3deg); }

.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1px; margin: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.fact-chip { min-height: 108px; padding: 17px; background: var(--ink-2); }
.fact-chip span { display: block; color: #7f93a2; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.fact-chip strong { display: block; margin-top: 7px; color: #fff; font-size: 16px; line-height: 1.3; }

main article > section, .page-contents {
  max-width: 1040px;
  margin: 22px auto;
  padding: clamp(23px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 27, 38, .91);
  box-shadow: 0 12px 35px rgba(0,0,0,.13);
}
main h2 { margin: 0 0 16px; font-family: "Space Grotesk", Manrope, Inter, sans-serif; font-size: clamp(25px, 3.3vw, 37px); line-height: 1.15; letter-spacing: -.026em; }
main h3 { margin: 24px 0 8px; font-size: 21px; line-height: 1.3; }
main p { max-width: 72ch; margin: 0 0 16px; }
main p:last-child { margin-bottom: 0; }
main a:not(.btn) { color: var(--ice); text-underline-offset: 3px; }
main ul, main ol { max-width: 75ch; padding-left: 24px; }
main li { margin: 7px 0; }
main li::marker { color: var(--orange); font-weight: 900; }

.quick-answer { border-color: rgba(255,138,31,.38); background: linear-gradient(135deg, rgba(255,138,31,.10), rgba(17,27,38,.94)); }
.quick-answer h2::before { content: "01"; display: inline-grid; place-items: center; width: 40px; height: 34px; margin-right: 11px; color: var(--ink); background: var(--orange); border-radius: 5px 5px 11px 5px; font-size: 13px; vertical-align: 5px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 17px; color: #9fb0bd; font-size: 13px; }
.trust-line strong { color: var(--ice); }

.page-contents { padding-block: 22px; }
.page-contents-title { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.page-contents-title .number { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: var(--orange); border-radius: 7px; font-size: 12px; }
.page-contents-menu ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 28px; margin: 15px 0 0; padding: 0; list-style: none; }
.page-contents-menu li { margin: 0; }
.page-contents-menu a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
.page-contents-menu a:hover { color: var(--orange-2); }

.notice { margin: 21px 0; padding: 17px 19px; border-left: 4px solid var(--ice); border-radius: 5px 12px 12px 5px; color: #d8e3eb; background: rgba(112,215,255,.07); }
.notice-warning { border-left-color: var(--orange); background: rgba(255,138,31,.075); }
.notice-success { border-left-color: var(--triple); background: rgba(121,227,107,.06); }
.notice-temple { border-left-color: var(--temple); background: rgba(214,166,79,.07); }

.table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; background: rgba(5,11,16,.28); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: rgba(255,255,255,.025); }
td { color: #c8d4dc; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.feature-grid, .related-pages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.feature-card, .related-pages article { position: relative; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(31,49,63,.92), rgba(15,24,33,.95)); }
.feature-card::before, .related-pages article::before { content: ""; position: absolute; left: 17px; top: -2px; width: 38px; height: 3px; border-radius: 999px; background: var(--orange); }
.feature-card h3, .related-pages article h3 { margin-top: 0; }
.related-pages article p { color: var(--muted); font-size: 14px; }
.related-pages article a { color: #fff; text-decoration: none; }
.related-pages article:hover { border-color: rgba(255,138,31,.4); transform: translateY(-2px); transition: .17s ease; }

.decision-flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin: 25px 0; }
.decision-flow div { position: relative; padding: 16px 12px; border: 1px solid var(--line); border-radius: 11px; text-align: center; background: rgba(255,255,255,.025); font-size: 13px; font-weight: 820; }
.decision-flow div:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2; color: var(--orange); transform: translateY(-50%); }

.faq-list details { margin: 10px 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(5,11,16,.27); }
.faq-list summary { cursor: pointer; padding: 16px 18px; font-weight: 850; }
.faq-list details p { padding: 0 18px 18px; color: #c7d4dc; }

.source-card { border-color: rgba(112,215,255,.29); }
.source-card .source-meta { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.source-card .stamp { padding: 8px 11px; color: var(--ink); background: var(--ice); border-radius: 8px; font-size: 11px; font-weight: 950; white-space: nowrap; transform: rotate(1.5deg); }

.legal-warning {
  max-width: 1040px;
  margin: 25px auto;
  padding: clamp(25px, 4vw, 42px);
  color: #050505;
  background: #fff;
  border: 5px solid #050505;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.4;
}
.legal-warning strong { display: block; margin-bottom: 10px; font-size: clamp(20px,3vw,31px); text-transform: uppercase; }
.legal-warning p { max-width: 780px; margin: 0; font-size: clamp(17px,2vw,21px); }

.cta-panel {
  max-width: 1040px;
  margin: 22px auto;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 138, 31, .38);
  border-radius: var(--radius);
  background:
    linear-gradient(125deg, rgba(255, 138, 31, .17), transparent 45%),
    linear-gradient(310deg, rgba(112, 215, 255, .09), transparent 45%),
    var(--ink-2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
}
.cta-panel > div:first-child { max-width: 690px; }
.cta-panel span { color: var(--orange-2); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cta-panel h2 { margin: 6px 0 9px; font-size: clamp(25px, 3vw, 36px); }
.cta-panel p { margin: 0; color: #c7d4dd; }
.cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cta-panel-final { border-color: rgba(112, 215, 255, .35); }

.editor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
}
.editor-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--ink);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--ice), #b7ecff);
  font-weight: 950;
  letter-spacing: -.04em;
}
.editor-card h2 { font-size: clamp(23px, 2.7vw, 31px); }
.editor-card p { color: #c7d4dd; }
.editor-card .editor-date { color: var(--orange-2); font-size: 13px; font-weight: 850; }

.error-page {
  min-height: 58vh;
  padding: clamp(70px, 11vw, 150px) 0;
}
.error-page h1 { margin: 0 0 18px; font-size: clamp(44px, 8vw, 86px); line-height: 1; }
.error-page > section { max-width: 800px; }
.error-page > section + section { margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--line); }
.error-page h2 { margin: 0 0 18px; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; }
.error-page section > p:not(.eyebrow) { max-width: 670px; color: #c7d4dd; font-size: 19px; }

.site-footer { margin-top: 62px; border-top: 1px solid var(--line); background: #070d12; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4,1fr); gap: 28px; padding: 49px 0 34px; }
.footer-brand img { width: 145px; height: auto; }
.footer-brand p { max-width: 310px; color: var(--muted); font-size: 13px; }
.footer-column h2 { margin: 0 0 13px; color: #fff; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 7px 0; }
.footer-column a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-column a:hover { color: var(--orange-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: #7f919f; font-size: 12px; }
.footer-bottom p { max-width: 650px; margin: 0; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu[open] { position: relative; }
  .mobile-menu ul { position: absolute; right: 0; top: 52px; z-index: 80; display: grid; width: min(330px,calc(100vw - 36px)); padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #101a24; box-shadow: var(--shadow); }
  .mobile-menu a { padding: 11px 12px; }
  .footer-grid { grid-template-columns: repeat(3,1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .tower-scene { min-height: 330px; }
  .facts-strip { grid-template-columns: repeat(2,1fr); }
  .fact-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-grid, .related-pages { grid-template-columns: repeat(2,1fr); }
  .decision-flow { grid-template-columns: 1fr 1fr; }
  .decision-flow div:not(:last-child)::after { display: none; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrapper { width: min(100% - 28px,var(--shell)); }
  .header-row { min-height: 68px; gap: 9px; }
  .site-logo img { width: 114px; }
  .header-actions { display: none; }
  .site-logo { gap: 6px; }
  .site-logo span { padding: 3px 6px; font-size: 9px; }
  .language-switch { padding: 8px; font-size: 10px; }
  .mobile-menu summary { padding: 9px 10px; font-size: 12px; }
  .mobile-menu[open] { position: static; }
  .mobile-menu ul {
    left: 14px;
    right: 14px;
    top: 68px;
    width: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
  }
  .hero { padding: 28px 20px; border-radius: 19px; }
  .hero h1 { font-size: 36px; }
  .tower-scene { min-height: 285px; }
  .tower-build { transform: scale(.82); transform-origin: bottom center; }
  .facts-strip { grid-template-columns: 1fr; }
  .fact-chip:last-child:nth-child(odd) { grid-column: auto; }
  main article > section, .page-contents { padding: 22px 18px; border-radius: 14px; }
  .page-contents-menu ul, .feature-grid, .related-pages, .decision-flow { grid-template-columns: 1fr; }
  .source-card .source-meta { grid-template-columns: 1fr; }
  .source-card .stamp { width: fit-content; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 0; }
  .editor-card { grid-template-columns: 1fr; }
  main [id] { scroll-margin-top: 84px; }
}

@media (max-width: 390px) {
  .site-logo img { width: 88px; }
  .site-logo span { padding-inline: 4px; font-size: 8px; }
  .language-switch { padding-inline: 6px; }
}

@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
