:root {
  --bg: #090909;
  --panel: #11110f;
  --panel-strong: #15130f;
  --text: #f2eee5;
  --muted: #aaa49a;
  --faint: #747069;
  --gold: #d9ad54;
  --gold-soft: rgba(217, 173, 84, 0.14);
  --line: rgba(217, 173, 84, 0.18);
  --line-strong: rgba(217, 173, 84, 0.34);
  --done: #7ebc98;
  --done-soft: rgba(126, 188, 152, 0.13);
  --shadow: rgba(0, 0, 0, 0.38);
}

:root[data-theme='light'] {
  --bg: #f4f1e9;
  --panel: #fffdf8;
  --panel-strong: #f7f0e2;
  --text: #201c16;
  --muted: #615a50;
  --faint: #837a6e;
  --gold: #9b681d;
  --gold-soft: rgba(155, 104, 29, 0.11);
  --line: rgba(102, 70, 25, 0.2);
  --line-strong: rgba(102, 70, 25, 0.38);
  --done: #2d7a51;
  --done-soft: rgba(45, 122, 81, 0.1);
  --shadow: rgba(61, 44, 18, 0.1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select { font: inherit; color: inherit; }
a { color: inherit; }
.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; }

.site-header { min-height: 74px; padding: 10px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .75rem; letter-spacing: .16em; white-space: nowrap; }
.wordmark b { color: var(--gold); font-weight: 650; }
.wordmark-symbol { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #050505; }
.wordmark-symbol img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.header-link, .theme-toggle, .language-picker select { min-height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 99px; }
.header-link { display: inline-flex; align-items: center; padding: 0 13px; text-decoration: none; color: var(--muted); font-size: .78rem; }
.header-link:hover, .header-link[aria-current='page'] { color: var(--text); border-color: var(--line-strong); background: var(--gold-soft); }
.theme-toggle { width: 38px; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.moon-icon { display: none; }
:root[data-theme='light'] .sun-icon { display: none; }
:root[data-theme='light'] .moon-icon { display: block; }
.language-picker select { appearance: none; padding: 0 30px 0 12px; font-size: .72rem; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 14px) 50% / 5px 5px no-repeat; cursor: pointer; }

.roadmap-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: clamp(46px, 7vw, 86px) 0 48px; }
.roadmap-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 44px; align-items: end; margin-bottom: 42px; }
.kicker { margin: 0 0 13px; color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; letter-spacing: .16em; font-weight: 700; }
.roadmap-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.5rem, 9vw, 7.4rem); font-weight: 400; line-height: .82; letter-spacing: -.06em; }
.roadmap-heading > p { margin: 0 0 4px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.55; }

