:root {
  color-scheme: dark;
  --roadmap-timeline-h: 32.5rem;
  --bg: #07090d;
  --bg-elevated: #0d1118;
  --bg-soft: #121824;
  --bg-card: rgba(15, 21, 32, 0.78);
  --text: #f5f7fb;
  --text-muted: #a7b0c0;
  --text-faint: #6f7a8c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(148, 163, 184, 0.22);
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-text: #60a5fa;
  --header-h: 4.25rem;
  --radius: 0.8rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --content-max: 73rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-elevated: #ffffff;
  --bg-soft: #edf2f9;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text: #101828;
  --text-muted: #475467;
  --text-faint: #667085;
  --border: rgba(16, 24, 40, 0.09);
  --border-strong: rgba(16, 24, 40, 0.16);
  --accent-text: #2563eb;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f9fc;
    --bg-elevated: #ffffff;
    --bg-soft: #edf2f9;
    --bg-card: rgba(255, 255, 255, 0.82);
    --text: #101828;
    --text-muted: #475467;
    --text-faint: #667085;
    --border: rgba(16, 24, 40, 0.09);
    --border-strong: rgba(16, 24, 40, 0.16);
    --accent-text: #2563eb;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% -8%, rgba(37, 99, 235, 0.28), transparent 30rem),
    radial-gradient(circle at 82% 6%, rgba(14, 165, 233, 0.15), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--content-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 2rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.brand-logo--light {
  display: none;
}

:root[data-theme="light"] .brand-logo--dark {
  display: none;
}

:root[data-theme="light"] .brand-logo--light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo--dark {
    display: none;
  }

  :root:not([data-theme="dark"]) .brand-logo--light {
    display: block;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.45rem;
}

.header-nav a,
.mobile-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:hover,
.mobile-nav a:hover {
  color: var(--accent-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.theme-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.34rem 0.56rem;
  cursor: pointer;
}

.theme-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.nav-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.78rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 40;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a {
  padding: 0.75rem;
  border-radius: var(--radius);
}

.mobile-nav a:hover {
  background: var(--bg-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.7rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0ea5e9 100%);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.27);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #0284c7 100%);
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: var(--accent-text);
}

.btn img {
  height: 1.1rem;
  width: auto;
}

/* Hero */
.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 42rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.hero-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-mode span:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--accent-text);
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 1.15rem;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.65rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent);
}

.window-bar span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #64748b;
}

.window-bar span:nth-child(1) {
  background: #ef4444;
}

.window-bar span:nth-child(2) {
  background: #f59e0b;
}

.window-bar span:nth-child(3) {
  background: #22c55e;
}

.product-window img {
  width: 100%;
  height: auto;
}

