:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: #e9edf0;
  background: #0c1114;
  --bg: #0c1114;
  --panel: #151c20;
  --panel-raised: #1b2429;
  --border: #2a373d;
  --muted: #8e9da4;
  --accent: #e8b44c;
  --accent-strong: #f5c65f;
  --good: #62d6a7;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 82% 0, #241f1438, transparent 31rem), var(--bg); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 12px; color: #171b1d; background: var(--accent); }
.skip-link:focus { transform: none; }

.site-header, .hero, .workflow, .workspaces, .access, .site-footer { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.site-header { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); }
.brand { width: fit-content; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--muted); font-size: 0.72rem; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { padding: 28px 0; color: #adb8bd; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: #fff; }
.site-header > .button { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #3a494f; border-radius: 7px; padding: 10px 16px; color: #edf1f2; background: #202a2f; font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.button:hover { border-color: #66777e; background: #28343a; }
.button--primary { border-color: var(--accent); color: #171b1d; background: var(--accent); }
.button--primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button--small { min-height: 36px; padding: 8px 13px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 2px; color: #cbd3d7; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--accent); }
.eyebrow { margin: 0; color: var(--accent); font-family: Consolas, monospace; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.hero { min-height: 650px; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(42px, 7vw, 90px); padding: 75px 0 88px; }
.hero h1 { margin: 17px 0 22px; font-size: clamp(3rem, 5.2vw, 5.1rem); letter-spacing: -0.06em; line-height: 0.96; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 0; color: #a9b4b9; font-size: 1.02rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }

.app-preview { overflow: hidden; border: 1px solid #46565d; border-radius: 10px; background: var(--panel); box-shadow: 0 28px 72px #0009; }
.app-preview > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #10171a; }
.app-preview > header > div { display: flex; align-items: center; gap: 8px; }
.app-preview > header img { width: 32px; height: 32px; object-fit: contain; }
.app-preview > header span { display: grid; }
.app-preview > header strong { font-size: 0.75rem; }
.app-preview > header small { color: var(--muted); font-size: 0.58rem; }
.app-preview > header p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 0.62rem; }
.app-preview i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px #62d6a766; }
.app-preview__body { min-height: 326px; display: grid; grid-template-columns: 36% 1fr; }
.app-preview aside { padding: 16px 10px; border-right: 1px solid var(--border); background: #11181c; }
.app-preview aside > span, .app-preview section > p { color: var(--muted); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.1em; }
.app-preview aside > span { display: block; margin: 0 6px 11px; }
.app-preview aside .project-row { width: 100%; display: grid; gap: 3px; margin: 0 0 3px; border: 1px solid transparent; border-radius: 6px; padding: 9px; color: #dfe5e8; background: transparent; text-align: left; }
.app-preview aside .project-row.selected { border-color: #415159; background: #202a2f; }
.app-preview aside strong { font-size: 0.65rem; }
.app-preview aside small { color: var(--muted); font-size: 0.54rem; }
.app-preview section { padding: 24px; }
.app-preview section > p { margin: 0; }
.app-preview section h2 { margin: 5px 0 3px; font-size: 1.35rem; }
.app-preview section code { color: var(--muted); font-size: 0.58rem; }
.reservation { display: grid; gap: 5px; margin-top: 32px; border: 1px solid #66552e; border-radius: 7px; padding: 15px; background: #211f18; }
.reservation span { color: var(--accent); font-family: Consolas, monospace; font-size: 0.55rem; letter-spacing: 0.08em; }
.reservation strong { color: #f0e2b1; font-size: 0.78rem; }
.reservation small { color: var(--muted); font-size: 0.6rem; }
.preview-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; color: var(--muted); font-family: Consolas, monospace; font-size: 0.6rem; }
.preview-actions b { border-radius: 5px; padding: 8px 10px; color: #171b1d; background: var(--accent); font-family: "Segoe UI", sans-serif; font-size: 0.58rem; }
.app-preview > footer { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-top: 1px solid var(--border); color: var(--muted); background: #0e1417; font-size: 0.54rem; }
.app-preview > footer span { display: flex; align-items: center; gap: 6px; }

.workflow, .workspaces, .access { padding: 105px 0; border-top: 1px solid var(--border); }
.section-intro { max-width: 720px; }
.section-intro h2, .access h2 { margin: 12px 0 17px; font-size: clamp(2.25rem, 4vw, 3.7rem); letter-spacing: -0.045em; line-height: 1.05; }
.section-intro > p:last-child, .access-copy > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.7; }

.workflow ol { list-style: none; max-width: 850px; display: grid; gap: 0; margin: 55px 0 0 auto; padding: 0; }
.workflow li { display: grid; grid-template-columns: 50px 1fr; gap: 24px; border-top: 1px solid var(--border); padding: 27px 0; }
.workflow li > span { color: var(--accent); font-family: Consolas, monospace; font-size: 0.74rem; }
.workflow h3 { margin: 0 0 7px; font-size: 1.1rem; }
.workflow li p { margin: 0; color: var(--muted); font-size: 0.91rem; line-height: 1.6; }

.workspaces { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(60px, 9vw, 130px); }
.workspace-choices { display: grid; gap: 35px; }
.workspace-choices article { border-top: 1px solid #47575e; padding-top: 19px; }
.workspace-choices article:first-child { border-color: var(--accent); }
.workspace-choices article > span { color: var(--accent); font-family: Consolas, monospace; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; }
.workspace-choices h3 { max-width: 510px; margin: 12px 0 8px; font-size: 1.2rem; line-height: 1.35; }
.workspace-choices p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.workspace-choices small { display: block; margin-top: 12px; color: #b9c4c8; font-family: Consolas, monospace; font-size: 0.66rem; }

.access { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(60px, 9vw, 130px); }
.access-flow { border-top: 1px solid var(--border); }
.access-flow > div { display: grid; grid-template-columns: 38px 1fr; gap: 18px; border-bottom: 1px solid var(--border); padding: 20px 0; }
.access-flow > div > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #4d5c63; border-radius: 4px; color: var(--accent); font-family: Consolas, monospace; font-size: 0.68rem; }
.access-flow p { display: grid; gap: 4px; margin: 0; }
.access-flow strong { font-size: 0.92rem; }
.access-flow small { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.pilot-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 8px; border-top: 1px solid #66552e; padding: 26px 0 0; }
.pilot-note span { color: var(--accent); font-family: Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.08em; }
.pilot-note h3 { margin: 6px 0; font-size: 1.05rem; }
.pilot-note p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.pilot-note .button { flex: 0 0 auto; }

.site-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); }
.site-footer p { color: var(--muted); font-size: 0.72rem; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-window { width: min(620px, 100%); overflow: hidden; border: 1px solid #46565d; border-radius: 10px; background: var(--panel); box-shadow: 0 28px 80px #000a; }
.error-window > header, .error-window > footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; color: var(--muted); background: #0e1417; font-family: Consolas, monospace; font-size: 0.65rem; }
.error-window > header { border-bottom: 1px solid var(--border); }
.error-window > footer { border-top: 1px solid var(--border); }
.error-window > footer span { display: flex; align-items: center; gap: 7px; }
.error-window > footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.error-window > div { padding: 46px; }
.error-window img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 25px; }
.error-window h1 { margin: 12px 0; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.045em; }
.error-window div > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero, .workspaces, .access { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-copy { max-width: 700px; }
  .app-preview { max-width: 720px; }
  .workflow ol { margin-left: 0; }
  .pilot-note { grid-column: 1; }
}

@media (max-width: 600px) {
  .site-header, .hero, .workflow, .workspaces, .access, .site-footer { width: min(calc(100% - 28px), var(--content)); }
  .site-header { min-height: 66px; }
  .brand small { display: none; }
  .site-header > .button { min-height: 34px; padding: 7px 10px; }
  .hero { min-height: auto; padding: 54px 0 66px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .app-preview__body { grid-template-columns: 1fr; }
  .app-preview aside { display: none; }
  .app-preview section { min-height: 300px; }
  .workflow, .workspaces, .access { padding: 76px 0; }
  .pilot-note { align-items: flex-start; flex-direction: column; }
  .site-footer { min-height: 140px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 10px; }
  .error-window > div { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
