/* ═══════════════════════════════════════════════════════════════════
   Brapua — Landing page
   Identity: sky blue → white, Inter + Fraunces, restrained glass
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  /* Color */
  --ink: #16181d;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --blue: #3d78c9;
  --blue-deep: #2c5fa8;
  --sky-1: #4a84d0;
  --sky-2: #9cc4ef;
  --sky-3: #e8f2fc;
  --surface: #ffffff;
  --surface-alt: #f6f9fd;
  --line: rgba(22, 24, 29, 0.08);
  --line-strong: rgba(22, 24, 29, 0.14);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.10), 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-xl: 0 24px 64px rgba(20, 40, 80, 0.16), 0 4px 16px rgba(20, 40, 80, 0.08);

  /* ── Apple Liquid Glass ─────────────────────────────────────────
     Blur tiers with saturate + brightness (brightness makes glass
     glow instead of fog), a four-edge specular stack simulating one
     overhead light source, and layered depth shadows.
  ──────────────────────────────────────────────────────────────── */
  --glass-bg-ultra: rgba(255, 255, 255, 0.40);
  --glass-bg: rgba(255, 255, 255, 0.34);
  --glass-bg-thin: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.58);

  --glass-blur-xl: blur(32px) saturate(185%) brightness(1.06);
  --glass-blur-lg: blur(24px) saturate(175%) brightness(1.05);
  --glass-blur-md: blur(16px) saturate(165%) brightness(1.04);

  /* 4-edge specular: top catches the light, left rim, bottom shade, right hint */
  --glass-spec:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(2, 16, 43, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.14);
  /* Same stack + a soft pool of light along the inside top edge */
  --glass-spec-glow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(2, 16, 43, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 26px 52px -26px rgba(255, 255, 255, 0.72);

  /* Depth: near / ambient / atmospheric */
  --glass-depth-sm: 0 2px 8px rgba(8, 28, 68, 0.06), 0 8px 24px rgba(8, 28, 68, 0.08);
  --glass-depth-md: 0 3px 10px rgba(8, 28, 68, 0.08), 0 14px 38px rgba(8, 28, 68, 0.11), 0 34px 68px rgba(8, 28, 68, 0.06);
  --glass-depth-lg: 0 4px 14px rgba(8, 28, 68, 0.10), 0 20px 52px rgba(8, 28, 68, 0.15), 0 52px 104px rgba(8, 28, 68, 0.09);

  /* Back-compat aliases */
  --glass-bg-strong: var(--glass-bg-ultra);
  --glass-blur: var(--glass-blur-md);
  --glass-blur-strong: var(--glass-blur-lg);
  --glass-spec-top: inset 0 1.5px 0 rgba(255, 255, 255, 0.92);

  /* Shape & rhythm */
  --radius: 14px;
  --radius-lg: 20px;
  --space: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(61, 120, 201, 0.18); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }

/* Headings stay in one voice — the serif lives in quotes only */
h2 em, h1 em {
  font-style: normal;
  font-weight: inherit;
}

a { color: var(--blue-deep); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; text-decoration: none; font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ── Layout ─────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 760px; }

.section { padding-block: clamp(72px, 6vw + 40px, 120px); }

/* Soft blue washes so the glass surfaces have something to refract */
.section-tint {
  background:
    radial-gradient(720px 360px at 10% 18%, rgba(116, 168, 228, 0.11), transparent 70%),
    radial-gradient(640px 320px at 90% 78%, rgba(146, 192, 240, 0.09), transparent 70%);
}
.section-alt {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(760px 380px at 85% 12%, rgba(116, 168, 228, 0.10), transparent 70%),
    radial-gradient(680px 340px at 12% 85%, rgba(146, 192, 240, 0.08), transparent 70%),
    #f5f8fc;
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(40px, 4vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }

/* Tinted glass: gradient fill + top light + bottom shade, like iOS buttons */
.btn-primary {
  background: linear-gradient(180deg, #4d87d3 0%, #3a72c2 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(2, 16, 43, 0.18),
    0 2px 8px rgba(30, 70, 140, 0.22),
    0 8px 20px rgba(30, 70, 140, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #427cca 0%, #2f65b3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(2, 16, 43, 0.18),
    0 3px 10px rgba(30, 70, 140, 0.26),
    0 10px 26px rgba(30, 70, 140, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border-color: var(--glass-border);
  box-shadow: var(--glass-spec), var(--glass-depth-sm);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--glass-spec), var(--glass-depth-md);
}

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 960px;
  border-radius: 22px;
  background: var(--glass-bg-thin);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  backdrop-filter: var(--glass-blur-xl);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-spec), var(--glass-depth-sm);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: var(--glass-bg-ultra);
  box-shadow: var(--glass-spec), var(--glass-depth-md);
}

.nav-inner {
  padding-inline: 20px 12px;
  height: 58px;
  display: flex; align-items: center; gap: 28px;
}

.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(140px, 16vh, 190px);
  overflow: hidden;
}

