/* ==========================================================================
   Winexch — winexchs.live
   Green Win Exchange · Emerald victory theme
   Fonts: Overpass (headings 700) + Gabarito (body 400–500)
   ========================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand */
  --primary: #059669;
  --primary-050: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #047857;
  --primary-700: #065f46;

  /* Surfaces */
  --bg-body: #ffffff;
  --bg-section: #f0fdf4;
  --bg-mint: #e7fbef;
  --bg-dark: #064e3b;
  --bg-darker: #05372a;
  --bg-deepest: #04241c;

  /* Text */
  --text: #064e3b;
  --text-body: #1f4f42;
  --text-soft: #4b7264;
  --text-muted: #6b8b7f;
  --on-dark: #eafaf3;
  --on-dark-soft: #a9d6c6;

  /* Accents */
  --gold: #f5c451;
  --gold-deep: #e0a92e;
  --back: #8fd0f7;   /* exchange back (blue) */
  --back-deep: #2b93d6;
  --lay: #f8b4c6;    /* exchange lay (pink)  */
  --lay-deep: #e0698a;

  /* Utility */
  --border: #d8ece2;
  --border-strong: #bfe3d2;
  --white: #ffffff;
  --danger: #dc2626;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(6,78,59,.06);
  --sh-sm: 0 4px 14px rgba(6,78,59,.08);
  --sh-md: 0 12px 30px rgba(6,78,59,.10);
  --sh-lg: 0 24px 60px rgba(6,78,59,.16);
  --sh-emerald: 0 16px 40px rgba(5,150,105,.30);

  /* Layout */
  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --header-h: 74px;

  --font-head: "Overpass", system-ui, sans-serif;
  --font-body: "Gabarito", system-ui, sans-serif;
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.015em;
}
:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; border-radius: 4px; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.bg-section { background: var(--bg-section); }
.bg-mint { background: var(--bg-mint); }
.bg-dark { background: var(--bg-dark); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* ----------  Eyebrow / section heads  ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-050);
  border: 1px solid var(--primary-100);
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
}
.bg-dark .eyebrow { color: var(--primary-300); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.28); }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--primary); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); margin-top: .9rem; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; margin-top: .9rem; }
.bg-dark .section-head p { color: var(--on-dark-soft); }

