:root {
  --ink: #102b35;
  --muted: #5b6b72;
  --paper: #f4f1e9;
  --surface: #fff;
  --navy: #123d4b;
  --navy-deep: #092f3a;
  --green: #078a48;
  --blue: #0b93c1;
  --red: #e31d2c;
  --yellow: #ffd21a;
  --line: #d7dfdc;
  --shell: min(1180px, calc(100% - 40px));
  --shadow: 0 22px 56px rgba(12, 43, 52, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 90% 12%, #e5f4fa 0, transparent 28%), var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.hub-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(18, 42, 52, 0.09); background: rgba(244, 241, 233, 0.94); backdrop-filter: blur(18px); }
.header-inner { width: var(--shell); min-height: 82px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 7px 18px rgba(18, 42, 52, 0.12); }
.brand span { display: grid; }
.brand strong { font-size: 0.98rem; }
.brand small, #session-label { color: var(--muted); font-size: 0.75rem; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.82rem; font-weight: 850; text-decoration: none; }
.header-actions .header-home { border-color: var(--navy); color: #fff; background: var(--navy); }

main { min-height: calc(100vh - 160px); }
.state-view { width: min(620px, calc(100% - 32px)); margin: 11vh auto; padding: clamp(34px, 7vw, 62px); border: 1px solid var(--line); border-radius: 28px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.state-view h1 { margin: 14px 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.05em; }
.state-view > p:not(.eyebrow) { color: var(--muted); }
.loading-mark { width: 42px; height: 42px; margin-inline: auto; border: 5px solid #d9e3df; border-top-color: var(--blue); border-radius: 50%; animation: spin 800ms linear infinite; }
.access-mark { width: 46px; height: 46px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; color: var(--navy-deep); background: var(--yellow); font-size: 1.3rem; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }

.primary-button, .secondary-button { min-height: 48px; padding: 12px 21px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; text-decoration: none; }
.primary-button { color: #fff; background: var(--green); }
.secondary-button { border: 1px solid var(--line); color: var(--navy); background: #fff; }
.button-bright { color: var(--navy-deep); background: var(--yellow); }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }

.hub-shell { width: var(--shell); margin-inline: auto; padding-block: 28px 80px; }
.app-hero { min-height: 350px; padding: clamp(38px, 7vw, 76px); border-radius: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; color: #fff; background: radial-gradient(circle at 88% 24%, rgba(255, 210, 26, 0.32), transparent 16%), linear-gradient(125deg, #062d39, #08714b); box-shadow: var(--shadow); }
.app-hero .eyebrow { color: var(--yellow); }
.app-hero h1 { margin: 0 0 14px; font-size: clamp(4rem, 9vw, 7.3rem); line-height: 0.86; letter-spacing: -0.075em; }
.app-hero p:last-of-type { max-width: 720px; margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions .secondary-button { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.1); }
.member-chip { padding: 9px 13px; border-radius: 999px; white-space: nowrap; color: #07442a; background: #dff6e8; font-size: 0.75rem; font-weight: 900; }

.testing-note { margin: 18px 0; padding: 19px 21px; border-left: 5px solid var(--yellow); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff6ca; }
.testing-note p { margin: 4px 0 0; color: #695c2e; font-size: 0.86rem; }
.testing-note a { flex: 0 0 auto; color: var(--navy); font-size: 0.82rem; font-weight: 900; }

.hub-section { margin-top: 18px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.section-heading { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-heading h2, .routes-section h2, .launch-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.03; letter-spacing: -0.05em; }
.section-heading > span { padding: 7px 10px; border-radius: 999px; color: var(--muted); background: #edf1ef; font-size: 0.72rem; font-weight: 850; }
.section-intro { max-width: 820px; margin: -10px 0 26px; color: var(--muted); }

.step-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.step-grid li { min-height: 230px; padding: 23px; border-radius: 17px; color: #fff; background: var(--navy-deep); }
.step-grid li > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-deep); background: var(--yellow); font-size: 0.82rem; font-weight: 950; }
.step-grid h3 { margin: 54px 0 10px; font-size: 1.18rem; }
.step-grid p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; }
.step-grid strong { color: #fff; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #f7faf9; }
.feature-grid article > span { width: 42px; height: 42px; margin-bottom: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 1.2rem; font-weight: 900; }
.feature-grid h3 { margin: 0 0 8px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.install-grid details { border: 1px solid var(--line); border-radius: 17px; background: #f8faf9; overflow: hidden; }
.install-grid details[open] { border-color: #8fc9aa; background: #fff; box-shadow: 0 12px 30px rgba(18, 42, 52, 0.07); }
.install-grid summary { min-height: 86px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--navy-deep); font-weight: 900; list-style: none; cursor: pointer; }
.install-grid summary::-webkit-details-marker { display: none; }
.install-grid summary span { display: grid; }
.install-grid summary small { margin-bottom: 4px; color: var(--green); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.install-grid summary b { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 1.15rem; transition: transform 160ms ease; }
.install-grid details[open] summary b { transform: rotate(45deg); }
.install-grid ol { margin: 0; padding: 0 28px 25px 50px; display: grid; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.install-grid strong { color: var(--ink); }
.browser-note { margin: 16px 0 0; padding: 17px 19px; border-left: 5px solid var(--blue); border-radius: 12px; color: var(--muted); background: #edf8fc; }
.browser-note strong { color: var(--navy-deep); }

.routes-section { margin-top: 18px; padding: clamp(30px, 5vw, 50px); border-radius: 24px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; color: #fff; background: var(--navy-deep); }
.routes-section .eyebrow { color: var(--yellow); }
.routes-section > div:last-child > p { margin-top: 0; color: rgba(255, 255, 255, 0.76); }
.route-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.route-actions .secondary-button { border-color: rgba(255, 255, 255, 0.24); color: #fff; background: rgba(255, 255, 255, 0.08); }

.launch-section { margin-top: 18px; padding: clamp(30px, 5vw, 52px); border: 1px solid #b7d6ca; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 38px; background: linear-gradient(135deg, #eaf7ef, #fff); }
.launch-section p:last-child { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.launch-section > a { flex: 0 0 auto; }

footer { width: var(--shell); margin-inline: auto; padding: 24px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.78rem; }
footer a { font-weight: 800; }

@media (max-width: 900px) {
  .header-actions #session-label { display: none; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes-section { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 46px; height: 46px; }
  .brand small { display: none; }
  .header-actions a { display: none; }
  .header-actions a:first-of-type { display: inline-flex; }
  .hub-shell { padding-top: 14px; }
  .app-hero { min-height: 430px; padding: 30px 24px; align-items: flex-start; justify-content: flex-end; flex-direction: column; }
  .app-hero h1 { font-size: 4rem; }
  .hero-actions, .hero-actions a { width: 100%; }
  .testing-note { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hub-section { padding: 25px 20px; }
  .section-heading { flex-direction: column; gap: 10px; }
  .step-grid, .feature-grid, .install-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 205px; }
  .routes-section { padding: 30px 22px; }
  .route-actions, .route-actions a { width: 100%; }
  .launch-section { align-items: flex-start; flex-direction: column; }
  .launch-section > a { width: 100%; }
  footer { flex-direction: column; }
}

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