:root {
  --boxy-fallback: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --accent: #6C4DF6;
  --accent-dark: #5B3DE0;
  --accent-soft: #F4F2FE;
  --ink: #1C1E26;
  --secondary: #5B6170;
  --muted: #9AA0AD;
  --border: #E7E9EF;
  --canvas: #FBFAFF;
  --green: #0A8F5C;
  --amber: #B5710A;
  --red: #D94A4A;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 82% -10%, #EFEBFF 0%, rgba(239,235,255,0) 58%),
    radial-gradient(900px 620px at 6% 108%, #EAF0FF 0%, rgba(234,240,255,0) 55%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

/* ── Nav ─────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(108,77,246,.5);
}
.logo .name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1; position: relative; top: 1px; }
.logo .name span { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border-radius: 6px; padding: 12px 20px; border: none; transition: .14s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(108,77,246,.5); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: #fff; border-color: #d6d9e2; }

/* ── Hero ────────────────────────────────────────────── */
.hero { text-align: center; padding: 56px 0 30px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px;
}

/* Animated wordmark: Size + [box reel] + p */
.brand {
  font-family: 'Bungee', var(--boxy-fallback);
  font-size: clamp(54px, 11vw, 124px); letter-spacing: -.01em;
  text-transform: uppercase; line-height: .9;
  display: inline-flex; align-items: center; justify-content: center;
}
.ubox {
  display: inline-flex; align-items: center; justify-content: center;
  border: .1em solid var(--green); color: var(--green);
  border-radius: .14em; margin: 0 .02em;
  vertical-align: -.06em;
  animation: fit 5.2s infinite;
}
.uwin { width: 1.3em; height: 1.42em; overflow: hidden; font-size: .5em; }
.ureel {
  display: flex; flex-direction: column;
  animation: reel 5.2s infinite cubic-bezier(.7,0,.2,1);
}
.ureel span {
  height: 1.42em; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: currentColor;
}

@keyframes reel {
  0%, 18%   { transform: translateY(0); }        /* S */
  25%, 43%  { transform: translateY(-1.42em); }  /* M */
  50%, 68%  { transform: translateY(-2.84em); }  /* L */
  75%, 100% { transform: translateY(-4.26em); }  /* S (loop seam) */
}
@keyframes fit {
  0%, 18%   { color: var(--green); border-radius: .14em; }  /* S — fits */
  25%, 43%  { color: var(--amber); border-radius: .32em; }  /* M — may fit */
  50%, 68%  { color: var(--red);   border-radius: .46em; }  /* L — snug */
  75%, 100% { color: var(--green); border-radius: .14em; }  /* back to S */
}
@media (prefers-reduced-motion: reduce) {
  .ureel { animation: none; }
  .ubox  { animation: none; color: var(--accent); }
}

.headline { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-top: 34px; }
.headline .accent { color: var(--accent); }
.sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--secondary); font-weight: 500;
  max-width: 620px; margin: 16px auto 0;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* supported platforms */
.works { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.works-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px;
  font-size: 15px; font-weight: 700; box-shadow: 0 5px 14px -8px rgba(28,28,55,.2);
}
.dot { width: 9px; height: 9px; border-radius: 999px; }

/* ── Features ────────────────────────────────────────── */
.features { padding: 64px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px;
  box-shadow: 0 2px 8px -3px rgba(28,28,55,.06);
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 800; }
.card p { font-size: 14.5px; color: var(--secondary); margin-top: 7px; }

/* ── Privacy strip ───────────────────────────────────── */
.privacy-strip {
  margin: 56px 0 0; background: var(--accent-soft); border: 1px solid #E7E1FC;
  border-radius: 20px; padding: 30px 28px; display: flex; align-items: center; gap: 16px;
}
.privacy-strip .ic { flex-shrink: 0; }
.privacy-strip h3 { font-size: 18px; font-weight: 800; }
.privacy-strip p { font-size: 14.5px; color: #4B3FA0; margin-top: 4px; }
.privacy-strip a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────── */
footer { padding: 40px 0 48px; margin-top: 40px; border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-row .muted { color: var(--muted); font-size: 13.5px; }
.foot-row .muted a { color: var(--accent); font-weight: 700; }
.foot-row .muted a:hover { text-decoration: underline; }
.foot-links { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }

/* ── Policy page ─────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 28px 80px; }
.doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 6px; }
.doc h2 { font-size: 19px; font-weight: 800; margin-top: 34px; }
.doc p, .doc li { font-size: 15.5px; color: var(--secondary); margin-top: 10px; }
.doc ul { margin-top: 10px; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent); text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); margin-bottom: 22px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .privacy-strip { flex-direction: column; text-align: center; }
  nav .btn { display: none; }
}
