/* ============ VocabKuizu — sibling of the Spaikz house style ============ */
/* Same bones as spaikz.com (fonts, grid/glow background, kicker pills, cards,
   reveal-on-scroll, dark-default with a light toggle). Different palette: the
   app's own green and amber, which are also what the game uses for
   "known" and "skip". */
:root {
  --bg: #0b0f1a;
  --bg-soft: #0f1424;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-brd: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #97a2bd;
  --brand: #4ade80;          /* "known" green, straight from the app */
  --brand-2: #22e3c3;
  --accent: #fbbf24;         /* "skip" amber */
  --on-brand: #06240f;
  --grad-text: linear-gradient(115deg, #4ade80 0%, #22e3c3 50%, #fbbf24 100%);
  --glow-opacity: 1;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-soft: #eef2f8;
  --panel: rgba(16, 27, 51, 0.035);
  --panel-brd: rgba(16, 27, 51, 0.12);
  --text: #0f1626;
  --muted: #4f5a72;
  --brand: #0f7a3d;
  --brand-2: #0a705f;
  --accent: #8a6100;
  --grad-text: linear-gradient(115deg, #0f7a3d 0%, #0a705f 50%, #8a6100 100%);
  --glow-opacity: 0.45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand-name { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(74,222,128,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -20%; left: 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(74,222,128,.20), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(251,191,36,.12), transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(34,227,195,.18), transparent 60%);
  filter: blur(30px);
  opacity: var(--glow-opacity);
  animation: float 16s var(--ease) infinite alternate;
}
@keyframes float {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-45%) translateY(40px) scale(1.08); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-brd);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-mark-sm { width: 24px; height: 24px; border-radius: 6px; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .94rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--panel-brd); background: var(--panel);
  padding: 8px 14px; border-radius: 999px;
}
.theme-toggle, .nav-toggle {
  background: var(--panel); border: 1px solid var(--panel-brd); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="light"] .icon-moon, :root:not([data-theme="light"]) .icon-sun { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; transition: transform .2s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-ghost { border: 1px solid var(--panel-brd); background: var(--panel); color: var(--text); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 20px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.03; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 1.13rem; max-width: 30rem; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: .88rem; margin: 18px 0 0; }

/* phone mock */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.phone {
  width: 300px; height: 180px; border-radius: 26px;
  background: #0b0e14; border: 1px solid var(--panel-brd);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  display: grid; place-items: center; padding: 8px;
  animation: tilt 5s var(--ease) infinite;
}
.phone-screen { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 20px; }
.phone-word {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 2.1rem; color: #f2f5f9; letter-spacing: -.02em;
}
@keyframes tilt {
  0%, 45%   { transform: rotateX(0deg) scale(1); }
  60%       { transform: rotateX(38deg) scale(.96); }
  75%, 100% { transform: rotateX(0deg) scale(1); }
}
.tilt-hint {
  position: absolute; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}
.tilt-up { top: 46px; color: var(--accent); }
.tilt-down { bottom: 46px; color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .bg-glow { animation: none; }
}

/* ---------- strip ---------- */
.strip {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  border-top: 1px solid var(--panel-brd);
}
.strip p { color: var(--muted); font-size: .9rem; margin: 0; }
.strip-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.strip-tags span {
  font-size: .8rem; color: var(--muted);
  border: 1px solid var(--panel-brd); background: var(--panel);
  padding: 4px 11px; border-radius: 999px;
}

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
/* Full-bleed background, normal content column. Using an inner wrapper rather
   than max-width on the children: .section-head has its own 660px cap, which
   would combine with auto margins and centre that one block. */
.section-alt { background: var(--bg-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
.section-head { max-width: 660px; margin-bottom: 46px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  padding: 6px 12px; border: 1px solid var(--panel-brd); border-radius: 999px;
  background: var(--panel); margin-bottom: 18px;
}
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0 0 14px; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--panel-brd);
  font-size: 1rem; margin-bottom: 16px; color: var(--muted);
}
.card-icon-green { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.card-icon-amber { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 1rem; }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--brand); font-weight: 700;
}
.paste-demo {
  background: #0b0e14; border: 1px solid var(--panel-brd); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
.paste-head { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.paste-head span { width: 10px; height: 10px; border-radius: 50%; background: #2a3242; }
.paste-demo pre {
  margin: 0; padding: 20px 18px; color: #c2cbd9;
  font-family: ui-monospace, Menlo, monospace; font-size: .84rem; line-height: 1.85;
  white-space: pre-wrap;
}
.paste-result {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.06);
  color: #4ade80; font-size: .84rem; font-weight: 600;
}
.paste-result em { color: #8b95a7; font-style: normal; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: 22px; padding: 52px 40px; text-align: center;
}
.contact-card p { color: var(--muted); max-width: 34rem; margin: 0 auto 26px; }
.contact-alt { font-size: .9rem; margin-top: 22px !important; }
.contact-alt a { color: var(--brand); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--panel-brd); margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-tag { color: var(--muted); font-size: .92rem; margin: 0; margin-right: auto; }
.footer-tag a { color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.copyright {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 34px;
  color: var(--muted); font-size: .84rem;
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { min-height: 300px; order: -1; }
  .cards, .cards-2, .split { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--panel-brd); padding: 8px 24px 18px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
}
