/* ===== Design tokens ===== */
:root {
  --bg:        #0a140c;
  --bg-2:      #0d1c11;
  --surface:   #10241628;
  --card:      #12241a;
  --card-brd:  #1e3a28;
  --green:     #22c55e;
  --green-2:   #16a34a;
  --green-dk:  #0f7a37;
  --text:      #eaf5ee;
  --muted:     #93a99c;
  --white:     #ffffff;
  --radius:    18px;
  --maxw:      1120px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.6);
  font-synthesis: none;
}

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

/* Ensure the [hidden] attribute always wins over display rules (demo game toggles) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,20,12,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--card-brd); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--white); background: linear-gradient(135deg, var(--green), var(--green-2));
  padding: 8px 18px; border-radius: 999px; font-weight: 700;
}
.nav .nav-cta:hover { color: var(--white); filter: brightness(1.08); }

.lang-toggle {
  cursor: pointer; background: var(--card); border: 1px solid var(--card-brd);
  color: var(--muted); border-radius: 999px; padding: 7px 12px; font-weight: 700;
  font-family: inherit; font-size: .82rem; transition: all .2s; letter-spacing: .5px;
}
.lang-toggle:hover { border-color: var(--green); color: var(--text); }
.lang-toggle .active { color: var(--green); }
.lang-sep { opacity: .4; margin: 0 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px;
  background: radial-gradient(1200px 600px at 75% -10%, rgba(34,197,94,.14), transparent 60%), var(--bg); }
.pitch-lines { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(34,197,94,.05) 1px, transparent 1px),
    linear-gradient(rgba(34,197,94,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 500px at 70% 0%, #000, transparent 75%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; }

.badge-pill { display: inline-block; background: var(--card); border: 1px solid var(--card-brd);
  color: var(--green); font-weight: 700; font-size: .82rem; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }

.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0c1a11; border: 1px solid var(--card-brd); color: var(--text);
  padding: 11px 20px; border-radius: 14px; transition: all .2s;
}
.store-btn:hover { border-color: var(--green); transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(34,197,94,.55); }
.store-btn svg { width: 26px; height: 26px; color: var(--white); flex-shrink: 0; }
.store-btn-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn-txt small { font-size: .68rem; color: var(--muted); }
.store-btn-txt strong { font-size: 1.05rem; font-weight: 700; }

.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 24px;
  color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-meta .dot { opacity: .4; }

/* Phone mockup */
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-mockup {
  position: relative; z-index: 2; width: min(420px, 92%); height: auto;
  border-radius: 26px; display: block;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04);
  animation: floaty 6s ease-in-out infinite;
}
.phone-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.32), transparent 65%);
  filter: blur(38px); z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 12px auto 48px; max-width: 560px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: linear-gradient(180deg, var(--card), #0e1e14);
  border: 1px solid var(--card-brd); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--green); }
.feat-ico { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .96rem; }

/* How to play */
.how { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 210px; max-width: 300px; text-align: center; padding: 10px; }
.step-num {
  width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-radius: 50%; box-shadow: 0 10px 24px -10px rgba(34,197,94,.7);
}
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.step-line { flex: 0 0 40px; height: 2px; margin-top: 46px;
  background: linear-gradient(90deg, var(--green), transparent); opacity: .5; }

