:root {
  color-scheme: dark;
  --canvas: #030b13;
  --surface: rgba(7, 22, 35, .9);
  --surface-raised: #0d2234;
  --border: rgba(117, 178, 218, .22);
  --border-strong: rgba(91, 198, 255, .48);
  --frost: #45c7ff;
  --blue: #1471c8;
  --blue-deep: #0b4e96;
  --gold: #d9ad55;
  --text: #f3f7fb;
  --muted: #a6bbca;
  --success: #43d17d;
  --danger: #ef6f78;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --shell-wide: min(1480px, calc(100% - 80px));
  --shell-content: min(1240px, calc(100% - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--text); font-family: var(--font-ui); line-height: 1.55; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(69, 199, 255, .72); outline-offset: 3px; }
.shell { width: var(--shell-wide); margin-inline: auto; }
.hero .shell, .section > .shell, .site-footer .shell { width: var(--shell-content); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; border-radius: 8px; background: var(--frost); color: #00111e; font-weight: 700; transition: top .18s ease; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 78px; border-bottom: 1px solid rgba(146, 192, 222, .12); background: linear-gradient(180deg, rgba(2, 10, 18, .98), rgba(3, 13, 22, .91)); backdrop-filter: blur(14px); transition: background .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { background: rgba(2, 10, 18, .98); box-shadow: 0 10px 35px rgba(0,0,0,.32); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.brand img { filter: drop-shadow(0 0 12px rgba(53, 185, 255, .22)); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 34px); flex: 1; }
.site-nav a, .text-button { position: relative; min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; color: #d5e1e9; font-size: 14px; font-weight: 600; cursor: pointer; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 7px; height: 1px; background: var(--frost); transition: right .18s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 11px 23px; border: 1px solid #4cc9ff; border-radius: 8px; background: linear-gradient(180deg, #1c7ac8, #0d56a4); box-shadow: inset 0 1px rgba(255,255,255,.22), 0 10px 30px rgba(8, 81, 151, .22); color: #fff; font-weight: 700; cursor: pointer; transition: filter .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { filter: brightness(1.12); }
.button-small { min-height: 44px; padding: 9px 17px; font-size: 13px; }
.button-large { min-height: 48px; padding: 7px 15px; font-size: 13px; }
.button-large span { display: grid; line-height: 1.2; }
.button-large small { margin-top: 2px; color: #c6e7fa; font-size: 9px; font-weight: 500; }
.button-ghost { border-color: rgba(145, 190, 219, .35); background: rgba(4, 17, 29, .72); box-shadow: none; color: #e5edf3; }
.button-ghost:hover { background: rgba(16, 44, 66, .82); border-color: var(--border-strong); }
.inline-link { color: var(--frost); font-weight: 700; }
.inline-link:hover { text-decoration: underline; }

.hero { position: relative; min-height: clamp(740px, 84vh, 900px); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #112419 url("assets/hero.webp") center 34% / cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 9, 15, .98) 0%, rgba(2, 10, 17, .88) 25%, rgba(2, 10, 17, .42) 54%, rgba(2, 10, 17, .12) 76%), linear-gradient(180deg, rgba(2,9,15,.28) 55%, var(--canvas) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 138px; padding-bottom: 116px; }
.eyebrow { margin: 0 0 14px; color: var(--frost); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; font-family: var(--font-display); font-size: clamp(34px, 2.75vw, 52px); line-height: 1.06; letter-spacing: -.012em; text-transform: uppercase; text-shadow: 0 5px 30px rgba(0,0,0,.5); }
.hero h1 span { display: block; margin-bottom: 9px; color: #fff; font-size: 1em; letter-spacing: .025em; }
.hero h1 em { color: var(--frost); font-style: normal; }
.hero-lead { max-width: 560px; margin: 24px 0 27px; color: #d1dee7; font-size: clamp(14px, .95vw, 16px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-width: 0; }
.download-note { margin: 13px 0 0; color: var(--muted); font-size: 10px; }

.section { padding: 88px 0 0; }
.panel, .journey-card, .info-card { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, rgba(7, 23, 36, .93), rgba(3, 14, 24, .92)); box-shadow: inset 0 1px rgba(255,255,255,.015); }
.panel { padding: clamp(28px, 3vw, 42px); }
.section-heading { max-width: 650px; margin-bottom: 36px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .journey-card h2, .info-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 36px); font-weight: 500; }
.section-heading p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-height: 210px; padding: 25px 18px; border: 1px solid rgba(117,178,218,.15); border-radius: 10px; background: rgba(11, 31, 47, .62); text-align: center; transition: border-color .2s ease, background .2s ease; }
.feature-card:hover { border-color: rgba(69,199,255,.45); background: rgba(13, 40, 61, .72); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; color: #72bfff; background: radial-gradient(circle, rgba(47,126,210,.24), rgba(13,36,55,.15)); }
.feature-icon svg { width: 29px; height: 29px; stroke-width: 1.6; }
.feature-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.era-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.era-card { position: relative; min-height: 330px; overflow: hidden; border: 1px solid rgba(125, 174, 205, .28); border-radius: 10px; background: var(--era-image) center / cover no-repeat; }
.era-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,8,14,.06), rgba(2,8,14,.35) 42%, rgba(2,8,14,.98) 80%); }
.era-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--era); opacity: .7; }
.era-card.era-active { border-color: var(--frost); box-shadow: 0 0 28px rgba(69,199,255,.16); }
.era-content { position: absolute; z-index: 1; inset: auto 18px 20px; text-align: center; }
.era-content img { margin: 0 auto 3px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.era-content h3 { min-height: 48px; display: grid; place-items: end center; margin: 0; color: #fff; font-family: var(--font-display); font-size: 16px; line-height: 1.08; text-transform: uppercase; }
.era-content p { margin: 3px 0 9px; color: #dae5ed; }
.era-content span { color: var(--era); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.journey-card { min-height: 280px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; padding: clamp(34px, 4vw, 52px); overflow: hidden; }
.journey-card p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.status-chip { display: inline-flex; min-height: 34px; align-items: center; margin-top: 8px; padding: 6px 12px; border: 1px solid rgba(217,173,85,.35); border-radius: 999px; color: var(--gold); font-size: 12px; }
.journey-route { min-height: 190px; display: flex; align-items: center; justify-content: center; padding: 24px; border: 1px solid rgba(117,178,218,.15); border-radius: 11px; background: linear-gradient(90deg, rgba(6,20,32,.8), rgba(14,41,60,.55)), url("assets/hero.webp") 55% 58% / cover; }
.journey-route img { width: clamp(54px, 5vw, 78px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.journey-route i { position: relative; flex: 1; max-width: 65px; height: 1px; margin: 0 3px; background: linear-gradient(90deg, rgba(69,199,255,.2), var(--frost), rgba(69,199,255,.2)); }
.journey-route i::after { content: "›"; position: absolute; right: 40%; top: 50%; transform: translate(50%,-55%); color: var(--frost); font-size: 23px; font-style: normal; }

.split-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 18px; }
.info-card { min-height: 270px; padding: 26px; }
.info-card h2 { font-size: 24px; }
.info-card > p:not(.eyebrow) { color: var(--muted); }
.news-list { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.news-list li { display: grid; gap: 3px; padding-bottom: 13px; border-bottom: 1px solid rgba(117,178,218,.12); }
.news-list time { color: var(--frost); font-size: 11px; text-transform: uppercase; }
.news-list strong { font-size: 14px; }

.site-footer { margin-top: 96px; border-top: 1px solid rgba(117,178,218,.17); background: #020910; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .8fr; gap: 60px; padding: 42px 0 34px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 9px; }
.footer-grid strong { font-family: var(--font-display); text-transform: uppercase; }
.footer-grid a, .footer-grid p, .footer-bottom { color: var(--muted); font-size: 13px; }
.footer-grid a:hover { color: var(--frost); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { max-width: 300px; margin: 7px 0 0; }
.footer-bottom { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(117,178,218,.12); }

.modal-layer[hidden], [hidden] { display: none !important; }
.modal-layer { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 5, 9, .82); backdrop-filter: blur(5px); cursor: pointer; }
.auth-dialog { position: relative; z-index: 1; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; border: 1px solid var(--border-strong); border-radius: 15px; background: linear-gradient(145deg, #0b2133, #04101b); box-shadow: 0 26px 80px rgba(0,0,0,.55); }
.auth-dialog > img { margin: -6px auto 7px; }
.auth-dialog h2 { margin: 0; font-family: var(--font-display); font-size: 30px; text-align: center; }
.auth-dialog > p { margin: 8px auto 20px; color: var(--muted); text-align: center; }
.auth-dialog > small { display: block; margin-top: 15px; color: #879dac; line-height: 1.45; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #aec1ce; font-size: 28px; cursor: pointer; }
.dialog-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: rgba(1,9,15,.62); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: #123e5c; color: #fff; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; color: #c8d6df; font-size: 13px; }
.auth-form input { min-height: 48px; width: 100%; padding: 10px 13px; border: 1px solid rgba(126,180,213,.3); border-radius: 8px; background: rgba(2,12,20,.78); color: #fff; }
.auth-form input:focus { border-color: var(--frost); outline: 3px solid rgba(69,199,255,.14); }
.form-message { min-height: 22px; margin: 12px 0 0 !important; color: var(--gold) !important; font-size: 13px; }

.legal-page { min-height: 100vh; background: radial-gradient(circle at 75% 10%, rgba(20,91,139,.18), transparent 33%), var(--canvas); }
.legal-document { max-width: 860px; padding: 45px 0 80px; }
.legal-document h1 { margin-top: 58px; font-family: var(--font-display); font-size: 44px; }
.legal-document h2 { margin-top: 34px; font-family: var(--font-display); color: #dbe9f3; }
.legal-document p { color: var(--muted); }
.legal-document .button { margin-top: 25px; }

@media (max-width: 1100px) {
  .header-actions .text-button { display: none; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .era-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-card { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-grid .info-card:last-child { grid-column: 1 / -1; min-height: 220px; }
}

@media (max-width: 820px) {
  :root { --shell-wide: min(100% - 30px, 720px); --shell-content: min(100% - 30px, 720px); }
  .site-header { height: 70px; }
  .header-inner { justify-content: space-between; }
  .brand { font-size: 18px; }
  .brand img { width: 45px; height: 45px; }
  .nav-toggle { display: block; order: 3; }
  .site-nav { position: fixed; left: 15px; right: 15px; top: 76px; display: grid; gap: 0; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #071724; box-shadow: 0 24px 55px rgba(0,0,0,.5); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 0 13px; }
  .header-actions { margin-left: auto; }
  .header-actions .button { width: 44px; padding: 0; font-size: 0; }
  .header-actions .button svg { width: 20px; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,9,15,.97), rgba(2,10,17,.72) 70%, rgba(2,10,17,.35)), linear-gradient(180deg, rgba(2,9,15,.22) 55%, var(--canvas)); }
  .hero-content { padding-top: 125px; }
  .hero h1 { max-width: 620px; font-size: clamp(34px, 6.5vw, 50px); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .era-grid { grid-template-columns: 1fr 1fr; }
  .era-card { min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --shell-wide: calc(100% - 24px); --shell-content: calc(100% - 24px); }
  .brand span { font-size: 16px; }
  .header-actions { display: none; }
  .hero { min-height: 720px; }
  .hero-media { background-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,9,15,.98), rgba(2,10,17,.74)), linear-gradient(180deg, transparent 48%, var(--canvas)); }
  .hero h1 { font-size: 32px; line-height: 1.05; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .button-large { width: 100%; }
  .feature-grid, .era-grid, .split-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .era-card { min-height: 390px; }
  .journey-route { padding: 13px 7px; }
  .journey-route img { width: 47px; }
  .split-grid .info-card:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .auth-dialog { padding: 28px 20px 23px; }
}

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