:root {
  color-scheme: light;
  --bg: #c9d3e2;
  --bg-deep: #b8c4d6;
  --surface: #eaf0f8;
  --surface-2: #dce4f0;
  --ink: #141b28;
  --muted: #3a4558;
  --muted-2: #5b6880;
  --primary: #3f5bff;
  --primary-deep: #2f48e8;
  --primary-container: #d5dfff;
  --tertiary: #6e4bf0;
  --on-primary: #ffffff;
  --shadow: rgba(15, 23, 42, 0.07);
  --highlight: rgba(255, 255, 255, 0.88);
  --radius: 18px;
  --radius-pill: 999px;
  --font: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --raise:
    3px 5px 10px rgba(15, 23, 42, 0.05),
    -2px -2px 6px rgba(255, 255, 255, 0.72);
  --raise-soft:
    2px 3px 6px rgba(15, 23, 42, 0.04),
    -1px -1px 4px rgba(255, 255, 255, 0.68);
  --inset:
    inset 3px 3px 7px rgba(15, 23, 42, 0.07),
    inset -2px -2px 6px rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 640px at 50% -10%, rgba(255, 255, 255, 0.55), transparent 62%),
    linear-gradient(180deg, #d7e0ec 0%, var(--bg) 28%, #c2cedd 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--raise);
}

.skip-link:focus { top: 12px; }

.raised { box-shadow: var(--raise); background: var(--surface); }
.raised-soft { box-shadow: var(--raise-soft); background: var(--surface); }
.inset { box-shadow: var(--inset); background: var(--surface-2); }

.mini-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.muted { color: var(--muted-2); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-container);
  color: #0e1f5a;
  font-size: 11px;
  font-weight: 600;
}

.tag-think { background: #e4dbff; color: #2b1668; }

.live-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: #0e1f5a;
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(63, 91, 255, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 650;
}

.button-primary {
  color: var(--on-primary);
  background: linear-gradient(180deg, #5b73ff 0%, var(--primary) 100%);
  box-shadow:
    6px 8px 16px rgba(63, 91, 255, 0.32),
    -2px -2px 8px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-quiet {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--raise-soft);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 0 16px 0 12px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, white);
  box-shadow: var(--raise);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--primary-container);
  box-shadow: var(--raise-soft);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  box-shadow: var(--inset);
  font-size: 13px;
  font-weight: 650;
}

.menu-toggle {
  display: none;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--raise-soft);
}

.hero,
.section,
.proof-strip,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  padding: 56px 0 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--raise-soft);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
h3 { font-size: 20px; }

.hero-lede {
  max-width: 34em;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.hero-stage { min-width: 0; }

.stage-well {
  position: relative;
  min-height: 0;
  padding: 22px 22px 28px;
  overflow: visible;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
  box-shadow:
    inset 2px 2px 6px rgba(15, 23, 42, 0.05),
    inset -2px -2px 6px rgba(255, 255, 255, 0.45);
}

.desktop-window {
  width: min(100%, 520px);
  border-radius: 20px;
  overflow: hidden;
  transform: none;
  background: var(--surface);
  box-shadow: var(--raise);
}

.stage-well .sidebar-agent,
.stage-well .sidebar-path,
.stage-well .timeline-row,
.stage-well .phone-card {
  box-shadow: var(--raise-soft);
}

.stage-well .raised {
  box-shadow: var(--raise);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 650;
}

.window-dots { display: flex; gap: 6px; margin-right: auto; }
.window-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa6b8;
}
.window-dots i:first-child { background: #ff8177; }
.window-dots i:nth-child(2) { background: #e7be72; }
.window-dots i:nth-child(3) { background: #82d59f; }

.window-content { display: grid; grid-template-columns: 132px 1fr; min-height: 250px; }
.window-sidebar { padding: 14px; background: #d9e2ef; }
.sidebar-label { margin: 8px 0 6px; font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; }
.sidebar-agent, .sidebar-path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  font-size: 12px;
  background: var(--surface);
  box-shadow: var(--raise-soft);
}
.sidebar-agent.is-active { background: var(--primary-container); }
.agent-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.agent-pulse.is-muted { background: #9aa6b8; }
.window-main { padding: 14px 16px 16px; }
.window-main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.timeline-list { display: grid; gap: 8px; }
.timeline-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
}

.composer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted-2);
  font-size: 13px;
}

.phone-window {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 168px;
  border-radius: 24px;
  padding: 8px 8px 12px;
  transform: none;
  background: color-mix(in srgb, var(--surface) 92%, white);
  box-shadow: var(--raise);
}

.phone-speaker {
  width: 64px;
  height: 6px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: #9aa6b8;
}

.phone-screen { padding: 4px 6px 8px; }
.phone-status, .phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.phone-head { margin: 8px 0; font-weight: 750; }
.phone-brand-mark {
  width: 18px;
  height: 18px;
  overflow: hidden;
  border-radius: 6px;
}
.phone-subhead { margin-bottom: 8px; color: var(--muted-2); font-size: 12px; }
.phone-card { padding: 10px; border-radius: 14px; margin-bottom: 8px; font-size: 12px; }
.phone-card p { margin: 8px 0; }
.progress { height: 8px; border-radius: 999px; overflow: hidden; }
.progress span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 40px;
}

