/* Quizia landing page (site/index.html). The legal pages use legal.css; the admin dashboard has its own style.css. */

:root {
  --bg: #0b1020;
  --bg-2: #10172b;
  --card: #141c33;
  --card-2: #18213b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5fa;
  --text-2: #b6bed2;
  --text-3: #7e88a3;
  --orange: #ff6c00;
  --orange-2: #ff8a33;
  --orange-glow: rgba(255, 108, 0, 0.45);
  --red: #e5484d;
  --blue: #3e7bff;
  --green: #22b573;
  --pink: #ff3d9a;
  --gold: #ffc53d;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(255, 108, 0, 0.35); }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 16, 32, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 21px/1 var(--display);
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 16px rgba(255, 108, 0, 0.35); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font: 700 16px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 22px -6px var(--orange-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn-primary:hover { background: #ff7a1a; box-shadow: 0 10px 30px -6px var(--orange-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 16px;
  background: #fff;
  color: #0b1020;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.2s;
}
.store:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7); }
.store:active { transform: scale(0.97); }
.store svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font: 600 21px/1.05 var(--font); letter-spacing: -0.01em; }
.store small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.75; margin-bottom: 2px; }
.store.soon { position: relative; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.g1 { width: 720px; height: 720px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255, 108, 0, 0.42), transparent 65%); }
.g2 { width: 620px; height: 620px; left: -240px; bottom: -260px; background: radial-gradient(circle, rgba(62, 123, 255, 0.28), transparent 65%); }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font: 600 13px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 181, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0); }
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.accent {
  background: linear-gradient(100deg, var(--orange) 10%, #ffb067 60%, var(--orange) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 24px 0 32px; max-width: 34em; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

/* Phones */
.phone {
  margin: 0;
  position: relative;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #2a3350, #0f1426 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; background: #f4f6fa; }

.hero-phones { position: relative; height: clamp(520px, 52vw, 640px); }
.hero-phones .phone { position: absolute; width: clamp(200px, 21vw, 270px); }
.p-main { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; animation: float 7s ease-in-out infinite; }
.p-left { left: -2%; top: 70px; transform: rotate(-9deg); z-index: 1; filter: brightness(0.82); }
.p-right { right: -2%; top: 70px; transform: rotate(9deg); z-index: 2; filter: brightness(0.82); }
.p-main::after {
  content: "";
  position: absolute;
  inset: auto 10% -40px;
  height: 60px;
  background: radial-gradient(ellipse, var(--orange-glow), transparent 70%);
  filter: blur(18px);
  z-index: -1;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-inner div { padding: 26px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.strip-inner div + div { border-left: 1px solid var(--line); }
.strip b { font: 700 clamp(26px, 3.4vw, 36px)/1 var(--display); color: var(--text); }
.strip span { color: var(--text-3); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker { margin: 0 0 12px; color: var(--orange-2); font: 700 13px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.005em; }
.sub { margin: 16px 0 0; color: var(--text-2); }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mode {
  --c: var(--orange);
  grid-column: span 2;
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s;
}
.mode:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.mode:nth-child(4), .mode:nth-child(5) { grid-column: span 3; }
.mode-ranked { --c: var(--blue); }
.mode-friendly { --c: var(--orange); }
.mode-backstab { --c: var(--red); }
.mode-ooo { --c: var(--pink); }
.mode-quizle { --c: var(--green); }
.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c);
}
.mode-icon svg, .feat-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { font-size: 26px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.mode p { margin: 0 0 20px; color: var(--text-2); font-size: 16px; }
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font: 600 13px/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.new {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 12px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Spotlights */
.spot { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.spot + .spot { margin-top: clamp(72px, 10vw, 120px); }
.spot-flip { grid-template-columns: 1.2fr 0.8fr; }
.spot-flip .spot-phone { order: 2; }
.spot-phone { width: min(320px, 100%); justify-self: center; }
.spot-copy h2 { margin-bottom: 18px; }
.spot-copy > p { color: var(--text-2); margin: 0 0 22px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; color: var(--text); font-weight: 500; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 181, 115, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b573' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Feature grid */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 108, 0, 0.14);
  color: var(--orange-2);
}
.feat h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: 0.01em; }
.feat p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Screens rail */
.rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.rail .phone { flex: 0 0 auto; width: clamp(220px, 24vw, 270px); scroll-snap-align: center; }
.rail figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -32px;
  text-align: center;
  color: var(--text-3);
  font: 600 13px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rail .phone { margin-bottom: 30px; }

/* Get */
.get-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 56px);
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 108, 0, 0.28), transparent 60%),
    var(--card);
  border: 1px solid rgba(255, 108, 0, 0.28);
  overflow: hidden;
}
.get-logo { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 16px 40px -10px var(--orange-glow); }
.get-card h2 { margin-bottom: 14px; }
.get-card p { color: var(--text-2); margin: 0 auto 30px; max-width: 30em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; }
.foot-brand p { margin: 10px 0 0; color: var(--text-3); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 6px; }
.foot-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* Scroll reveal (only when JS is running and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .modes .reveal:nth-child(2), .js-reveal .grid-6 .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.js-reveal .modes .reveal:nth-child(3), .js-reveal .grid-6 .reveal:nth-child(3n) { transition-delay: 0.16s; }
.js-reveal .modes .reveal:nth-child(5) { transition-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p-main, .live-dot { animation: none; }
  .mode, .feat, .btn, .store { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 112px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .chips { justify-content: center; }
  .hero-phones { height: clamp(440px, 96vw, 600px); max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: clamp(180px, 40vw, 260px); }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode, .mode:nth-child(4), .mode:nth-child(5) { grid-column: span 1; }
  .mode:nth-child(5) { grid-column: 1 / -1; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .spot, .spot-flip { grid-template-columns: 1fr; text-align: left; }
  .spot-flip .spot-phone { order: 0; }
  .spot-phone { width: min(280px, 72vw); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 100px 0 48px; }
  .hero-phones { height: 118vw; }
  .hero-phones .phone { width: 46vw; border-radius: 28px; padding: 6px; }
  .phone img { border-radius: 23px; }
  .p-left, .p-right { top: 13vw; }
  .p-left { left: -2%; }
  .p-right { right: -2%; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner div:nth-child(3) { border-left: 0; }
  .strip-inner div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .modes, .grid-6 { grid-template-columns: 1fr; }
  .mode:nth-child(5) { grid-column: auto; }
  .section-head { margin-bottom: 36px; }
  .rail { gap: 16px; }
  .rail .phone { width: 62vw; }
  .foot-inner { grid-template-columns: 1fr; }
  .store, .btn { height: 54px; }
}