.tool-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--line); background: var(--panel); }
.tool-segment { min-width: 0; min-height: 62px; padding: 10px 16px; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.tool-segment span, .tool-segment small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-segment span { font-size: .86rem; font-weight: 620; }
.tool-segment small { margin-top: 5px; color: var(--faint); font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.tool-segment:hover { border-color: var(--line-strong); color: var(--text); }
.tool-segment[aria-pressed='true'] { border-color: var(--line-strong); background: var(--gold-soft); color: var(--text); }
.tool-segment[aria-pressed='true'] small { color: var(--gold); }
.tool-segment:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.overview { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 90px var(--shadow); }
.product-heading { min-height: 92px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.product-heading small, .summary-grid small, .roadmap-note small { display: block; color: var(--faint); font-size: .7rem; letter-spacing: .13em; font-weight: 700; }
.product-heading h2 { margin: 6px 0 0; font-size: 1.35rem; font-weight: 580; }
.release-badge { padding: 9px 12px; border: 1px solid var(--line-strong); color: var(--gold); font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .08em; }
.summary-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); }
.summary-grid article { min-height: 142px; padding: 24px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.summary-grid article:last-child { border-right: 0; }
.summary-grid strong { display: block; font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 540; letter-spacing: -.035em; }
.summary-grid span { color: var(--muted); font-size: .8rem; }
.progress-track { height: 4px; background: var(--gold-soft); overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .6s ease; }

.plan-section { margin-top: clamp(64px, 9vw, 104px); }
.plan-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.plan-toolbar h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 480; letter-spacing: -.045em; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.filter-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); background: transparent; border-radius: 99px; color: var(--muted); font-size: .78rem; cursor: pointer; }
.filter-button[aria-pressed='true'] { color: var(--text); border-color: var(--line-strong); background: var(--gold-soft); }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 31px; top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
.phase-card { position: relative; display: grid; grid-template-columns: 64px 1fr; margin-bottom: 18px; }
.timeline-marker { position: relative; z-index: 1; padding-top: 28px; }
.timeline-marker span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--bg); color: var(--gold); font-family: ui-monospace, monospace; font-size: .75rem; }
.phase-complete .timeline-marker span { color: var(--done); border-color: color-mix(in srgb, var(--done) 55%, transparent); }
.phase-content { border: 1px solid var(--line); background: var(--panel); }
.phase-header { padding: 26px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.phase-meta { display: flex; gap: 12px; margin-bottom: 9px; color: var(--faint); font-family: ui-monospace, monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.phase-meta span + span::before { content: '·'; margin-right: 12px; color: var(--gold); }
.phase-header h3 { margin: 0; font-size: clamp(1.2rem, 2.3vw, 1.65rem); font-weight: 540; letter-spacing: -.025em; }
.phase-header p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; white-space: nowrap; }
.status-complete { color: var(--done); border-color: color-mix(in srgb, var(--done) 40%, transparent); background: var(--done-soft); }
.status-active { color: var(--gold); border-color: var(--line-strong); background: var(--gold-soft); }
.task-list { margin: 0; padding: 0; list-style: none; }
.task { min-height: 58px; padding: 10px 18px 10px 26px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--done); font-size: .7rem; }
.task-complete .task-check { border-color: color-mix(in srgb, var(--done) 50%, transparent); background: var(--done-soft); }
.task-title { font-size: .92rem; line-height: 1.35; }
.task-complete .task-title { color: var(--muted); }
.task time { min-width: 58px; color: var(--faint); font-family: ui-monospace, monospace; font-size: .72rem; text-align: right; }
.empty-state { padding: 42px; border: 1px solid var(--line); color: var(--muted); text-align: center; }

.roadmap-note { margin-top: 46px; padding: 26px; display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: 34px; align-items: center; border: 1px solid var(--line-strong); background: var(--gold-soft); }
.roadmap-note strong { display: block; margin-top: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.roadmap-note p { margin: 0; color: var(--muted); line-height: 1.55; }
footer { min-height: 76px; padding: 18px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .72rem; letter-spacing: .06em; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .header-tools { justify-content: flex-end; flex-wrap: wrap; }
  .roadmap-heading { grid-template-columns: 1fr; gap: 24px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid article:nth-child(2) { border-right: 0; }
  .summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .plan-toolbar { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .site-header { position: static; padding: 12px 16px; }
  .wordmark > span:last-child { display: none; }
  .wordmark-symbol { width: 38px; height: 38px; }
  .header-tools { gap: 6px; }
  .header-link { padding: 0 10px; }
  .roadmap-shell { width: min(100% - 24px, 1180px); padding-top: 42px; }
  .tool-switcher { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid article { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-grid article:last-child { border-bottom: 0; }
  .phase-card { grid-template-columns: 38px 1fr; }
  .timeline::before { left: 18px; }
  .timeline-marker { padding-top: 24px; }
  .timeline-marker span { width: 32px; height: 32px; font-size: .65rem; }
  .phase-header { padding: 20px; flex-direction: column; }
  .phase-status { align-self: flex-start; }
  .task { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; padding: 13px 14px; }
  .task time { grid-column: 2; text-align: left; }
  .task > .status-pill { grid-column: 3; grid-row: 1 / span 2; }
  .roadmap-note { grid-template-columns: 1fr; gap: 15px; }
  footer { align-items: flex-start; flex-direction: column; }
}