.proof-item, .feature-item, .platform-item {
  padding: 20px;
  border-radius: var(--radius);
}

.proof-number, .feature-index, .workflow-number, .platform-code {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-container);
  color: #0e1f5a;
  font-size: 12px;
  font-weight: 750;
}

.proof-item p, .feature-item p, .platform-item p, .workflow-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section { padding: 28px 0 56px; }

.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); }

.demo-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  border-radius: 18px;
}

.segment {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.segment.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--raise-soft);
}

.demo-description { color: var(--muted); }
.demo-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
}

.demo-stage { padding: 18px; border-radius: 24px; }
.demo-stage-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stage-id { font-variant-numeric: tabular-nums; color: var(--muted-2); }
.demo-panels { display: grid; gap: 12px; }
.demo-panel { padding: 14px; border-radius: 18px; opacity: 0.55; }
.demo-panel.is-active { opacity: 1; background: var(--primary-container); }
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 650;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--raise-soft);
  font-size: 12px;
}
.panel-title { margin-bottom: 8px; font-weight: 750; }
.panel-line { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.demo-event {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
}
.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tertiary);
}
.demo-stage.is-pulse { transform: translateY(-2px); transition: transform 0.2s ease; }

.feature-grid, .platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.privacy-endpoint { padding: 20px; border-radius: 22px; }
.endpoint-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 750;
}
.endpoint-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.muted-marker { background: var(--muted-2); }
.privacy-endpoint ul { margin: 0; padding: 0; list-style: none; }
.privacy-endpoint li { padding: 8px 0; border-top: 1px solid rgba(90, 110, 140, 0.16); }
.muted-list { color: var(--muted); }

.privacy-route {
  display: grid;
  place-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 24px 16px;
  border-radius: 22px;
  text-align: center;
}

.route-packet {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--primary);
  opacity: 0;
}

.privacy-route.is-pulsing .packet-one,
.privacy-route.is-pulsing .packet-two {
  animation: packet 1.1s ease;
}

.privacy-route.is-pulsing .packet-two { animation-delay: 0.18s; }

@keyframes packet {
  0% { opacity: 0; transform: translateX(-70px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(70px); }
}

.privacy-footnote { margin-top: 16px; color: var(--muted-2); font-size: 13px; }

.workflow-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.workflow-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  box-shadow: var(--raise-soft);
}

.faq-list { display: grid; gap: 12px; }
details {
  padding: 4px 18px 14px;
  border-radius: 18px;
}
summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 750;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { margin: 0; color: var(--muted); }

.site-footer {
  display: grid;
  gap: 16px;
  padding: 24px 0 48px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 650; }

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

.download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
}

.download-card p { margin: 0; color: var(--muted); }
.download-card .button { margin-top: auto; align-self: flex-start; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.store-link.is-soon {
  pointer-events: none;
  opacity: 0.72;
  box-shadow: var(--raise-soft);
}

.guide-list { display: grid; gap: 28px; }
.guide-step {
  padding: 22px 24px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  box-shadow: var(--raise-soft);
}
.guide-step h3 { margin-bottom: 8px; }
.guide-step p, .guide-step li { color: var(--muted); }
.guide-step ol, .guide-step ul { margin: 8px 0 0; padding-left: 1.2em; }

@media (max-width: 1100px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .phone-window { display: none; }
  .desktop-window { transform: none; width: 100%; }
}

@media (max-width: 980px) {
  .hero, .demo-layout, .privacy-layout, .proof-strip, .feature-grid, .platform-grid, .download-grid {
    grid-template-columns: 1fr;
  }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--raise);
  }
  .site-nav.is-open, .menu-toggle { display: flex; }
  .desktop-window { transform: none; width: 100%; }
  .phone-window { position: relative; right: auto; bottom: auto; margin: 16px auto 0; transform: none; }
  .stage-well { min-height: 0; }
}
