/* ============ LANGUY FUNNEL — DESIGN SYSTEM ============
   Navy #0F1724 · Accent #3B82F6 / Teal #0EA5E9 · White
   Space Grotesk (display) · Inter (body) · Space Mono (stats) */

:root {
  --navy: #0F1724;
  --navy-soft: #1A2540;
  --navy-light: #F1F4F9;
  --blue: #3B82F6;
  --blue-dark: #1E40AF;
  --teal: #0EA5E9;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --good: #10B981;
  --warm: #F47C5C;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 36, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 600; }
p { margin-bottom: 1rem; }
img.pixel { image-rendering: pixelated; }
a { color: var(--blue); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; }
section { padding: 72px 0; }
.section-dark { background: var(--navy); color: #E6EDF7; position: relative; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 25%, rgba(96,165,250,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 65%, rgba(14,165,233,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 55%, rgba(96,165,250,0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 8%, rgba(255,255,255,0.25) 50%, transparent 51%);
  background-size: 520px 520px;
}
.section-dark > * { position: relative; }
.hero-mascot { position: relative; display: inline-block; }
.hero-mascot::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.32) 0%, rgba(14,165,233,0.12) 45%, transparent 70%);
  pointer-events: none;
}
.hero-mascot img { position: relative; filter: drop-shadow(0 10px 26px rgba(14,165,233,0.35)); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #B9C5D8; }
.section-tint { background: var(--navy-light); }

.kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 34px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
}
.btn-primary { background: linear-gradient(180deg, #4D90F8 0%, var(--blue) 60%); color: #fff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px);
  border-radius: 0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-big { font-size: 1.2rem; padding: 20px 44px; }
.btn-block { display: block; width: 100%; }

.guarantee {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 0.9rem; color: var(--muted); margin-top: 14px;
}
.section-dark .guarantee { color: #8FA3BF; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-dark { background: var(--navy-soft); border: 1px solid rgba(255,255,255,0.08); color: #E6EDF7; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Mascot moments */
.mascot-card {
  display: flex; align-items: center; gap: 24px;
  background: var(--navy); color: #E6EDF7;
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
}
.mascot-card img { width: 130px; height: 130px; flex-shrink: 0; image-rendering: pixelated;
  filter: drop-shadow(0 8px 18px rgba(14,165,233,0.3)); }
.mascot-card h3 { color: #fff; margin-bottom: 6px; }
.mascot-card p { color: #B9C5D8; margin: 0; }

/* Stats strip */
.stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.stat {
  font-family: 'Space Mono', monospace; text-align: center;
  padding: 18px 28px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
}
.stat b { display: block; font-size: 1.7rem; color: var(--teal); }
.stat span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA3BF; }

/* Offer stack */
.offer {
  border: 2px solid var(--blue); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
.offer-head { background: var(--navy); color: #fff; padding: 26px 30px; text-align: center; }
.offer-price { font-family: 'Space Mono', monospace; font-size: 3rem; font-weight: 700; color: var(--teal); }
.offer-body { padding: 30px; }
.offer-body ul { list-style: none; }
.offer-body li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.offer-body li:last-child { border-bottom: none; }
.offer-body li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.strike { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }

/* Quest / chapter list */
.quest { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: none; }
.quest-num {
  font-family: 'Space Mono', monospace; font-weight: 700; color: var(--blue);
  background: var(--navy-light); border-radius: 10px; min-width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px; background: #fff;
}
details summary {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.field { width: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: 'Inter', sans-serif; margin-bottom: 12px; }
.field:focus { outline: none; border-color: var(--blue); }

/* Sample drop (daily page) */
.drop { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.drop .lang-tag { font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--blue); text-transform: uppercase; }
.drop .story { font-size: 1.05rem; margin: 10px 0; }
.drop .gloss { font-size: 0.85rem; color: var(--muted); }

footer { background: var(--navy); color: #8FA3BF; padding: 44px 0; font-size: 0.85rem; text-align: center; }
footer a { color: #B9C5D8; }

.center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mb-3 { margin-bottom: 32px; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .mascot-card { flex-direction: column; text-align: center; }
  .stats { gap: 10px; } .stat { padding: 12px 16px; flex: 1 1 40%; }
}

/* Sticky mobile buy bar */
.buybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(15,23,36,0.92); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.buybar b { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; }
.buybar small { display:block; color:#8FA3BF; font-size:0.72rem; font-family:'Space Mono',monospace; }
.buybar .btn { padding: 12px 22px; font-size: 0.95rem; }
@media (max-width: 720px) { .buybar { display: flex; } footer { padding-bottom: 110px; } }