.command-card {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: -1.4rem;
  max-width: min(23rem, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: var(--shadow);
}

.command-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card code {
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.83rem;
}

/* Shared sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header h2,
.intro-grid h2,
.showcase-copy h2,
.docs-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.trust-strip {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
}

.trust-grid {
  display: grid;
  gap: 0;
}

.trust-grid div {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.trust-grid div:last-child {
  border-bottom: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 1.02rem;
}

.trust-grid span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.intro-section {
  padding-bottom: 2rem;
}

.intro-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.intro-grid p:last-child,
.showcase-copy > p,
.docs-band p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  min-height: 15rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 85%, var(--accent-soft));
}

.feature-number {
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.feature-card h3 {
  margin: 2.4rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Horizontal scroll (roadmap) */
.hscroll-pin {
  position: relative;
  width: 100%;
  border-block: 1px solid var(--border);
}

.hscroll-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.hscroll-stage {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.roadmap-stage {
  padding-block: 0.5rem 1.25rem;
  box-sizing: border-box;
}

.hscroll-stage > .roadmap-rail {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
}

.hscroll-scroll {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  overflow: hidden;
}

.hscroll-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.hscroll-hint {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hscroll-hint.is-hidden {
  opacity: 0;
}

.hscroll-hint__arrow {
  color: var(--accent-text);
  animation: hscroll-hint-nudge 1.4s ease-in-out infinite;
}

@keyframes hscroll-hint-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(0.22rem);
  }
}

/* Workflow — stacked panel reveal */
.workflow-pin {
  position: relative;
  width: 100%;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(circle at 14% 50%, rgba(37, 99, 235, 0.08), transparent 28rem),
    radial-gradient(circle at 86% 50%, rgba(14, 165, 233, 0.06), transparent 26rem),
    var(--bg);
}

.workflow-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.workflow-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  height: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.workflow-stage > .workflow-intro,
.workflow-stage > .workflow-stack {
  grid-area: 1 / 1;
}

.workflow-intro {
  position: relative;
  z-index: 2;
  justify-self: start;
  align-self: center;
  width: min(20rem, 34vw);
  height: auto;
  padding: 0;
  background: linear-gradient(90deg, var(--bg) 70%, transparent);
  pointer-events: none;
}

.workflow-intro * {
  pointer-events: auto;
}

.workflow-intro__center h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.workflow-intro__lead {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.workflow-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
}

.workflow-list span {
  color: var(--accent-text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.workflow-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.workflow-stack {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  width: 100%;
  height: min(46rem, calc(100vh - var(--header-h) - 0.5rem));
  margin: 0;
}

.workflow-window {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 2rem)) scale(0.9);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
  pointer-events: none;
}

.workflow-window img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-window figcaption {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-window.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

.workflow-window.is-front {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  filter: brightness(1.03);
}

.workflow-window--1 { left: 38%; width: min(44%, 26rem); }
.workflow-window--1.is-revealed { transform: translate(-50%, calc(-50% - 12%)) scale(0.72); }

.workflow-window--2 { left: 80%; width: min(46%, 27rem); }
.workflow-window--2.is-revealed { transform: translate(-50%, calc(-50% + 8%)) scale(0.78); }

.workflow-window--3 { left: 45%; width: min(47%, 28rem); }
.workflow-window--3.is-revealed { transform: translate(-50%, calc(-50% - 8%)) scale(0.82); }

.workflow-window--4 { left: 76%; width: min(48%, 29rem); }
.workflow-window--4.is-revealed { transform: translate(-50%, calc(-50% - 22%)) scale(0.86); }

.workflow-window--5 { left: 40%; width: min(49%, 30rem); }
.workflow-window--5.is-revealed { transform: translate(-50%, calc(-50% - 36%)) scale(0.9); }

.workflow-window--6 { left: 83%; width: min(50%, 31rem); }
.workflow-window--6.is-revealed { transform: translate(-50%, calc(-50% - 48%)) scale(0.94); }

.workflow-window--7 { left: 62%; width: min(38%, 22rem); }
.workflow-window--7.is-revealed { transform: translate(-50%, calc(-50% - 8%)) scale(0.8); }

/* Docs band */
.docs-band {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  border-block: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--bg-elevated) 76%, transparent);
}

.docs-band-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

/* Roadmap */
.roadmap-pin {
  background:
    radial-gradient(circle at 10% 50%, rgba(34, 211, 238, 0.07), transparent 30rem),
    radial-gradient(circle at 90% 50%, rgba(167, 139, 250, 0.06), transparent 28rem),
    var(--bg);
}

.roadmap-intro {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  flex: 0 0 clamp(17rem, 30vw, 24rem);
  flex-shrink: 0;
  height: var(--roadmap-timeline-h);
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
  background: transparent;
}

.roadmap-intro__center {
  position: relative;
  width: 100%;
}