/* Screenshots */
.screens { padding-bottom: 90px; }
.screens-track {
  display: flex; gap: 18px; overflow-x: auto; padding: 10px 22px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.screens-track::-webkit-scrollbar { height: 8px; }
.screens-track::-webkit-scrollbar-thumb { background: var(--card-brd); border-radius: 99px; }
.screens-track img {
  flex: 0 0 auto; width: 230px; border-radius: 22px; scroll-snap-align: center;
  border: 1px solid var(--card-brd); box-shadow: var(--shadow);
}

/* ===== Demo game ===== */
.demo { background: linear-gradient(180deg, var(--bg-2), var(--bg)); text-align: center; }
.demo-badge { display: inline-block; background: rgba(198,240,0,.12); color: #c6f000;
  border: 1px solid rgba(198,240,0,.3); font-weight: 700; font-size: .78rem; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.demo-card { max-width: 560px; margin: 8px auto 0; text-align: left;
  background: linear-gradient(180deg, var(--card), #0e1e14); border: 1px solid var(--card-brd);
  border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.demo-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px;
  border-bottom: 1px solid var(--card-brd); margin-bottom: 22px; }
.demo-avatar { width: 62px; height: 62px; flex-shrink: 0; border-radius: 16px;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #05100a;
  background: linear-gradient(135deg, #d4ff2e, #8bcf00); box-shadow: 0 8px 20px -8px rgba(198,240,0,.6); }
.demo-kicker { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 2px; }
.demo-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.demo-field { margin-bottom: 16px; }
.demo-field > label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.demo-input-row { display: flex; gap: 8px; }
.demo-input-row input {
  flex: 1; min-width: 0; background: #0a1710; border: 1.5px solid var(--card-brd);
  color: var(--text); border-radius: 12px; padding: 12px 14px; font-family: inherit;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.demo-input-row input::placeholder { color: #5c7266; }
.demo-input-row input:focus { outline: none; border-color: #c6f000;
  box-shadow: 0 0 0 3px rgba(198,240,0,.15); }
.demo-hint-btn { flex-shrink: 0; width: 46px; background: #0a1710; border: 1.5px solid var(--card-brd);
  border-radius: 12px; font-size: 1.2rem; cursor: pointer; transition: all .2s; }
.demo-hint-btn:hover:not(:disabled) { border-color: #c6f000; transform: translateY(-1px); }
.demo-hint-btn:disabled { opacity: .4; cursor: default; }
.demo-hint { margin-top: 8px; font-size: .88rem; color: #c6f000; padding-left: 2px; }
.demo-feedback { margin-top: 7px; font-size: .9rem; font-weight: 600; padding-left: 2px; }
.demo-field.correct input { border-color: var(--green); background: rgba(34,197,94,.08); }
.demo-field.wrong input { border-color: #ef4444; background: rgba(239,68,68,.07); }
.demo-feedback.ok { color: var(--green); }
.demo-feedback.no { color: #f87171; }

.demo-submit { width: 100%; margin-top: 6px; padding: 14px; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 800; color: #05100a; border-radius: 14px;
  background: linear-gradient(135deg, #d4ff2e, #8bcf00);
  box-shadow: 0 12px 26px -12px rgba(198,240,0,.7); transition: transform .15s, filter .2s; }
.demo-submit:hover { filter: brightness(1.05); transform: translateY(-2px); }
.demo-submit:active { transform: translateY(0); }

.demo-scoreboard { margin-top: 22px; padding: 20px; border-radius: 16px; text-align: center;
  background: #0a1710; border: 1px solid var(--card-brd); }
.demo-scoreboard .score-num { font-size: 2.2rem; font-weight: 800; color: #c6f000; line-height: 1; }
.demo-scoreboard .score-msg { margin-top: 8px; color: var(--text); font-weight: 600; }

.demo-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.demo-reset { flex: 1; min-width: 140px; padding: 12px; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: .95rem; color: var(--text); background: transparent;
  border: 1.5px solid var(--card-brd); border-radius: 12px; transition: all .2s; }
.demo-reset:hover { border-color: var(--green); color: var(--green); }
.demo-download { flex: 2; min-width: 180px; display: grid; place-items: center; padding: 12px;
  font-weight: 800; color: #05100a; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-2)); transition: filter .2s, transform .2s; }
.demo-download:hover { color: #05100a; filter: brightness(1.06); transform: translateY(-2px); }

/* Instagram follow */
.insta { padding-top: 20px; }
.insta-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
  padding: 34px 36px; border-radius: 24px; color: var(--white);
  background: linear-gradient(95deg, #2a2a5e 0%, #833ab4 30%, #e1306c 62%, #f77737 100%);
  box-shadow: 0 24px 60px -22px rgba(225,48,108,.6);
  transition: transform .25s, box-shadow .25s;
}
.insta-card:hover { color: var(--white); transform: translateY(-4px);
  box-shadow: 0 30px 70px -20px rgba(225,48,108,.75); }
.insta-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 15% 0%, rgba(255,255,255,.18), transparent 70%); }
.insta-ico { position: relative; flex-shrink: 0; width: 74px; height: 74px; border-radius: 20px;
  display: grid; place-items: center; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); }
.insta-ico svg { width: 42px; height: 42px; color: #fff; }
.insta-text { position: relative; flex: 1; min-width: 0; }
.insta-handle { display: inline-block; font-weight: 700; font-size: .9rem; opacity: .9;
  background: rgba(0,0,0,.18); padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; }
.insta-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.insta-text p { font-size: 1rem; opacity: .95; max-width: 560px; }
.insta-btn { position: relative; flex-shrink: 0; background: #fff; color: #e1306c;
  font-weight: 800; padding: 13px 26px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); transition: transform .2s; }
.insta-card:hover .insta-btn { transform: scale(1.05); }

/* CTA */
.cta { background: radial-gradient(800px 400px at 50% 0%, rgba(34,197,94,.16), transparent 60%), var(--bg-2);
  text-align: center; border-top: 1px solid var(--card-brd); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 82px; height: 82px; border-radius: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 28px; max-width: 460px; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-brd); padding: 44px 0 30px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; }
.footer-brand strong { display: block; }
.footer-brand span { color: var(--muted); font-size: .88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-brd); color: var(--muted);
  transition: all .2s;
}
.footer-social a:hover { color: var(--white); border-color: var(--green);
  transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(34,197,94,.6); }
.footer-social svg { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--card-brd);
  color: var(--muted); font-size: .84rem; text-align: center; }

/* ===== Legal / Support pages ===== */
.page { padding: 56px 0 80px; min-height: 60vh;
  background: radial-gradient(900px 400px at 80% -10%, rgba(34,197,94,.10), transparent 60%), var(--bg); }
.page .container { max-width: 820px; }
.page-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
  font-weight: 600; font-size: .92rem; margin-bottom: 24px; transition: color .2s; }
.page-back:hover { color: var(--green); }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.page .updated { color: var(--muted); font-size: .88rem; margin-bottom: 30px; }
.legal { color: #cfe0d5; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; color: var(--text); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal strong { color: var(--text); }
.contact-box { background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 22px 24px; margin: 20px 0 8px; }
.contact-box a { color: var(--green); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-phone { order: 1; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .hero-meta { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
  .nav a:not(.nav-cta) { display: none; }
  .insta-card { flex-direction: column; text-align: center; padding: 30px 24px; gap: 18px; }
  .insta-text p { margin: 0 auto; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .brand-name { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; align-items: center; gap: 14px; }
}
