/* WaveWarp — app.wavewarp.nl (mobile app explainer). Dark-first, theme-aware, self-contained. */

:root {
  --bg: #f6f8fc;
  --bg2: #eef1f8;
  --surface: #ffffff;
  --surface2: #f0f3fa;
  --border: #d8deeb;
  --text: #10151f;
  --muted: #55607a;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --amber: #e08a1e;
  --violet: #7c5cff;
  --good: #17a06a;
  --shadow: 0 10px 40px rgba(20, 30, 60, 0.10);
  --radius: 16px;
  --maxw: 1120px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* phone screen palette mirrors the app's dark UI regardless of page theme */
  --pbg: #0e1420;
  --pbg2: #141c2c;
  --pborder: #263349;
  --ptext: #e7ecf7;
  --pmuted: #93a1bd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d14;
    --bg2: #0d111b;
    --surface: #121826;
    --surface2: #171e2e;
    --border: #253049;
    --text: #e7ecf7;
    --muted: #99a6c0;
    --accent: #5b9bff;
    --accent-soft: rgba(91, 155, 255, 0.14);
    --amber: #f0a53c;
    --violet: #9a7cff;
    --good: #37c98a;
    --shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background:
    radial-gradient(1100px 560px at 15% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(var(--bg), var(--bg2));
  background-attachment: fixed; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a.link:hover { color: var(--text); text-decoration: none; }
.nav .cta { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.nav .cta:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* hero */
.hero { padding: 76px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.06; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
@media (max-width: 860px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.btnrow { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .btnrow { justify-content: center; } }
.btn { padding: 13px 24px; border-radius: 999px; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.hero-visual { display: flex; justify-content: center; }

section { padding: 60px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 10px 0 12px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- phone mockup ---- */
.phone {
  width: 288px; max-width: 78vw; aspect-ratio: 9 / 19.5; flex: none;
  background: #05070c; border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px #1c2534; position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #05070c; border-radius: 0 0 14px 14px; z-index: 3; }
.screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(var(--pbg), var(--pbg2)); color: var(--ptext);
  display: flex; flex-direction: column; font-size: 13px;
}
.screen .topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 34px 16px 12px; font-weight: 600; }
.screen .topbar .ver { color: var(--pmuted); font-weight: 500; font-size: 11px; }
.screen .body { padding: 8px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.screen h4 { margin: 4px 0 2px; font-size: 15px; }
.screen .sub { color: var(--pmuted); font-size: 11.5px; margin: 0; }
.fld { background: #0a0f18; border: 1px solid var(--pborder); border-radius: 10px; padding: 9px 11px; color: var(--pmuted); font-size: 12px; }
.fld.val { color: var(--ptext); }
.pbtn { background: var(--accent); color: #fff; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 12.5px; }
.pbtn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--pborder); }
.brow { display: flex; align-items: center; gap: 10px; background: #0a0f18; border: 1px solid var(--pborder);
  border-radius: 10px; padding: 10px 11px; }
.brow .ico { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none; }
.brow .ico svg { width: 15px; height: 15px; }
.brow .t { font-size: 12.5px; }
.brow .t small { display: block; color: var(--pmuted); font-size: 10.5px; }
.chip { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.meter { height: 8px; border-radius: 6px; background: #0a0f18; border: 1px solid var(--pborder); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--amber) 80%, #e5484d); }
.mlabel { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--pmuted); margin-bottom: 3px; }
.playbtn { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; margin: 6px auto; }
.playbtn svg { width: 26px; height: 26px; }
.seg { display: flex; background: #0a0f18; border: 1px solid var(--pborder); border-radius: 10px; padding: 3px; gap: 3px; }
.seg span { flex: 1; text-align: center; font-size: 11px; padding: 6px; border-radius: 7px; color: var(--pmuted); }
.seg span.on { background: var(--accent); color: #fff; }

.phones { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; justify-content: center; align-items: start; }
@media (max-width: 820px) { .phones { grid-template-columns: 1fr; gap: 56px; } }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.phone-wrap .cap { max-width: 300px; }
.phone-wrap .cap h3 { margin: 0 0 6px; font-size: 1.2rem; }
.phone-wrap .cap p { margin: 0; color: var(--muted); font-size: .96rem; }

/* how it works flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); } }
.flow .step { padding: 24px; text-align: center; }
.flow .step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin: 0 auto 12px; }
.flow .step h3 { margin: 0 0 8px; font-size: 1.12rem; }
.flow .step p { margin: 0; color: var(--muted); font-size: .95rem; }
.flow .arrow { color: var(--muted); display: grid; place-items: center; }
.flow .arrow svg { width: 26px; height: 26px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.board-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .board-strip { grid-template-columns: 1fr; } }
.figure { overflow: hidden; }
.figure figcaption { padding: 14px 18px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--border); }
.figure figcaption b { color: var(--text); }

footer { border-top: 1px solid var(--border); padding: 40px 0 60px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.legal { font-size: .84rem; opacity: .8; width: 100%; margin-top: 8px; }

.note { max-width: 720px; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: .9rem;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 12px 18px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
