:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040812;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(7, 17, 31, 0.92);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-strong: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.24);
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --success: #22c55e;
  --shadow: 0 30px 100px rgba(2, 6, 23, 0.48);
  --shadow-soft: 0 18px 48px rgba(2, 6, 23, 0.24);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --font-sans: "Avenir Next", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 18% 14%, rgba(245, 158, 11, 0.18), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(34, 197, 94, 0.14), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #091120 54%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a {
  transition: color 160ms ease, transform 160ms ease;
}

.topnav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.95rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.button-small {
  padding: 0.84rem 1.12rem;
  font-size: 0.9rem;
}

.button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.22);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.28);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
}

main {
  display: grid;
  gap: 34px;
}

.hero {
  min-height: calc(100svh - 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
  padding: 24px 0 28px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  padding: 12px 4px 12px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: #fdba74;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.privacy-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 6.8rem);
}

.privacy-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

.lead,
.section-heading p,
.command-block p,
.flow-list li span:last-child,
.release-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 56ch;
  font-size: 1.06rem;
}

.mono {
  font-family: var(--font-mono);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  position: relative;
}

.product-hero .hero-visual {
  align-self: stretch;
}

.browser-window {
  display: grid;
  gap: 18px;
  min-height: 620px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
}

.traffic-dots {
  display: flex;
  gap: 7px;
}

.traffic-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.38);
}

.browser-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 16px;
  align-items: stretch;
}

.editor-surface {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.9), rgba(10, 17, 31, 0.72));
}

.code-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.93rem;
  line-height: 1.6;
}

.code-gutter {
  color: #64748b;
  user-select: none;
}

.code-text {
  word-break: break-word;
}

.selection {
  padding: 0.1rem 0.28rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.explain-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 800;
}

.explain-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.explain-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.explain-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #cbd5e1;
  line-height: 1.7;
}

.browser-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.signal-item {
  display: grid;
  gap: 8px;
  padding: 6px 4px;
}

.signal-item strong {
  color: #fff;
  font-size: 1rem;
}

.signal-item span {
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.feature-index {
  color: #fdba74;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-card h3,
.install-card strong,
.step-list h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.feature-card p,
.install-card p,
.step-list p,
.trust-note p,
.faq-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-index {
  color: #fdba74;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.install-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.trust-note {
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(34, 197, 94, 0.06);
}

.faq-stack {
  display: grid;
  gap: 10px;
}

.faq-stack details {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.faq-stack summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-stack summary::-webkit-details-marker {
  display: none;
}

.faq-stack p {
  padding-top: 12px;
}

.release-map {
  position: relative;
  min-height: 560px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.release-map::before {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 70%);
  pointer-events: none;
}

.release-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.pipeline {
  display: grid;
  gap: 16px;
}

.pipeline-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.pipeline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fdba74;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow span {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.route {
  display: grid;
  gap: 10px;
}

.route-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.route-line .tag {
  font-family: var(--font-mono);
  color: var(--text);
}

.route-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  font-size: 0.9rem;
}

.route-output strong {
  color: #fff;
}

.release-note {
  position: absolute;
  inset: auto 22px 22px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.08);
  color: #d1fae5;
  font-size: 0.94rem;
  line-height: 1.6;
}

.section-block {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading.narrow {
  max-width: 62ch;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flow-list {
  padding: 22px 0 0;
}

.flow-list h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: #fff;
}

.flow-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1);
}

.flow-list li span:first-child {
  flex: none;
  min-width: min(11rem, 36vw);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
}

.flow-list li span:last-child {
  flex: 1;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-block {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.command-block code {
  display: block;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.75);
  color: #fef3c7;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.command-block p {
  font-size: 0.95rem;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 34px;
}

.final-cta h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 270ms;
}

.privacy-page .hero {
  min-height: auto;
  padding: 20px 0 0;
}

.privacy-main {
  display: grid;
  gap: 10px;
}

@media (max-width: 960px) {
  .hero,
  .split-grid,
  .command-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .feature-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .release-map {
    min-height: auto;
  }

  .release-note {
    position: static;
    margin-top: 18px;
  }

  .topbar {
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .browser-window {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .topbar {
    padding: 12px 14px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 14vw, 4.9rem);
  }

  .privacy-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .release-map {
    padding: 18px;
  }

  .pipeline-block {
    padding: 14px;
  }

  .route-line {
    grid-template-columns: 1fr;
  }

  .command-block code,
  .flow span {
    word-break: break-word;
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .button-small {
    width: auto;
  }

  .browser-foot {
    flex-direction: column;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