.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 520px at 50% -140px, rgba(74, 132, 208, 0.52) 0%, rgba(156, 196, 239, 0.27) 46%, transparent 74%),
    radial-gradient(700px 420px at 82% -60px, rgba(126, 112, 214, 0.14) 0%, transparent 65%),
    radial-gradient(520px 380px at 74% 26%, rgba(255, 255, 255, 0.5) 0%, transparent 68%),
    linear-gradient(180deg, #dbebfa 0%, rgba(222, 237, 251, 0.55) 45%, #ffffff 100%);
}

/* Zugspitze & Alpspitze — pure background silhouette across the hero.
   Top-anchored just below the headline so the peaks end right behind it.
   JS adds a slight parallax translate on scroll for depth. */
.hero-alps {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: clamp(170px, 14vw, 250px);
  z-index: -1;
  width: 100%;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.7rem, 1.6rem + 5vw, 5rem);
  max-width: 14ch;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

/* Gradient accent on "people" — slowly drifts like light */
.hero-title .hl {
  background: linear-gradient(115deg, #24518f 0%, #3d78c9 40%, #6ea3e4 55%, #24518f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hlDrift 7s ease-in-out infinite;
}
@keyframes hlDrift {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* Entrance choreography */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner .hero-title { animation: heroUp 0.85s var(--ease) both; }
.hero-inner .hero-lead { animation: heroUp 0.85s var(--ease) 0.12s both; }
.demo-wrap .demo { animation: heroUp 1s var(--ease) 0.28s both; }

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 52ch;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 34px;
}

/* ── Demo ───────────────────────────────────────────────────────── */

.demo-wrap {
  position: relative;
  margin-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(24px, 3vw, 48px);
}

.demo {
  position: relative; z-index: 1;
  max-width: 940px; margin-inline: auto;
}

/* ── macOS screen around the app window (Cluely-style) ─────────── */

.mac {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--glass-depth-lg);
}

/* Sits on top of the wallpaper, exactly like the real macOS menu bar */
.mac-menubar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 32px;
  padding-inline: 14px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(10, 30, 70, 0.3);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mac-mb-left, .mac-mb-right { display: flex; align-items: center; gap: 16px; }

.mac-mb-apple { height: 14px; width: auto; fill: rgba(255, 255, 255, 0.94); }
.mac-mb-app { font-weight: 700; }
.mac-mb-item { opacity: 0.88; }
.mac-mb-icon { width: 14px; height: 14px; opacity: 0.9; }
.mac-mb-time { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .mac-mb-item, .mac-mb-icon { display: none; }
}

/* Wallpaper — vivid macOS-style gradient in brand blues */
.mac-desktop {
  position: relative;
  padding: calc(32px + clamp(22px, 4.5vw, 52px)) clamp(16px, 5vw, 64px) clamp(22px, 4.5vw, 52px);
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(30, 64, 130, 0.9) 0%, transparent 55%),
    radial-gradient(100% 80% at 88% 12%, rgba(120, 92, 200, 0.55) 0%, transparent 60%),
    radial-gradient(130% 110% at 50% 108%, rgba(168, 205, 248, 0.95) 0%, transparent 62%),
    linear-gradient(158deg, #1c3f7e 0%, #2f66b6 42%, #6f9fdd 74%, #a9cbf2 100%);
}

/* Wallpaper skyline sits behind the floating window */
.mac-alps {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 72%;
  pointer-events: none;
}

.demo-frame {
  position: relative; z-index: 1;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  backdrop-filter: var(--glass-blur-xl);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-spec-glow), 0 12px 40px rgba(6, 20, 50, 0.35), 0 40px 90px rgba(6, 20, 50, 0.28);
  overflow: hidden;
  max-width: 680px;
  margin-inline: auto;
}

