/* ============================================================
   KineticDots — marketing site
   Deliberate single dark aesthetic (mirrors the app's concept:
   steady dots on a calm dark screen).
   ============================================================ */

:root {
  --bg:        #0B1120;
  --bg-2:      #0E1626;
  --surface:   #131C2E;
  --surface-2: #17223A;
  --line:      rgba(148, 163, 184, 0.16);
  --text:      #E8EDF5;
  --muted:     #9AA7BD;
  --faint:     #6B7A93;
  --accent:    #5EEAD4;  /* calm teal */
  --accent-2:  #38BDF8;  /* sky */
  --accent-ink:#052E2B;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Background canvas */
#dotfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(94,234,212,.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px;
}
.section-alt { background: linear-gradient(180deg, rgba(19,28,46,.55), rgba(19,28,46,.15)); border-block: 1px solid var(--line); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2) 70%);
  box-shadow: 0 0 0 4px rgba(94,234,212,.14), 0 0 22px rgba(94,234,212,.5);
}
.brand-accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.site-nav a { color: var(--muted); transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.platform-note { margin-top: 18px; color: var(--faint); font-size: .86rem; }

/* Store button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 13px 22px 13px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(94,234,212,.6);
}
.btn-store:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 40px -14px rgba(94,234,212,.7); }
.btn-store .play-glyph { width: 26px; height: 26px; fill: var(--accent-ink); flex: none; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store small { font-size: .68rem; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.btn-store strong { font-size: 1.06rem; font-weight: 700; }
.btn-store.small { padding: 11px 18px; }
.btn-store.small strong { font-size: .98rem; }
.btn-store.large { padding: 16px 30px 16px 24px; }
.btn-store.large .play-glyph { width: 30px; height: 30px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.btn-ghost:hover { border-color: rgba(148,163,184,.4); background: rgba(148,163,184,.06); }

/* Phone mock */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(268px, 74vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1c2740, #0c1322);
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.phone-speaker {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 6px; border-radius: 999px; background: rgba(148,163,184,.28);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 50% 0%, #10192b, #0a0f1c 70%);
  overflow: hidden;
}
.anchor-dot {
  position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d7fff7, var(--accent) 60%);
  box-shadow: 0 0 16px rgba(94,234,212,.65);
  transform: translate(-50%, -50%);
}
.anchor-dot.d1 { top: 26%; left: 30%; }
.anchor-dot.d2 { top: 26%; left: 70%; }
.anchor-dot.d3 { top: 50%; left: 50%; width: 20px; height: 20px; }
.anchor-dot.d4 { top: 74%; left: 30%; }
.anchor-dot.d5 { top: 74%; left: 70%; }
.phone-caption {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; font-size: .72rem; color: var(--faint);
  letter-spacing: .02em;
}

/* Gentle breathing on anchor dots (disabled for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .anchor-dot { animation: breathe 4.5s var(--ease) infinite; }
  .anchor-dot.d2 { animation-delay: .6s; }
  .anchor-dot.d3 { animation-delay: 1.2s; }
  .anchor-dot.d4 { animation-delay: 1.8s; }
  .anchor-dot.d5 { animation-delay: 2.4s; }
  @keyframes breathe {
    0%, 100% { opacity: .82; box-shadow: 0 0 14px rgba(94,234,212,.45); }
    50%      { opacity: 1;   box-shadow: 0 0 22px rgba(94,234,212,.8); }
  }
}

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.strip-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(19,28,46,.5);
  display: flex; flex-direction: column; gap: 4px;
}
.strip-item span { font-weight: 700; font-size: 1rem; }
.strip-item small { color: var(--muted); font-size: .84rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(19,28,46,.35));
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: rgba(94,234,212,.3); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; color: var(--accent-ink);
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2) 90%);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin-inline: auto; }
.plan {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.plan-featured {
  border-color: rgba(94,234,212,.45);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 70px -40px rgba(94,234,212,.5);
}
.plan-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
}
.plan-head { margin-bottom: 22px; }
.plan-head h3 { font-size: 1.3rem; margin-bottom: 8px; }
.plan-price { font-size: 2rem; font-weight: 800; }
.plan-price span { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 28px; color: var(--muted); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2) 80%);
  box-shadow: 0 0 10px rgba(94,234,212,.5);
}
.plan .btn-store { margin-top: auto; align-self: flex-start; }
.plans-note { text-align: center; color: var(--faint); font-size: .86rem; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(19,28,46,.5);
  padding: 4px 20px;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: rgba(94,234,212,.3); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: .96rem; }

/* ---------- Download CTA ---------- */
.download { padding: clamp(56px, 8vw, 100px) 24px; }
.download-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 60px);
  border: 1px solid rgba(94,234,212,.28);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(56,189,248,.14), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.download-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
.download-inner p { color: var(--muted); margin: 16px 0 30px; font-size: 1.08rem; }
.download-inner .btn-store { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  border-top: 1px solid var(--line);
}
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: start; }
.footer-brand .brand-name { font-weight: 800; font-size: 1.1rem; }
.footer-brand p { color: var(--muted); margin-top: 8px; font-size: .92rem; max-width: 32ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.footer-nav a { color: var(--muted); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.disclaimer { color: var(--faint); font-size: .8rem; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 70ch; }
.copyright { color: var(--faint); font-size: .82rem; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .strip { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
