/* Funixa — marketing site (Arcade Lumina theme). HTML + CSS only. */

:root {
  /* Deep indigo foundations */
  --void: #100c39;
  --void-deep: #0b0634;
  --surface: #191541;
  --surface-card: #1d1945;
  --surface-elevated: #282450;

  /* Brand spectrum */
  --cyan: #20d9ff;
  --blue: #4b7bff;
  --purple: #8d5bff;
  --pink: #ff4fb8;
  --orange: #ff8a3d;
  --green: #58e38c;
  --yellow: #ffd84a;

  /* Text */
  --text: #ffffff;
  --text-secondary: #c3c5d7;
  --text-muted: #8d90a0;
  --border: #3d3396;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --maxw: 1080px;
  --gutter: 20px;

  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --grad-spectrum: linear-gradient(120deg, #ff4fb8, #8d5bff, #20d9ff);
  --grad-play: linear-gradient(120deg, #ff4fb8, #ff7844, #ffb13b);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(141, 91, 255, 0.28), transparent 60%),
    radial-gradient(1000px 600px at 0% 10%, rgba(32, 217, 255, 0.18), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 79, 184, 0.16), transparent 60%),
    var(--void);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 6, 52, 0.55);
  border-bottom: 1px solid rgba(61, 51, 150, 0.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-spectrum);
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(141, 91, 255, 0.55);
  font-size: 22px;
}
.brand .name {
  font-size: 22px; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #b9d4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--grad-spectrum); color: #fff !important; font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 79, 184, 0.28);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
  padding: 7px 14px; border: 1px solid rgba(32, 217, 255, 0.35); border-radius: var(--radius-pill);
  background: rgba(32, 217, 255, 0.08);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad-spectrum);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--text-secondary); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius-pill); border: none; cursor: pointer;
}
.btn-primary { background: var(--grad-play); color: #4a0a2e; box-shadow: 0 12px 30px rgba(255, 120, 68, 0.35); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); }
.btn-ghost:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.store-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }

/* Phone mock with draw balls */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 290px; padding: 22px 18px; border-radius: 40px;
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-card));
  border: 1px solid rgba(61, 51, 150, 0.8);
  box-shadow: 0 30px 80px rgba(8, 5, 26, 0.65), 0 0 60px rgba(141, 91, 255, 0.25);
}
.phone-card {
  background: rgba(11, 6, 52, 0.5); border: 1px solid rgba(61, 51, 150, 0.6);
  border-radius: var(--radius); padding: 18px 16px;
}
.phone-title { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 0.5px; }
.phone-seed { font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.balls { display: flex; gap: 10px; margin: 18px 0; }
.ball {
  flex: 1; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #0b0634;
  position: relative; overflow: hidden;
}
.ball::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46%;
  background: rgba(255, 255, 255, 0.28); border-radius: 50% 50% 40% 40%;
}
.ball span { position: relative; z-index: 1; }
.ball.c { background: var(--cyan); box-shadow: 0 0 16px rgba(32, 217, 255, 0.6); }
.ball.p { background: var(--purple); color: #fff; box-shadow: 0 0 16px rgba(141, 91, 255, 0.6); }
.ball.o { background: var(--orange); box-shadow: 0 0 16px rgba(255, 138, 61, 0.6); }
.ball.g { background: var(--green); box-shadow: 0 0 16px rgba(88, 227, 140, 0.6); }
.phone-buttons { display: flex; gap: 10px; }
.pill-btn { flex: 1; text-align: center; padding: 12px 0; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.pill-btn.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.pill-btn.grad { background: var(--grad-spectrum); color: #fff; }

/* ---------- Section shells ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-head p { color: var(--text-secondary); font-size: 17px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, rgba(40, 36, 80, 0.55), rgba(29, 25, 69, 0.55));
  border: 1px solid rgba(61, 51, 150, 0.55); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(141, 91, 255, 0.6); }
.card .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
}
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 15px; }
.i-cyan { background: rgba(32, 217, 255, 0.15); box-shadow: 0 0 20px rgba(32, 217, 255, 0.2); }
.i-pink { background: rgba(255, 79, 184, 0.15); box-shadow: 0 0 20px rgba(255, 79, 184, 0.2); }
.i-purple { background: rgba(141, 91, 255, 0.15); box-shadow: 0 0 20px rgba(141, 91, 255, 0.2); }
.i-orange { background: rgba(255, 138, 61, 0.15); box-shadow: 0 0 20px rgba(255, 138, 61, 0.2); }
.i-green { background: rgba(88, 227, 140, 0.15); box-shadow: 0 0 20px rgba(88, 227, 140, 0.2); }
.i-yellow { background: rgba(255, 216, 74, 0.15); box-shadow: 0 0 20px rgba(255, 216, 74, 0.2); }

/* Skills */
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.skill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mode {
  border-radius: var(--radius); padding: 26px 24px; color: #12093a;
  position: relative; overflow: hidden;
}
.mode h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin-bottom: 6px; }
.mode p { font-weight: 600; opacity: 0.85; font-size: 15px; }
.mode.quick { background: linear-gradient(120deg, #8d5bff, #4b7bff); color: #fff; }
.mode.daily { background: var(--grad-play); }
.mode.endless { background: linear-gradient(120deg, #4be6ff, #00d0f5); }
.mode.drill { background: linear-gradient(120deg, #6f8cff, #4b7bff); color: #fff; }

/* CTA band */
.cta-band {
  text-align: center; padding: 56px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 79, 184, 0.16), rgba(141, 91, 255, 0.16), rgba(32, 217, 255, 0.16));
  border: 1px solid rgba(141, 91, 255, 0.4);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(61, 51, 150, 0.5); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { color: var(--text-muted); font-size: 14px; }

/* ---------- Legal / privacy page ---------- */
.legal { padding: 56px 0 20px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1px; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal-card {
  background: linear-gradient(180deg, rgba(40, 36, 80, 0.5), rgba(29, 25, 69, 0.5));
  border: 1px solid rgba(61, 51, 150, 0.55); border-radius: var(--radius);
  padding: 36px 34px;
}
.legal h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  margin: 34px 0 12px; padding-top: 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 20px 0 8px; color: #dfe3ff; }
.legal p { color: var(--text-secondary); margin-bottom: 14px; }
.legal ul { color: var(--text-secondary); margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: #fff; }
.legal .intro { font-size: 17px; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(61, 51, 150, 0.5); vertical-align: top; }
.legal th { color: #fff; font-weight: 700; background: rgba(141, 91, 255, 0.1); }
.legal td { color: var(--text-secondary); }
.callout {
  background: rgba(32, 217, 255, 0.08); border: 1px solid rgba(32, 217, 255, 0.3);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 40px; }
  .legal-card { padding: 26px 20px; }
  .footer-grid { flex-direction: column; text-align: center; }
}