.demo-titlebar {
  display: flex; align-items: center; gap: 7px;
  height: 42px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22));
}
.tb-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e4e7ec;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.15);
}
.tb-dot-r { background: #ff5f57; }
.tb-dot-y { background: #febc2e; }
.tb-dot-g { background: #28c840; }
.tb-title {
  flex: 1; text-align: center;
  margin-right: 47px; /* offset the three dots so the title is optically centered */
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}

.demo-stage {
  position: relative;
  height: 420px;
  background: linear-gradient(180deg, rgba(253, 254, 255, 0.6) 0%, rgba(247, 250, 253, 0.72) 100%);
}

.demo-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s var(--ease),
              transform 0.55s cubic-bezier(0.34, 1.4, 0.5, 1);
  pointer-events: none;
  visibility: hidden;
}
.demo-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.ds-center {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  padding: 32px;
  text-align: center;
}

.ds-question {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ds-inputbox {
  width: min(560px, 100%);
  min-height: 88px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  font-size: 15px;
  text-align: left;
  color: var(--ink);
  line-height: 1.55;
}

.ds-caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 1px;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ds-btn {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none; border-radius: 999px;
  padding: 11px 26px;
  cursor: default;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              background 0.15s var(--ease);
}
.ds-btn.is-visible { opacity: 1; transform: translateY(0); }
.ds-btn.is-pressed { background: var(--blue-deep); }

/* Match screen */

.ds-search { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ds-search.is-hidden { display: none; }

.ds-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(61, 120, 201, 0.15);
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ds-search-label { font-size: 15px; color: var(--muted); }

.ds-match {
  display: none;
  align-items: center; gap: 14px;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  text-align: left;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ds-match.is-shown { display: flex; }
.ds-match.is-in { opacity: 1; transform: translateY(0) scale(1); }

.ds-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, #5a8fd6, #3d6cb4);
}
.ds-avatar-sm { width: 34px; height: 34px; font-size: 14px; }

.ds-match-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ds-match-name { font-weight: 600; font-size: 15px; }
.ds-match-meta { font-size: 13px; color: var(--muted); }

.ds-match-pct {
  font-size: 13px; font-weight: 600;
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Chat screen */

.ds-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ds-chat-head > div { display: flex; flex-direction: column; }
.ds-chat-name { font-weight: 600; font-size: 14.5px; }
.ds-chat-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.ds-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
}

.ds-messages {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  overflow-y: auto;
}

.ds-msg {
  max-width: 72%;
  padding: 10px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition: opacity 0.4s var(--ease),
              transform 0.45s cubic-bezier(0.34, 1.5, 0.55, 1);
}
.ds-msg.is-in { opacity: 1; transform: translateY(0) scale(1); }

.ds-msg--them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.ds-msg--me {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.ds-typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.ds-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c3cad4;
  animation: typing 1.2s ease-in-out infinite;
}
.ds-typing span:nth-child(2) { animation-delay: 0.15s; }
.ds-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ds-chatbar {
  margin: 0 20px 18px;
  padding: 11px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

/* Rate screen */

.ds-rate { gap: 10px; }

.ds-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  margin-bottom: 6px;
}

.ds-solved { font-weight: 600; font-size: 18px; }
.ds-rate-q { font-size: 14.5px; color: var(--muted); }

.ds-stars { display: flex; gap: 6px; font-size: 26px; color: #dde2e9; }
.ds-stars span { transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.ds-stars span.is-lit { color: #f5b323; transform: scale(1.12); }

.ds-points {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.ds-points.is-in { opacity: 1; transform: translateY(0); }

/* Quiet proof strip under the demo — Cluely-style quick trust signals */
.hero-proof {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 0;
  margin: 36px auto 0;
  padding: 0;
  max-width: 720px;
}
.hero-proof li {
  display: flex; align-items: baseline; gap: 6px;
  padding-inline: 22px;
  font-size: 14px;
  color: var(--muted);
}
.hero-proof li + li { border-left: 1px solid var(--line-strong); }
.hero-proof strong {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 640px) {
  .hero-proof { max-width: 340px; }
  .hero-proof li { padding-inline: 14px; }
  .hero-proof li:nth-child(3) { border-left: none; }
}

/* Step indicator */

.demo-steps {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 22px;
}

.demo-step {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.demo-step.is-active {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(8, 28, 68, 0.07);
}

@media (max-width: 640px) {
  .demo-stage { height: 460px; }
  .ds-msg { max-width: 88%; }
}

/* ── Cards ──────────────────────────────────────────────────────── */

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--glass-spec), var(--glass-depth-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
              background 0.25s var(--ease);
}
.card:hover {
  background: var(--glass-bg-ultra);
  box-shadow: var(--glass-spec-glow), var(--glass-depth-md);
  transform: translateY(-2px);
}

.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--ink-2); }

.card-num {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 18px;
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61, 120, 201, 0.08);
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

/* ── Privacy (dark section) ─────────────────────────────────────── */

.section-dark {
  background:
    radial-gradient(900px 400px at 70% -100px, rgba(74, 132, 208, 0.22), transparent 65%),
    #14202f;
  color: #f2f6fa;
}
.section-dark .section-sub { color: rgba(242, 246, 250, 0.62); }
.section-dark .section-tag { color: #8cb6e8; }

.card-dark, .card-dark:hover {
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(1.12);
  backdrop-filter: blur(20px) saturate(160%) brightness(1.12);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}
.card-dark:hover { border-color: rgba(255, 255, 255, 0.2); }
.card-dark p { color: rgba(242, 246, 250, 0.68); }
.card-dark .card-icon {
  background: rgba(140, 182, 232, 0.12);
  color: #a9cbf0;
}

/* ── Stats ──────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.stat {
  border-top: 2px solid var(--blue);
  padding-top: 20px;
}
.stat dt {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat dd { font-size: 14.5px; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  font-size: 16.5px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue-deep); }

.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px; font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ── CTA ────────────────────────────────────────────────────────── */

.cta {
  padding-bottom: clamp(80px, 8vw, 140px);
  background:
    radial-gradient(720px 360px at 50% 30%, rgba(116, 168, 228, 0.13), transparent 72%);
}

.cta-box {
  text-align: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  backdrop-filter: var(--glass-blur-lg);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-spec-glow), var(--glass-depth-md);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.cta-box .section-sub { margin-inline: auto; }

.cta-form {
  display: flex; gap: 10px;
  max-width: 440px;
  margin: 32px auto 0;
}
.cta-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(2, 16, 43, 0.05);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
              background 0.15s var(--ease);
}
.cta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 120, 201, 0.15);
}

@media (max-width: 520px) {
  .cta-form { flex-direction: column; }
}

.cta-fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 5vw, 72px) 32px;
  background: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 26px; width: auto; }

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 30ch;
}

.footer-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Founder page ───────────────────────────────────────────────── */

.founder-hero { padding-bottom: clamp(72px, 7vw, 120px); }

.founder-alps { top: clamp(220px, 20vw, 340px); }

.founder-intro {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.founder-text .section-tag { margin-bottom: 18px; }

.founder-name {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);
  letter-spacing: -0.03em;
}

.founder-text .hero-lead { margin-top: 18px; max-width: 44ch; }

.founder-actions { justify-content: flex-start; }

.founder-portrait {
  justify-self: end;
  max-width: 400px;
  padding: 12px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  backdrop-filter: var(--glass-blur-lg);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-spec-glow), var(--glass-depth-lg);
}
.founder-portrait img {
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

@media (max-width: 860px) {
  .founder-intro { grid-template-columns: 1fr; text-align: center; }
  .founder-text .hero-lead { margin-inline: auto; }
  .founder-actions { justify-content: center; }
  .founder-portrait { justify-self: center; max-width: 320px; }
}

/* Pull quotes */

.pull-quote {
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
}

.pull-quote-dark p { color: #f2f6fa; }
.pull-quote-dark cite { color: rgba(242, 246, 250, 0.6); }

/* ── Subpages: page head + prose (legal pages) ──────────────────── */

.page-head {
  position: relative;
  padding: clamp(130px, 15vh, 175px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(720px 340px at 50% -120px, rgba(74, 132, 208, 0.33) 0%, rgba(156, 196, 239, 0.17) 50%, transparent 74%),
    linear-gradient(180deg, #e0eefb 0%, #ffffff 100%);
}

.page-head h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
}

.page-head .page-meta {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.back-link {
  display: flex; width: max-content; align-items: center; gap: 6px;
  margin-bottom: 22px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }

.prose { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 7vw, 110px); }

.prose h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 15.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  max-width: 68ch;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 66ch;
}
.prose li { margin-bottom: 8px; }

.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.prose address {
  font-style: normal;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── Contact page ───────────────────────────────────────────────── */

.contact-cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.contact-card .card-label {
  display: block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-card .card-value {
  font-size: 16.5px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-card:hover .card-value { color: var(--blue-deep); }

/* ── Scroll reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease) var(--d, 0s),
              transform 0.65s var(--ease) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
