:root {
  --primary: #4664ff;
  --primary-strong: #304ad2;
  --primary-soft: #dfe4ff;
  --secondary: #5f63a8;
  --tertiary: #0d7b84;
  --surface: #f7f8ff;
  --surface-low: #eef1ff;
  --surface-container: rgba(238, 241, 255, 0.84);
  --surface-high: rgba(226, 232, 255, 0.94);
  --surface-strong: rgba(215, 223, 255, 0.97);
  --surface-dark: #141b38;
  --text: #171c33;
  --muted: #5f678d;
  --line: rgba(65, 81, 150, 0.16);
  --line-strong: rgba(65, 81, 150, 0.24);
  --success: #1b8d63;
  --shadow-soft: 0 24px 64px rgba(45, 64, 143, 0.12);
  --shadow-card: 0 12px 28px rgba(45, 64, 143, 0.08);
  --radius-sheet: 28px;
  --radius-card: 16px;
  --radius-chip: 12px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(70, 100, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(13, 123, 132, 0.14), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8ff 42%, #eef2ff 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 100, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 100, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  content: "";
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: var(--s9);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s6);
  padding: var(--s6) 0 var(--s5);
}

.topbar-legal {
  padding-bottom: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(45, 64, 143, 0.08);
  color: var(--primary-strong);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-copy,
.topnav a,
.hero-text,
.section-copy p,
.feature-card p,
.workflow-card p,
.status-list li,
.section-text,
.legal-page p,
.footer p {
  line-height: 1.6;
}

.brand-copy {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.topnav a,
.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.topnav a:hover,
.footer-links a:hover {
  background: rgba(70, 100, 255, 0.08);
  color: var(--text);
}

.hero,
.section,
.footer {
  position: relative;
}

.hero {
  padding: var(--s4) 0 0;
}

.hero-layout,
.status-grid,
.legal-callout {
  display: grid;
  gap: var(--s6);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: stretch;
}

.surface-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), var(--surface-container));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.surface-panel-hero {
  padding: var(--s8);
}

.surface-panel-strong {
  background: linear-gradient(180deg, rgba(232, 237, 255, 0.98), rgba(215, 223, 255, 0.96));
}

.chip-row,
.hero-actions,
.legal-links,
.store-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.hero-chip,
.store-strip span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pill-live {
  background: rgba(27, 141, 99, 0.12);
  border-color: rgba(27, 141, 99, 0.24);
  color: #1d7354;
}