.roadmap-intro__pill {
  padding: clamp(1.2rem, 2.4vw, 1.65rem) clamp(1.3rem, 2.6vw, 1.85rem);
  border: 0;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.roadmap-intro__pill .section-kicker {
  margin-bottom: 0.5rem;
}

.roadmap-intro__pill h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.roadmap-intro__lead {
  position: absolute;
  left: clamp(1.5rem, 3vw, 2.5rem);
  right: 0.5rem;
  bottom: 0;
  max-width: 15rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.roadmap-intro__lead a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
}

.roadmap-intro__lead a:hover {
  text-decoration: underline;
}

.roadmap-intro__beam {
  position: absolute;
  top: 50%;
  right: -1.35rem;
  width: clamp(1.5rem, 4vw, 2.75rem);
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.roadmap-intro__beam::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.roadmap-rail {
  display: flex;
  flex: 1 1 0;
  align-self: center;
  height: var(--roadmap-timeline-h);
  min-width: 0;
  width: 0;
}

.roadmap-scroll {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
}

.roadmap-track {
  flex-shrink: 0;
  height: 100%;
  width: max-content;
}

.roadmap-timeline {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: max-content;
  height: var(--roadmap-timeline-h);
  margin-left: 0;
  overflow: visible;
}

.roadmap-canvas {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.roadmap-branch {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  filter: url(#branch-glow);
}

.roadmap-labels {
  position: relative;
  z-index: 2;
  flex: 0 0 5.75rem;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.roadmap-label {
  position: absolute;
  left: 0;
  margin: 0;
  padding-right: 0.35rem;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.roadmap-label--in-progress { color: #22d3ee; }
.roadmap-label--planned { color: #a78bfa; }
.roadmap-label--scratched { color: #ef4444; }
.roadmap-label--completed { color: #34d399; }

.roadmap-points {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.roadmap-point {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 11.5rem;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(0, -50%);
  cursor: pointer;
  text-align: left;
}

.roadmap-point__marker {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
}

.roadmap-point__dot {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--point-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--point-color) 80%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.roadmap-point__peek {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--point-color, var(--border)) 28%, var(--border));
  border-radius: calc(var(--radius) - 0.1rem);
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.roadmap-point__peek time {
  display: block;
  color: var(--point-color, var(--accent-text));
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.roadmap-point__peek-title {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roadmap-point--in-progress { --point-color: #22d3ee; }
.roadmap-point--planned { --point-color: #a78bfa; }
.roadmap-point--scratched { --point-color: #ef4444; }
.roadmap-point--completed { --point-color: #34d399; }

.roadmap-point--scratched .roadmap-point__peek-title {
  text-decoration: line-through;
  color: var(--text-faint);
}

.roadmap-point:hover .roadmap-point__dot,
.roadmap-point:focus-visible .roadmap-point__dot {
  transform: scale(1.35);
  box-shadow: 0 0 22px var(--point-color);
}

.roadmap-point:hover .roadmap-point__peek,
.roadmap-point:focus-visible .roadmap-point__peek {
  border-color: color-mix(in srgb, var(--point-color) 45%, var(--border));
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.roadmap-point:hover,
.roadmap-point:focus-visible {
  z-index: 10;
}

.roadmap-point__card {
  position: absolute;
  left: 0;
  top: calc(100% + 0.55rem);
  z-index: 5;
  width: max-content;
  max-width: 16rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
  text-align: left;
}

.roadmap-point--completed .roadmap-point__card {
  top: auto;
  bottom: calc(100% + 0.55rem);
  transform: translateY(0.35rem);
}

.roadmap-point:hover .roadmap-point__card,
.roadmap-point:focus-visible .roadmap-point__card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.roadmap-point:focus-visible {
  outline: none;
}

.roadmap-point:focus-visible .roadmap-point__peek {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.roadmap-point__status {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--point-color, var(--text-faint));
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-point__module {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.roadmap-point__title {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.roadmap-point--scratched .roadmap-point__title {
  color: var(--text-faint);
  text-decoration: line-through;
}

/* Roadmap — simplified tablet/mobile list */
.roadmap-simple {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  padding: 0 1rem 2rem;
}

.roadmap-simple[hidden] {
  display: none !important;
}

.roadmap-simple__group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
  overflow: hidden;
}

.roadmap-simple__heading {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-simple__group--in-progress .roadmap-simple__heading { color: #22d3ee; }
.roadmap-simple__group--planned .roadmap-simple__heading { color: #a78bfa; }
.roadmap-simple__group--scratched .roadmap-simple__heading { color: #ef4444; }
.roadmap-simple__group--completed .roadmap-simple__heading { color: #34d399; }

.roadmap-simple__list {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.roadmap-simple__item {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.roadmap-simple__item:first-child {
  border-top: 0;
}

.roadmap-simple__item time {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-simple__title {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.roadmap-simple__item--scratched .roadmap-simple__title {
  color: var(--text-faint);
  text-decoration: line-through;
}

.roadmap-simple__more {
  padding: 0.65rem 0.9rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.roadmap-simple__more a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.roadmap-simple__more a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  display: block;
  width: min(9.5rem, 100%);
  height: auto;
  object-fit: contain;
}

.footer-logo--light {
  display: none;
}

:root[data-theme="light"] .footer-logo--dark,
:root[data-theme="light"] .footer-logo {
  display: none;
}

:root[data-theme="light"] .footer-logo--light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .footer-logo--dark,
  :root:not([data-theme="dark"]) .footer-logo {
    display: none;
  }

  :root:not([data-theme="dark"]) .footer-logo--light {
    display: block;
  }
}

.footer-brand p {
  max-width: 28rem;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent-text);
}

.footer-meta {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-meta p {
  margin: 0;
}

/* Responsive */
@media (min-width: 760px) {
  .header-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-grid div {
    padding: 1.35rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .trust-grid div:first-child {
    padding-left: 0;
  }

  .trust-grid div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .intro-grid {
    grid-template-columns: 14rem 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .docs-band-inner,
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 759px) {
  .hscroll-sticky,
  .workflow-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .hscroll-stage,
  .workflow-stage {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 0;
    grid-template-columns: none;
    justify-items: stretch;
  }

  .workflow-stage > .workflow-intro,
  .workflow-stage > .workflow-stack {
    grid-area: auto;
  }

  .workflow-intro {
    justify-self: auto;
    width: auto;
    background: none;
    pointer-events: auto;
  }

  .workflow-intro * {
    pointer-events: auto;
  }

  .hscroll-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .hscroll-track {
    transform: none !important;
    height: auto;
  }

  .hscroll-hint {
    display: none;
  }

  #roadmapRich {
    display: none !important;
  }

  .workflow-intro {
    flex: none;
    height: auto;
    padding: 2rem 1rem 1rem;
    background: none;
  }

  .workflow-stack {
    display: grid;
    gap: 0.85rem;
    height: auto;
    min-height: 0;
    margin: 0 1rem 2rem;
  }

  .workflow-window,
  .workflow-window.is-revealed,
  .workflow-window.is-front {
    position: relative;
    top: auto;
    left: auto;
    width: 100% !important;
    max-width: 22rem;
    margin: 0 auto;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    filter: none;
    box-shadow: var(--shadow);
  }

  .workflow-window:nth-child(2),
  .workflow-window:nth-child(3),
  .workflow-window:nth-child(5),
  .workflow-window:nth-child(6) {
    display: none;
  }

  .roadmap-intro {
    flex: none;
    height: auto;
    padding: 2rem 1rem 1rem;
  }

  .roadmap-intro__lead {
    position: static;
    margin-top: 0.9rem;
    max-width: none;
  }

  .roadmap-labels {
    display: none;
  }

  .roadmap-intro__beam {
    display: none;
  }

  .roadmap-scroll {
    height: auto;
  }

  .roadmap-timeline {
    margin: 0;
    height: auto;
  }

  .roadmap-canvas {
    height: auto;
  }

  .roadmap-simple {
    padding: 0 1rem 2rem;
  }

  .theme-switch {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .command-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 1rem auto 0;
  }
}
