/* ===== Color Flood — marketing site ===== */
:root {
  --blue:   #1e88e5;
  --yellow: #facc28;
  --red:    #e53935;
  --green:  #43a047;
  --purple: #8e3fce;

  --bg:        #0e1020;
  --bg-soft:   #161a30;
  --card:      #1c2140;
  --card-2:    #232a52;
  --line:      rgba(255, 255, 255, 0.09);
  --text:      #eef1ff;
  --muted:     #a7adcb;
  --grad:      linear-gradient(135deg, #1e88e5 0%, #5b51d8 50%, #8e3fce 100%);
  --radius:    18px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --max:       1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, 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 { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--grad); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -8px rgba(94, 81, 216, .7); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(30,136,229,.28), transparent 60%),
    radial-gradient(50% 50% at 90% 30%, rgba(142,63,206,.28), transparent 60%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.2rem; margin: 22px 0 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 38px; }
.hero-meta div { font-size: 0.9rem; color: var(--muted); }
.hero-meta strong { display: block; font-size: 1.5rem; color: var(--text); font-weight: 800; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .phone-wrap { margin: 0 auto; }
}

/* ===== Phone mockup ===== */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 300px; background: #05060f; border-radius: 44px; padding: 14px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,.06) inset;
  position: relative; transform: rotateY(-12deg) rotateX(4deg);
  transition: transform .5s ease;
}
.phone:hover { transform: rotateY(0deg) rotateX(0deg); }
.phone::before { /* notch */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #05060f; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  background: linear-gradient(180deg, #12152b, #0c0e1d);
  border-radius: 32px; overflow: hidden; aspect-ratio: 9 / 19.5;
  display: flex; flex-direction: column; padding: 40px 18px 18px;
}
.screen-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.screen-title { font-weight: 800; font-size: 1rem; }
.screen-moves { font-size: 0.82rem; color: var(--muted); background: rgba(255,255,255,.06); padding: 5px 12px; border-radius: 999px; }
.screen-moves b { color: var(--text); }

/* board */
.board { display: grid; gap: 4px; flex: 1; align-content: center; }
.cell { width: 100%; aspect-ratio: 1; border-radius: 6px; transition: background-color .35s ease; }

/* palette */
.palette { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.swatch {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; border: 2px solid rgba(255,255,255,.12);
  transition: transform .12s;
}
.swatch:hover { transform: scale(1.08); }
.swatch:active { transform: scale(.92); }

.win-banner {
  margin-top: 14px; text-align: center; font-weight: 800; font-size: .95rem;
  color: var(--green); opacity: 0; transition: opacity .3s; height: 20px;
}
.win-banner.show { opacity: 1; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.feature .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ===== How to play ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  background: var(--grad); color: #fff;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ===== Difficulty table ===== */
.diff-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.diff-table th, .diff-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.diff-table thead th { background: var(--card-2); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.diff-table tbody tr:last-child td { border-bottom: none; }
.diff-table td:first-child { font-weight: 700; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

/* ===== Achievements ===== */
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .ach-grid { grid-template-columns: 1fr 1fr; } }
.ach { text-align: center; }
.ach img { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 20px; box-shadow: var(--shadow); }
.ach span { display: block; font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ===== Download CTA ===== */
.cta {
  background: var(--grad); border-radius: 28px; padding: 64px 40px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; letter-spacing: -0.02em; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 14px auto 30px; max-width: 460px; }
.stores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; transition: transform .15s, opacity .2s;
  border: 1px solid rgba(255,255,255,.15);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 0.68rem; opacity: .75; font-weight: 500; }
.store-badge span { font-size: 1.05rem; line-height: 1.1; }
.coming-soon { margin-top: 18px; font-size: 0.85rem; color: rgba(255,255,255,.8); }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 18px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--bg-soft); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 10px; opacity: .82; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ===== Legal pages ===== */
.legal { max-width: 800px; margin: 0 auto; padding: 60px 0 80px; }
.legal h1 { font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #cdd2ee; }
.legal a { color: var(--blue); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; margin-bottom: 30px; }
