/* ============================================================
   5k — Landing styles (v2 redesign)
   Brand: LinguaCap 5K · accent #2563EB · font Onest
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --ink: #0d1024;
  --ink-2: #2c2e44;
  --muted: #5d6075;
  --muted-2: #8e90a3;
  --line: #ececf3;
  --line-2: #e2e6f0;

  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-ink: #1e3a8a;
  --primary-soft: #eef3ff;

  /* supporting accents for feature chips */
  --c-green: #16a34a;  --c-green-bg: #e7f6ec;
  --c-amber: #d97706;  --c-amber-bg: #fdf0dc;
  --c-violet: #7c3aed; --c-violet-bg: #f1eafe;
  --c-pink: #db2777;   --c-pink-bg: #fce7f1;
  --c-cyan: #0891b2;   --c-cyan-bg: #e2f5fa;

  --radius: 26px;
  --radius-sm: 16px;
  --shadow-card: 0 1px 2px rgba(13,16,36,.04), 0 12px 32px -18px rgba(13,16,36,.22);
  --shadow-lg: 0 30px 70px -32px rgba(37,99,235,.45);
  --maxw: 1140px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 26px -12px rgba(37,99,235,.6);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(37,99,235,.78); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: #cdd4e4; background: var(--bg-soft); }

/* ---------- Store badges (official-style SVG) ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  height: 54px; width: auto; display: block;
  border-radius: 12px;
  transition: transform .16s ease, filter .2s ease;
  filter: drop-shadow(0 8px 18px rgba(13,16,36,.18));
}
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 22px rgba(13,16,36,.26)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(37,99,235,.5); }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: 54px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ---------- Hero (centered) ---------- */
.hero { position: relative; padding: 80px 0 40px; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,.20), transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob.b1 { width: 340px; height: 340px; background: #bcd3ff; left: -80px; top: 60px; }
.blob.b2 { width: 300px; height: 300px; background: #d9e4ff; right: -60px; top: 140px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid var(--line-2);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em;
  margin: 0 auto 22px; font-weight: 800; max-width: 14ch;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 20px; color: var(--muted); margin: 0 auto 32px; max-width: 36ch; }
.hero-actions { display: flex; justify-content: center; }

/* ---------- Hero showcase (phone + floating cards) ---------- */
.showcase { position: relative; margin: 56px auto 0; width: min(720px, 100%); height: 612px; }
.showcase .pedestal {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 520px; height: 320px; border-radius: 40px;
  background: linear-gradient(160deg, #2563eb, #1e40af);
  box-shadow: var(--shadow-lg);
}
.phone {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 286px; z-index: 2; filter: drop-shadow(0 30px 50px rgba(13,16,36,.28));
}
.float-card {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 11px;
}
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card .fc-ic svg { width: 20px; height: 20px; }
.float-card .fc-title { font-weight: 700; font-size: 16px; line-height: 1.1; }
.float-card .fc-sub { font-size: 12.5px; color: var(--muted-2); }
.fc-streak { left: 4%; top: 96px; animation: float1 6s ease-in-out infinite; }
.fc-learned { right: 2%; top: 150px; animation: float2 7s ease-in-out infinite; }
.fc-goal { right: 8%; bottom: 96px; animation: float1 6.6s ease-in-out infinite; }
@keyframes float1 { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
@keyframes float2 { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(10px) } }

/* ---------- Word marquee ---------- */
.marquee-band { padding: 22px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee { display: flex; gap: 14px; width: max-content; animation: scrollx 38s linear infinite; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.word-chip {
  display: inline-flex; align-items: baseline; gap: 8px; flex: none;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  font-size: 15px;
}
.word-chip b { font-weight: 700; }
.word-chip span { color: var(--muted-2); font-size: 13.5px; }
@keyframes scrollx { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 92px; }
.section { padding: 92px 0; }
.section.tint { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 800; }
.section-head p { font-size: 18.5px; color: var(--muted); margin: 0; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.card .chip { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 18px; }
.card .chip svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* feature highlight (spans 2 cols) */
.card.wide { grid-column: span 2; display: flex; gap: 30px; align-items: center; background: linear-gradient(135deg, #1e40af, var(--primary)); color: #fff; border: 0; }
.card.wide .chip { background: rgba(255,255,255,.16); }
.card.wide p { color: rgba(255,255,255,.85); }
.card.wide .wide-stat { flex: none; text-align: center; }
.card.wide .wide-stat .n { font-size: 52px; font-weight: 800; letter-spacing: -.04em; }
.card.wide .wide-stat .l { font-size: 14px; color: rgba(255,255,255,.8); }
/* color variants */
.chip.green { background: var(--c-green-bg); color: var(--c-green); }
.chip.amber { background: var(--c-amber-bg); color: var(--c-amber); }
.chip.violet { background: var(--c-violet-bg); color: var(--c-violet); }
.chip.pink { background: var(--c-pink-bg); color: var(--c-pink); }
.chip.cyan { background: var(--c-cyan-bg); color: var(--c-cyan); }
.chip.blue { background: var(--primary-soft); color: var(--primary); }

/* ---------- Levels ---------- */
.levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.level-pill {
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px;
  padding: 20px 30px; text-align: center; min-width: 140px; transition: transform .16s ease, box-shadow .2s ease;
}
.level-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.level-pill .lv { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.level-pill .desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.level-track { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.level-track .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--primary); flex: none; }
.level-track .bar { height: 4px; flex: 1; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.level-track .dot.last { background: var(--primary-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step .n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; box-shadow: 0 10px 22px -12px rgba(37,99,235,.7); }
.step h3 { margin: 0 0 7px; font-size: 20px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Premium ---------- */
.premium-card {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #2f57d6 0%, #1e3a8a 55%, #16245e 100%);
  border-radius: 32px; padding: 60px; color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.premium-card .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(96,165,250,.35); filter: blur(70px); right: -60px; top: -80px; }
.premium-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.premium-card h2 { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 14px; letter-spacing: -.035em; line-height: 1.08; position: relative; }
.premium-card > div > p { margin: 0 0 26px; color: rgba(255,255,255,.86); font-size: 17.5px; }
.premium-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 16px 32px -14px rgba(0,0,0,.55); }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; position: relative; }
.perk-list li { display: flex; align-items: center; gap: 13px; font-size: 16.5px; }
.perk-list .chk { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.perk-list .chk svg { width: 15px; height: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; transition: box-shadow .2s ease, border-color .2s ease; }
.faq details[open] { box-shadow: var(--shadow-card); border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; color: var(--primary); transition: transform .2s ease; font-size: 24px; line-height: 1; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { color: var(--muted); padding: 0 0 22px; font-size: 16px; }

/* ---------- CTA ---------- */
.cta-band { padding: 96px 0; }
.cta-inner { position: relative; overflow: hidden; text-align: center; background: linear-gradient(135deg, var(--primary-2), var(--primary)); border-radius: 32px; padding: 72px 32px; color: #fff; box-shadow: var(--shadow-lg); }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.035em; margin: 0 0 14px; font-weight: 800; }
.cta-inner p { font-size: 19px; color: rgba(255,255,255,.9); margin: 0 0 30px; }
.cta-inner .store-badges { justify-content: center; }
.cta-inner .blob { width: 300px; height: 300px; background: rgba(255,255,255,.25); opacity: .6; left: -60px; bottom: -120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7c8d6; padding: 60px 0 38px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9395a8; font-size: 14.5px; margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
.footer-col a { display: block; color: #9395a8; font-size: 15px; padding: 5px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #7a7c8e; font-size: 13.5px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 84px; background: var(--bg-soft); }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px clamp(24px, 5vw, 64px); max-width: 840px; margin: 0 auto; box-shadow: var(--shadow-card); }
.legal-card .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 6px; }
.legal-card h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 8px; }
.legal-card .intro { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.legal-card h2 { font-size: 22px; letter-spacing: -.02em; margin: 38px 0 12px; padding-top: 8px; }
.legal-card h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-card p, .legal-card li { color: var(--ink-2); font-size: 16px; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: var(--primary); font-weight: 500; }
.legal-card a:hover { text-decoration: underline; }
.legal-card .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 8px; }
.legal-card .toc a { font-size: 14.5px; color: var(--muted); }
.legal-card .contact-box { margin-top: 36px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px 24px; border: 1px solid var(--line); }
.legal-card .contact-box p { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.back-link:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: 104px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--primary-2), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound h1 { font-size: 28px; margin: 16px 0 10px; }
.notfound p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .float-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .premium-card { grid-template-columns: 1fr; padding: 44px 34px; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 52px 0 24px; }
  .section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; flex-direction: column; align-items: flex-start; text-align: left; }
  .showcase { height: 520px; margin-top: 40px; }
  .showcase .pedestal { width: 88%; height: 240px; }
  .phone { width: 246px; }
  .float-card { display: none; }
  .footer-cols { gap: 36px; }
}
