/* ===========================================================
   TrickMe — Landing page styles
   Palette mirrors the iOS DesignSystem (cinematic midnight purple-blue)
   =========================================================== */

:root {
  /* Backgrounds */
  --bg: #080614;
  --surface: #120a2a;
  --surface-elev: #1a1340;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(139, 127, 255, 0.12);
  --border-glass: rgba(200, 191, 224, 0.14);

  /* Text */
  --text: #fff4e8;
  --text-2: #c8bfe0;
  --text-3: #7a6f95;

  /* Core */
  --deep-indigo: #1a1144;
  --royal: #6b3fa0;
  --periwinkle: #8b7fff;
  --electric: #4d7fff;
  --iridescent: #b8a8ff;

  /* Pops */
  --coral: #ff7a6b;
  --mint: #7fe3b8;
  --gold: #f4c95d;

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #6b3fa0 0%, #8b7fff 50%, #4d7fff 100%);
  --grad-hero: linear-gradient(135deg, #1a1144 0%, rgba(107, 63, 160, 0.55) 55%, #120a2a 100%);
  --grad-warm: linear-gradient(135deg, #ff7a6b 0%, #ff5e8a 45%, #6b3fa0 100%);

  --maxw: 1140px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- Ambient background ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(107, 63, 160, 0.35), transparent 60%),
    radial-gradient(900px 700px at 0% 10%, rgba(77, 127, 255, 0.18), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s var(--ease) infinite;
}
.orb-1 { width: 460px; height: 460px; background: #6b3fa0; top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: #4d7fff; bottom: 5%; left: -120px; animation-delay: -6s; }
.orb-3 { width: 320px; height: 320px; background: #8b7fff; top: 45%; right: 20%; animation-delay: -12s; opacity: 0.3; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--periwinkle);
  background: rgba(139, 127, 255, 0.1);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
h1, h2, h3, h4 { line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(107, 63, 160, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(139, 127, 255, 0.8); }
.btn-ghost {
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 6, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-elev);
  border: 1px solid var(--border-glass);
}
.brand-name { font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-name span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(8, 6, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 700; color: var(--text-2); }
.mobile-menu a.btn { color: #fff; margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 36px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  list-style: none;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 900; }
.hero-stats span { font-size: 0.85rem; color: var(--text-3); }

/* ---------- Phone mockup ---------- */
.hero-visual { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(160deg, #241a52, #100a26);
  border: 1px solid var(--border-glass);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(20, 12, 40, 0.6);
  animation: phoneFloat 6s var(--ease) infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0a0618;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  background: var(--grad-hero);
  overflow: hidden;
  padding: 56px 18px 18px;
}
.game-card {
  background: rgba(26, 19, 64, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.gc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-warm);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.25);
}
.gc-meta { display: flex; flex-direction: column; }
.gc-name { font-weight: 800; }
.gc-tag { font-size: 0.78rem; color: var(--periwinkle); font-weight: 700; }
.statements { display: flex; flex-direction: column; gap: 10px; }
.statement {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px;
  cursor: default;
  transition: all 0.3s var(--ease);
}
.statement i {
  font-style: normal;
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--text-3);
}
.statement.is-pick {
  color: #fff;
  border-color: var(--periwinkle);
  background: rgba(139, 127, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(139, 127, 255, 0.4), 0 8px 24px -8px rgba(139, 127, 255, 0.5);
}
.gc-foot { margin-top: 16px; }
.hint { font-size: 0.78rem; color: var(--text-3); font-weight: 700; }

.float-pill {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 6, 20, 0.75);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  animation: pillFloat 4s var(--ease) infinite;
}
.pill-a { top: 110px; right: -14px; }
.pill-b { bottom: 90px; left: -18px; animation-delay: -2s; }
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}
.strip > p {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-3);
  margin-bottom: 18px;
}
.strip-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
  color: var(--text-2);
}
.strip-items .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--periwinkle); opacity: 0.6; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18, 10, 42, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--periwinkle); }
.step-num {
  font-size: 0.9rem;
  font-weight: 900;
  color: transparent;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: 0 24px 50px -28px rgba(107, 63, 160, 0.7);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  font-size: 1.6rem;
  border-radius: 16px;
  background: rgba(139, 127, 255, 0.12);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.why-copy p { color: var(--text-2); font-size: 1.08rem; margin: 16px 0 24px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.why-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-2);
}
.why-list li b { color: var(--text); }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px -3px rgba(139, 127, 255, 0.7);
}
.why-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--border);
}
.compare-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.compare-col li { position: relative; padding-left: 22px; }
.compare-old { background: rgba(18, 10, 42, 0.5); }
.compare-old h4 { color: var(--text-3); }
.compare-old li { color: var(--text-3); }
.compare-old li::before { content: "✕"; position: absolute; left: 0; color: var(--coral); font-weight: 900; }
.compare-new {
  background: rgba(107, 63, 160, 0.18);
  border-color: var(--periwinkle);
  box-shadow: 0 20px 50px -24px rgba(107, 63, 160, 0.7);
}
.compare-new h4 { color: var(--periwinkle); }
.compare-new li { color: var(--text); font-weight: 700; }
.compare-new li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--periwinkle); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--periwinkle);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; }

/* ---------- CTA ---------- */
.cta {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 0 24px 100px;
}
.cta-inner {
  text-align: center;
  background: var(--grad-hero);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139, 127, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { position: relative; }
.cta-inner > p { color: var(--text-2); font-size: 1.1rem; margin: 14px 0 28px; position: relative; }
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}
.waitlist-form input {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(8, 6, 20, 0.6);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form input:focus { border-color: var(--periwinkle); }
.waitlist-form input.invalid { border-color: var(--coral); }
.cta-note { font-size: 0.85rem; color: var(--text-3); margin-top: 16px; position: relative; }
.cta-note.success { color: var(--mint); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
}
.footer-links { display: flex; gap: 24px; font-weight: 700; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.9rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text-2); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 20px; }
  .steps, .features-grid, .why-compare { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .phone { width: 260px; height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