.h-lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--text-soft); }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1; border: 2px solid transparent;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-emerald); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(5,150,105,.38); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #4a3608; box-shadow: 0 14px 34px rgba(224,169,46,.34); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(224,169,46,.42); }
.btn-ghost { background: #fff; color: var(--primary-700); border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-600); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #04321a; box-shadow: 0 14px 34px rgba(37,211,102,.34); }
.btn-wa:hover { background: #1fbe5b; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { height: 30px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -.02em; }
.brand-name b { color: var(--primary); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  color: var(--text-body); padding: .55rem .9rem; border-radius: var(--r-pill);
  transition: background .15s, color .15s; position: relative;
}
.nav-links a:hover { background: var(--primary-050); color: var(--primary-700); }
.nav-links a.active { color: var(--primary-700); background: var(--primary-050); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background:#fff; align-items:center; justify-content:center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2.4px; background: var(--text); border-radius: 2px; transition: .25s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(7px); }
.nav-toggle span::before, .nav-toggle span::after { position: absolute; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; padding: 1rem clamp(1rem,4vw,2rem) 1.4rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--sh-md);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 55;
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav-actions .btn-desktop { display: none; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(52,211,153,.28), transparent 60%),
    radial-gradient(900px 500px at 8% 108%, rgba(6,95,70,.20), transparent 55%),
    linear-gradient(168deg, #063f30 0%, #064e3b 48%, #076a4d 100%);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; }
.hero h1 .grad { background: linear-gradient(120deg,#6ee7b7,#f5c451); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--on-dark-soft); font-size: clamp(1.05rem, 2.3vw, 1.28rem); max-width: 54ch; margin-top: 1.3rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--on-dark-soft); font-weight: 500; }
.hero-badge svg { width: 20px; height: 20px; color: var(--primary-300); flex: none; }

/* Hero visual — stat / victory card */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl); padding: 1.6rem; backdrop-filter: blur(8px);
  box-shadow: var(--sh-lg);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hero-card-top .chip { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #052e2b; background: var(--primary-300); padding: .3rem .7rem; border-radius: var(--r-pill); }
.hero-card-top .live { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--on-dark-soft); }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hero-stat { background: rgba(4,36,28,.4); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 1rem; }
.hero-stat .n { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1; }
.hero-stat .n .up { color: var(--primary-300); font-size: 1rem; }
.hero-stat .l { font-size: .82rem; color: var(--on-dark-soft); margin-top: .35rem; }
.hero-spark { margin-top: 1rem; height: 56px; width: 100%; }

/* Marquee trust strip */
.trust-strip { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.08); }
.trust-track { display: flex; align-items: center; gap: 2.5rem; padding-block: 1rem; overflow: hidden; }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; color: var(--on-dark-soft); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.trust-item svg { width: 18px; height: 18px; color: var(--primary-300); }

/* ----------  Cards / grids  ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--border-strong); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary-600); margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .98rem; }

/* Feature card with number */
.feature-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--primary-100); line-height: 1; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat-box { text-align: center; padding: 1.4rem 1rem; }
.stat-box .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem,4vw,2.7rem); color: var(--primary); line-height: 1; }
.bg-dark .stat-box .n { color: var(--primary-300); }
.stat-box .l { color: var(--text-soft); font-weight: 500; margin-top: .4rem; font-size: .95rem; }
.bg-dark .stat-box .l { color: var(--on-dark-soft); }

/* ----------  Games showcase  ---------- */
.game-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-md); border: 1px solid var(--border); background:#000;
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.game-card img { width: 100%; aspect-ratio: 600/315; object-fit: cover; transition: transform .4s ease; }
.game-card:hover img { transform: scale(1.05); }
.game-meta {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: 1.4rem 1.1rem .95rem; color: #fff;
  background: linear-gradient(transparent, rgba(4,36,28,.92));
}
.game-meta h3 { color: #fff; font-size: 1.05rem; }
.game-meta .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-300); }
.game-play { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; flex: none; box-shadow: var(--sh-emerald); }
.game-play svg { width: 18px; height: 18px; color: #fff; }

/* ==========================================================================
   INTERACTIVE TOOLS
   ========================================================================== */
.tool-shell {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-md); overflow: hidden;
}
.tool-head {
  display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.5rem;
  background: linear-gradient(120deg, var(--bg-dark), var(--primary-700));
  color: #fff;
}
.tool-head .t-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.tool-head .t-ic svg { width: 22px; height: 22px; color: var(--primary-300); }
.tool-head h3 { color: #fff; font-size: 1.15rem; }
.tool-head p { color: var(--on-dark-soft); font-size: .84rem; margin-top: .1rem; }
.tool-head .live-dot { margin-left: auto; }
.tool-body { padding: clamp(1.2rem, 3vw, 2rem); }

.live-dot { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--primary-300); }
.live-dot::before { content:""; width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6)} 70%{box-shadow:0 0 0 9px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

/* Win Rate Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .45rem; }
.field .hint { color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.input {
  width: 100%; padding: .85rem 1rem; border: 1.6px solid var(--border-strong); border-radius: var(--r-md);
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-050); }
.range-wrap { display: flex; align-items: center; gap: 1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: var(--primary-100); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); box-shadow: var(--sh-sm); cursor: pointer; border: 3px solid #fff; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; cursor: pointer; }

.calc-result {
  background: linear-gradient(165deg, var(--bg-dark), var(--primary-700));
  border-radius: var(--r-lg); padding: 1.6rem; color: #fff; display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.gauge { position: relative; width: 190px; height: 110px; margin: .3rem auto .6rem; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .g-val { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.gauge .g-unit { font-size: 1.1rem; color: var(--primary-300); }
.gauge-center { position: absolute; inset: auto 0 6px 0; text-align: center; }
.rating-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.rating-badge .star { color: var(--gold); }
.calc-sub { color: var(--on-dark-soft); font-size: .9rem; margin-top: .8rem; }
.calc-meta { display: flex; justify-content: space-around; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); }
.calc-meta div { text-align: center; }
.calc-meta .n { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--primary-300); }
.calc-meta .l { font-size: .76rem; color: var(--on-dark-soft); }

/* Exchange Order Book */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.book-col-head { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.book-col-head .bh { padding: .6rem .9rem; }
.book-col-head .back-h { background: var(--back); color: #0b3a5b; text-align: right; }
.book-col-head .lay-h { background: var(--lay); color: #6b132e; }
.book-side { display: flex; flex-direction: column; }
.book-row { display: grid; grid-template-columns: 1fr 1fr; position: relative; font-variant-numeric: tabular-nums; }
.book-row .cell { padding: .62rem .9rem; position: relative; z-index: 2; font-size: .96rem; }
.book-row .price { font-family: var(--font-head); font-weight: 700; }
.book-row .size { color: var(--text-soft); font-size: .86rem; }
.book-side.back .book-row { text-align: right; }
.book-side.back .book-row .bar { position: absolute; inset: 0 0 0 auto; background: rgba(143,208,247,.34); z-index: 1; transition: width .5s ease; }
.book-side.lay .book-row .bar { position: absolute; inset: 0 auto 0 0; background: rgba(248,180,198,.34); z-index: 1; transition: width .5s ease; }
.book-side.back .book-row:nth-child(1) .price { color: var(--back-deep); }
.book-side.lay .book-row:nth-child(1) .price { color: var(--lay-deep); }
.book-row { border-top: 1px solid var(--border); }
.flash-up { animation: flashUp .6s ease; }
.flash-dn { animation: flashDn .6s ease; }
@keyframes flashUp { 0% { background: rgba(5,150,105,.28); } 100% { background: transparent; } }
@keyframes flashDn { 0% { background: rgba(220,38,38,.22); } 100% { background: transparent; } }
.book-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.book-event { display: flex; align-items: center; gap: .7rem; }
.book-event .ev-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-050); color: var(--primary-600); display: grid; place-items: center; flex: none; }
.book-event .ev-ic svg { width: 20px; height: 20px; }
.book-event .en { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: .98rem; }
.book-event .es { font-size: .8rem; color: var(--text-muted); }
.book-legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--text-soft); }
.book-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.book-legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Trophy Room */
.trophy-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.trophy-progress { flex: 1; min-width: 240px; }
.trophy-progress .bar-track { height: 12px; background: var(--primary-100); border-radius: var(--r-pill); overflow: hidden; margin-top: .5rem; }
.trophy-progress .bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: var(--r-pill); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.trophy-progress .pr-label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text-soft); font-weight: 500; }
.trophy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trophy {
  position: relative; text-align: center; padding: 1.3rem 1rem; border-radius: var(--r-lg);
  border: 1.5px solid var(--border); background: var(--bg-section); transition: .25s; overflow: hidden;
}
.trophy.locked { opacity: .72; filter: grayscale(.55); }
.trophy.unlocked { border-color: var(--gold); background: linear-gradient(180deg,#fff, #fffdf3); box-shadow: 0 12px 28px rgba(224,169,46,.18); }
.trophy .medal {
  width: 62px; height: 62px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-100); color: var(--primary-600); transition: .25s;
}
.trophy.unlocked .medal { background: linear-gradient(145deg, var(--gold), var(--gold-deep)); color: #4a3608; box-shadow: 0 8px 20px rgba(224,169,46,.4); }
.trophy .medal svg { width: 30px; height: 30px; }
.trophy h4 { font-size: .98rem; margin-bottom: .2rem; }
.trophy p { font-size: .8rem; color: var(--text-muted); line-height: 1.4; }
.trophy .lock-state { position: absolute; top: .7rem; right: .7rem; width: 22px; height: 22px; color: var(--text-muted); }
.trophy.unlocked .lock-state { color: var(--gold-deep); }
.trophy.just-unlocked { animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { 0%{transform:scale(.9)} 60%{transform:scale(1.06)} 100%{transform:scale(1)} }
.trophy-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; justify-content: center; }
.chip-action { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .6rem 1.1rem; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--border-strong); color: var(--primary-700); transition: .18s; }
.chip-action:hover { border-color: var(--primary); background: var(--primary-050); transform: translateY(-2px); }
.chip-action svg { width: 16px; height: 16px; }

/* ----------  FAQ  ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: .8rem; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { box-shadow: var(--sh-sm); border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-050); color: var(--primary-600); display: grid; place-items: center; transition: transform .25s; }
.faq-item[open] summary .q-ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }
.faq-item .faq-body p + p { margin-top: .7rem; }

/* ----------  CTA band  ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(700px 300px at 80% -20%, rgba(52,211,153,.35), transparent 60%), linear-gradient(150deg, var(--bg-dark), var(--primary-700));
  color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { color: var(--on-dark-soft); max-width: 56ch; margin: 1rem auto 0; font-size: 1.08rem; }
.cta-band .btn-row { margin-top: 1.8rem; }

/* ----------  Content / legal pages  ---------- */
.page-hero {
  background: radial-gradient(800px 360px at 85% -10%, rgba(52,211,153,.22), transparent 60%), linear-gradient(160deg, #063f30, #064e3b);
  color: #fff; padding-block: clamp(2.6rem, 6vw, 4rem);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--on-dark-soft); margin-top: 1rem; max-width: 60ch; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--on-dark-soft); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--primary-300); }
.breadcrumb .sep { opacity: .5; }

.prose { max-width: 780px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.4rem; padding-top: .4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-body); }
.prose a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul li, .prose ol li { margin-top: .5rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--primary); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
.prose ol { list-style: decimal; }
.prose strong { color: var(--text); }
.callout {
  border-left: 4px solid var(--primary); background: var(--bg-section);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin-block: 1.4rem;
}
.callout.warn { border-color: var(--gold-deep); background: #fffaf0; }
.toc { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; }
.toc h4 { font-size: 1rem; margin-bottom: .7rem; }
.toc ul li { margin-top: .45rem; }
.toc a { color: var(--text-body); font-weight: 500; }
.toc a:hover { color: var(--primary-600); }
.updated-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }

.content-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.content-layout .toc { position: sticky; top: 96px; }

/* ----------  Auth (login / signup)  ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside {
  background: radial-gradient(700px 400px at 20% 10%, rgba(52,211,153,.28), transparent 60%), linear-gradient(160deg, var(--bg-dark), var(--primary-700));
  color: #fff; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-aside::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 60% at 30% 30%, #000, transparent); mask-image: radial-gradient(60% 60% at 30% 30%, #000, transparent); opacity:.5; }
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.auth-aside p { color: var(--on-dark-soft); margin-top: 1rem; }
.auth-points { margin-top: 1.8rem; display: grid; gap: 1rem; }
.auth-point { display: flex; gap: .8rem; align-items: flex-start; }
.auth-point .ap-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.auth-point .ap-ic svg { width: 20px; height: 20px; color: var(--primary-300); }
.auth-point b { color: #fff; font-family: var(--font-head); display: block; }
.auth-point span { color: var(--on-dark-soft); font-size: .9rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem); background: var(--bg-body); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card > .eyebrow { margin-bottom: 1rem; }
.auth-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.auth-card .sub { color: var(--text-soft); margin-top: .6rem; margin-bottom: 1.8rem; }
.auth-note {
  display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.1rem;
  background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .88rem; color: var(--text-soft);
}
.auth-note svg { width: 20px; height: 20px; color: var(--primary-600); flex: none; margin-top: 1px; }
.auth-alt { text-align: center; margin-top: 1.5rem; color: var(--text-soft); }
.auth-alt a { color: var(--primary-600); font-weight: 700; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 24px; height: 24px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--primary-600); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; margin-block: 1.1rem; font-size: .9rem; color: var(--text-soft); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.checkbox-row a { color: var(--primary-600); font-weight: 600; }
.form-msg { display: none; padding: .8rem 1rem; border-radius: var(--r-md); font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--primary-050); color: var(--primary-700); border: 1px solid var(--primary-100); }
.form-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.strength { height: 6px; border-radius: 6px; background: var(--border); margin-top: .5rem; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .3s, background .3s; }
.strength-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* ----------  APK page  ---------- */
.apk-hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.6rem; box-shadow: var(--sh-lg);
  display: flex; gap: 1.2rem; align-items: center;
}
.apk-icon { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(145deg, var(--primary), var(--primary-700)); display: grid; place-items: center; flex: none; box-shadow: var(--sh-emerald); }
.apk-icon svg { width: 44px; height: 44px; color: #fff; }
.apk-icon img { width: 46px; height: auto; }
.apk-meta h3 { font-size: 1.3rem; }
.apk-stars { display: flex; align-items: center; gap: .3rem; color: var(--gold-deep); margin-top: .3rem; }
.apk-stars svg { width: 16px; height: 16px; fill: currentColor; }
.apk-stars span { color: var(--text-soft); font-size: .85rem; margin-left: .3rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.spec-table th { font-family: var(--font-head); color: var(--text); font-weight: 700; width: 40%; }
.spec-table td { color: var(--text-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.step-list { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.step::before {
  counter-increment: step; content: counter(step); flex: none;
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 800; display: grid; place-items: center;
}
.step h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.step p { color: var(--text-soft); font-size: .93rem; }

/* ----------  WhatsApp float  ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem .8rem .85rem; border-radius: var(--r-pill);
  background: #25d366; color: #04321a; font-family: var(--font-head); font-weight: 700; box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(37,211,102,.5); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-txt { font-size: .95rem; }
@media (max-width: 560px) { .wa-float .wa-txt { display: none; } .wa-float { padding: .9rem; } }

/* ----------  Footer  ---------- */
.site-footer { background: var(--bg-deepest); color: var(--on-dark-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { font-size: .93rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: .18s; }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { font-size: .93rem; transition: color .15s, padding .15s; }
.footer-col a:hover { color: var(--primary-300); padding-left: 4px; }
.footer-cta { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 1.4rem; }
.footer-cta h4 { color:#fff; }
.footer-cta p { font-size: .88rem; margin-block: .5rem .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal a { font-size: .86rem; }
.footer-legal a:hover { color: var(--primary-300); }
.age-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; font-size: .82rem; }
.age-badge .a-c { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--lay-deep); color: var(--lay); display: grid; place-items: center; font-family: var(--font-head); font-size: .78rem; }
.disclaimer-strip { background: var(--bg-darker); font-size: .82rem; color: var(--on-dark-soft); padding-block: 1rem; text-align: center; }
.disclaimer-strip .container { max-width: 900px; }

/* ----------  Reveal animation  ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------  Misc  ---------- */
.divider-chevrons { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1.4rem 0; }
.divider-chevrons i { width: 10px; height: 10px; background: var(--primary-300); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); opacity: .5; }
.divider-chevrons i:nth-child(2){ opacity:.8; } .divider-chevrons i:nth-child(3){ background: var(--primary); opacity:1; }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: var(--r-pill); background: var(--primary-050); color: var(--primary-700); font-weight: 600; font-size: .88rem; border: 1px solid var(--primary-100); }
.note-inline { font-size: .85rem; color: var(--text-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.rounded-media { border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; border: 1px solid var(--border); }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .content-layout { grid-template-columns: 1fr; }
  .content-layout .toc { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trophy-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trophy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .book-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .hero-stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { gap: .4rem .9rem; }
}
