/* ============================================================
   Alpha — marketing site styles
   Plain CSS, no build step. Themed from the app icon:
   black field + teal → green → lime gradient.
   ============================================================ */

:root {
  --bg: #050706;
  --bg-2: #0a0d0c;
  --surface: #0e1211;
  --surface-2: #131817;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(52, 200, 89, 0.35);

  --text: #f3f6f4;
  --muted: #9aa6a1;
  --faint: #6b7470;

  --accent: #34c859;      /* app AccentColor */
  --teal: #1fd3b0;
  --lime: #c6ff4a;
  --danger: #ff4d4d;

  --grad: linear-gradient(135deg, var(--teal) 0%, var(--accent) 52%, var(--lime) 100%);
  --grad-soft: linear-gradient(135deg, rgba(31, 211, 176, 0.15), rgba(198, 255, 74, 0.12));

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 30px;
  --maxw: 1160px;
  /* hue-matched shadows tinted toward the background, not flat black */
  --shadow-color: 150 55% 4%;
  --shadow: 0 24px 60px -22px hsl(var(--shadow-color) / 0.85);
  --shadow-sm: 0 12px 34px -18px hsl(var(--shadow-color) / 0.7);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    system-ui, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

/* Ambient gradient glow behind the page */
body::before {
  content: "";
  position: fixed;
  top: -25vh;
  left: 50%;
  width: 90vw;
  max-width: 1100px;
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(52, 200, 89, 0.18) 0%, rgba(31, 211, 176, 0.08) 40%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

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

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

h1, h2, h3 { text-wrap: balance; }

/* Subtle film grain for depth instead of flat fills */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keyboard focus rings */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(5, 7, 6, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border), 0 6px 18px -8px rgba(52, 200, 89, 0.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a.link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a.link:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #04140a;
  box-shadow: 0 10px 30px -10px rgba(52, 200, 89, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(52, 200, 89, 0.8); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

/* Official App Store badge */
.badge-link { display: inline-flex; line-height: 0; }
.store-badge {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.16s ease, filter 0.16s ease;
  filter: drop-shadow(0 10px 22px hsl(var(--shadow-color) / 0.55));
}
.badge-link:hover .store-badge { transform: translateY(-2px); }
.badge-link:active .store-badge { transform: translateY(0) scale(0.97); }

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 84px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 33ch;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--faint); }

/* Device frame holding a real app screenshot */
.device-stage { display: flex; justify-content: center; position: relative; }
.device-stage::after {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background: var(--grad);
  filter: blur(80px);
  opacity: 0.28;
  z-index: -1;
  border-radius: 50%;
}
.device {
  width: 264px;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a302e, #0a0d0c 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.device img {
  display: block;
  width: 100%;
  border-radius: 36px;
}

/* Screenshot showcase strip */
.device-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}
.device-strip .device-card:nth-child(even) { transform: translateY(28px); }
.device-card { text-align: center; }
.device-card .device { width: 100%; padding: 8px; border-radius: 34px; }
.device-card .device img { border-radius: 27px; }
.device-card .cap { margin-top: 18px; padding: 0 6px; }
.device-card .cap h3 { font-size: 1.02rem; margin: 0 0 5px; font-weight: 650; letter-spacing: -0.01em; }
.device-card .cap p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 76px 0 92px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Feature bento — asymmetric, varied spans (no 3-equal-column row) */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cell {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.cell:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.cell > * { position: relative; z-index: 1; }
/* cursor spotlight */
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%), rgba(52, 200, 89, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cell:hover::after { opacity: 1; }
/* span pattern: row1 = 3+3, row2 = 2+2+2, row3 = full-width banner */
.cell:nth-child(1) { grid-column: span 3; }
.cell:nth-child(2) { grid-column: span 3; }
.cell:nth-child(6) { grid-column: span 6; }
.cell.accent {
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(52, 200, 89, 0.15), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border-color: var(--border-strong);
}
.cell .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.cell .ico svg { width: 23px; height: 23px; }
.cell h3 { font-size: 1.14rem; margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 650; }
.cell p { color: var(--muted); font-size: 0.95rem; margin: 0; }
/* full-width banner reads horizontally */
.cell.wide { display: flex; align-items: center; gap: 26px; }
.cell.wide .ico { margin-bottom: 0; flex: none; width: 56px; height: 56px; }
.cell.wide .ico svg { width: 27px; height: 27px; }
.cell.wide h3 { font-size: 1.3rem; }
.cell.wide .wide-text { max-width: 64ch; }

/* Split / privacy band */
.band {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; margin: 14px 0 18px; font-weight: 700; }
.split p { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 1rem; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.privacy-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(31,211,176,0.22), transparent 60%),
    radial-gradient(60% 60% at 75% 80%, rgba(198,255,74,0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.privacy-visual .shield { width: 42%; color: var(--accent); filter: drop-shadow(0 12px 30px rgba(52,200,89,0.4)); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat { padding: 18px; }
.stat .n { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* CTA */
.cta-box {
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
}
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.cta-box p { color: var(--muted); font-size: 1.1rem; margin: 0 auto 30px; max-width: 46ch; }
.cta-box .hero-cta { justify-content: center; }
.cta-box img.mark { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 22px; box-shadow: 0 14px 34px -12px rgba(52,200,89,0.6); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 46px 0 60px;
  margin-top: 20px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 14px; }
.footer p.tag { color: var(--faint); font-size: 0.9rem; max-width: 34ch; margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 5px 0; transition: color 0.16s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.86rem; }
.footer-bottom.bare { margin: 0; padding: 0; border: 0; }
.langs { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Content pages (privacy / support) ---------- */
.page-head { padding: 72px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 700; }
.page-head p { color: var(--muted); margin: 0; }
.doc { max-width: 760px; margin: 0 auto; padding: 20px 0 80px; }
.doc h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 44px 0 14px; font-weight: 650; }
.doc h3 { font-size: 1.1rem; margin: 28px 0 10px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { color: var(--faint); font-size: 0.92rem; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; color: var(--text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
  transition: border-color 0.18s ease;
}
details.faq-item[open] { border-color: var(--border-strong); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.04rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev { transition: transform 0.2s ease; color: var(--accent); flex: none; }
details.faq-item[open] summary .chev { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 0 18px; color: var(--muted); }
details.faq-item .faq-body p { margin: 0 0 10px; }

/* Contact form */
.contact {
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.02em; }
.contact p.sub { color: var(--muted); margin: 0 0 22px; font-size: 0.96rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.16s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.contact .btn-primary { width: 100%; justify-content: center; }
.contact .alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 44px; text-align: center; padding-top: 64px; }
  .hero p.lead { max-width: none; }
  .hero-cta { justify-content: center; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell:nth-child(1), .cell:nth-child(2) { grid-column: span 1; }
  .cell:nth-child(6) { grid-column: span 2; }
  .cell.wide { flex-direction: column; align-items: flex-start; gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .privacy-visual { max-width: 360px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links .link { display: none; }
  /* Showcase becomes a horizontal scroll strip */
  .device-strip {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
  }
  .device-strip .device-card { flex: 0 0 66%; max-width: 250px; scroll-snap-align: center; }
  .device-strip .device-card:nth-child(even) { transform: none; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(1), .cell:nth-child(2), .cell:nth-child(6) { grid-column: span 1; }
  .section-pad { padding: 58px 0 66px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}

/* Scroll-reveal — only animates when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
  .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.35s; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