.eyebrow,
.feature-kicker,
.mini-label {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  margin-top: var(--s4);
  font-size: clamp(3rem, 7vw, 5.35rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  font-weight: 800;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-text,
.section-text {
  margin: var(--s5) 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: var(--s6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #f9fbff;
  box-shadow: 0 16px 30px rgba(70, 100, 255, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.app-preview {
  padding: var(--s4);
}

.preview-window {
  overflow: hidden;
  border-radius: calc(var(--radius-sheet) - 6px);
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.95), rgba(232, 236, 255, 0.96));
  border: 1px solid rgba(78, 97, 181, 0.14);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid rgba(78, 97, 181, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.preview-dots {
  display: inline-flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #f46d6d;
}

.dot-amber {
  background: #f2bf56;
}

.dot-green {
  background: #54c18b;
}

.preview-toolbar-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.preview-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 520px;
}

.preview-rail {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5) var(--s3);
  border-right: 1px solid rgba(78, 97, 181, 0.12);
  background: rgba(233, 238, 255, 0.72);
}

.rail-item {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  color: var(--muted);
  font-weight: 700;
}

.rail-item-active {
  background: rgba(70, 100, 255, 0.14);
  color: var(--primary-strong);
}

.preview-main {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
}

.preview-header,
.preview-highlight,
.preview-card {
  border: 1px solid rgba(78, 97, 181, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.preview-header,
.preview-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
}

.preview-highlight {
  background: linear-gradient(180deg, rgba(70, 100, 255, 0.12), rgba(255, 255, 255, 0.88));
}

.preview-highlight p,
.preview-card p {
  margin: 0 0 var(--s2);
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.preview-card {
  min-height: 124px;
  padding: var(--s4);
}

.preview-card-tonal {
  background: linear-gradient(180deg, rgba(13, 123, 132, 0.12), rgba(255, 255, 255, 0.88));
}

.preview-meter {
  display: grid;
  gap: 6px;
  width: min(132px, 28%);
}

.preview-meter span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(70, 100, 255, 0.34), rgba(13, 123, 132, 0.42));
}

.preview-meter span:nth-child(2) {
  width: 86%;
}

.preview-meter span:nth-child(3) {
  width: 64%;
}

.section {
  padding-top: 68px;
}

.section-heading {
  margin-bottom: var(--s6);
}

.feature-grid,
.workflow-grid {
  display: grid;
  gap: var(--s4);
}

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

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

.feature-card,
.workflow-card,
.status-card {
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-height: 224px;
}

.feature-kicker {
  display: inline-block;
  margin-bottom: var(--s4);
}

.feature-card p,
.workflow-card p,
.section-copy p,
.legal-page p,
.footer p,
.status-list li {
  margin: 0;
  color: var(--muted);
}

.feature-card h3,
.workflow-card h3 {
  margin-bottom: var(--s3);
}

.workflow-card {
  min-height: 208px;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s4);
  border-radius: 14px;
  background: rgba(70, 100, 255, 0.12);
  color: var(--primary-strong);
  font-weight: 800;
}

.status-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.status-list {
  margin: var(--s4) 0 0;
  padding-left: 1.2rem;
}

.status-list li + li {
  margin-top: var(--s3);
}

.legal-callout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.section-copy {
  max-width: 62ch;
}

.section-copy p + p,
.legal-page p + p {
  margin-top: var(--s3);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s4);
  padding: 68px 0 0;
}

.footer p {
  margin-top: var(--s3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.legal-page {
  max-width: 880px;
  padding: var(--s4) 0 var(--s8);
}

.legal-page h1 {
  max-width: none;
  margin-top: var(--s3);
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.legal-page h2 {
  max-width: none;
  margin-bottom: var(--s3);
  font-size: 1.45rem;
}

.legal-page section {
  margin-top: var(--s6);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.legal-meta {
  margin-top: var(--s3);
  color: var(--muted);
  font-weight: 600;
}

.embed-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(70, 100, 255, 0.24), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(13, 123, 132, 0.16), transparent 24%),
    linear-gradient(180deg, #f8faff 0%, #eff3ff 100%);
}

.embed-shell {
  min-height: 100vh;
  padding: 0;
}

.embed-canvas {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s5);
  padding: clamp(18px, 4vw, 32px);
  background:
    radial-gradient(circle at top right, rgba(70, 100, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  overflow: hidden;
}

.embed-topbar,
.embed-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
}

.embed-hero {
  display: grid;
  gap: var(--s4);
  align-content: stretch;
  align-self: stretch;
}

.embed-hero h1 {
  max-width: 10ch;
  margin-top: 0;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
}

.embed-hero p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.embed-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s3);
  margin-top: auto;
}

.embed-panel,
.embed-stat {
  padding: var(--s4);
  border: 1px solid rgba(78, 97, 181, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.embed-panel p,
.embed-stat p {
  margin: 0 0 var(--s2);
  color: var(--muted);
  font-size: 0.9rem;
}

.embed-stack {
  display: grid;
  gap: var(--s3);
}

.embed-stat strong,
.embed-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.embed-bottom .button {
  min-height: 44px;
}

.embed-footer-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

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

@media (max-width: 1040px) {
  .hero-layout,
  .status-grid,
  .legal-callout,
  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .surface-panel-hero,
  .feature-card,
  .workflow-card,
  .status-card,
  .legal-page section {
    padding: var(--s4);
  }

  .preview-body,
  .embed-preview {
    grid-template-columns: 1fr;
  }

  .preview-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(78, 97, 181, 0.12);
  }

  .embed-canvas {
    min-height: 100vh;
  }
}

@media (max-width: 640px) {
  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 14vw, 4.15rem);
  }

  h2 {
    max-width: none;
  }

  .topnav,
  .footer-links,
  .embed-topbar,
  .embed-bottom {
    width: 100%;
  }

  .embed-topbar,
  .embed-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-top: 56px;
  }
}
