/* ============================================================
   Pinnaro — landing styles
   Brand tokens mirror the game palette (lib/app/theme.dart):
   green CTA #00C281→#00A86F, blue accent #3B82F6, gold PNR coin,
   light surfaces #F6F7F9/#FFFFFF, navy dark #0E1322 family, Manrope.
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Variable.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #00C281;
  --brand-2: #00A86F;
  --blue: #3B82F6;
  --gold: #FFD75E;
  --gold-deep: #E8941A;
  --red: #F04452;

  --ink: #12141C;
  --ink-soft: #8A90A0;
  --scaffold: #F6F7F9;
  --surface: #FFFFFF;
  --surface-alt: #F1F3F7;
  --border: #E2E7F0;
  --divider: #ECEEF3;

  --navy-bg: #0E1322;
  --navy-raised: #141A2C;
  --navy-card: #1A2138;
  --navy-border: #2B3452;
  --navy-ink: #F2F4FA;
  --navy-ink-soft: #939CB4;

  --shadow-card: 0 10px 30px rgba(18, 20, 28, .07);
  --shadow-cta: 0 10px 22px rgba(0, 194, 129, .38);
  --radius: 22px;
  --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--scaffold);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
/* mascot art scales by width in media queries — keep the aspect ratio
   (the width/height HTML attributes only reserve layout space) */
.hero-mascot, .mining-art img, .compete-art img, .cta-mascot { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}

.brand-lockup { display: flex; align-items: center; gap: 11px; color: var(--ink); }

.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 4px 13px rgba(0, 194, 129, .40);
}
.brand-mark svg { width: 22px; height: 24px; }

.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  transition: color .15s;
}
.site-nav a:hover { color: var(--ink); }

.header-cta { margin-left: 4px; }

/* ---------- buttons ---------- */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 15.5px;
  box-shadow: var(--shadow-cta);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 194, 129, .45); }
.btn-primary.small { padding: 10px 20px; font-size: 14.5px; }

/* store badges */

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px;
  padding: 11px 22px 11px 18px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 22px rgba(18, 20, 28, .22);
}
.badge-store:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 20, 28, .3); }
.badge-store svg { width: 30px; height: 32px; flex: none; }
.badge-store .lines { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.badge-store .tiny { font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.badge-store .big { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }

.badge-store.soon {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: none; cursor: default;
}
.badge-store.soon:hover { transform: none; box-shadow: none; }
.badge-store.soon .tiny { color: var(--ink-soft); opacity: 1; }
.badge-store.soon .soon-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--brand-2);
  background: rgba(0, 194, 129, .12);
  padding: 2px 8px; border-radius: 999px;
  margin-left: 4px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .55;
}
.hero::before { width: 560px; height: 560px; background: rgba(0, 194, 129, .22); top: -180px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: rgba(59, 130, 246, .16); bottom: -220px; left: -140px; }

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--brand-2);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 194, 129, .18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 194, 129, .18); }
  50% { box-shadow: 0 0 0 7px rgba(0, 194, 129, .08); }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  font-size: 18px; color: var(--ink-soft); font-weight: 500;
  max-width: 480px; margin-bottom: 30px;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }

.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; flex: none; }

/* hero visual: phone + floats */

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 540px; }

.phone {
  position: relative; z-index: 2;
  width: 292px; height: 560px;
  background: #0B0E18;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 34px 70px rgba(14, 19, 34, .34), inset 0 0 0 2px #262E48;
  transform: rotate(-3deg);
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--scaffold);
  border-radius: 35px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 999px; background: #0B0E18; z-index: 3;
}

.ps-head {
  padding: 34px 16px 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
}
.ps-coin { display: flex; align-items: center; gap: 9px; }
.ps-coin .cico {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFF3CE, #FFD75E 52%, #E8941A);
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #7A4A00;
  border: 2px solid #C9820C;
}
.ps-coin .nm { font-weight: 800; font-size: 14.5px; line-height: 1.15; }
.ps-coin .tk { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.ps-price { text-align: right; }
.ps-price .val { font-weight: 800; font-size: 15.5px; }
.ps-price .chg { font-size: 11.5px; font-weight: 700; color: var(--brand-2); }

.ps-chart { flex: 1; background: var(--surface); padding: 6px 0 0; position: relative; }
.ps-chart svg { width: 100%; height: 100%; display: block; }

.ps-actions { display: flex; gap: 10px; padding: 12px 14px 18px; background: var(--surface); }
.ps-actions .buy, .ps-actions .sell {
  flex: 1; text-align: center; padding: 12px 0;
  border-radius: 13px; font-weight: 800; font-size: 14.5px; color: #fff;
}
.ps-actions .buy { background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 14px rgba(0, 194, 129, .35); }
.ps-actions .sell { background: #F04452; box-shadow: 0 6px 14px rgba(240, 68, 82, .3); }

.hero-mascot {
  position: absolute; z-index: 3;
  width: 240px; right: -18px; bottom: -6px;
  filter: drop-shadow(0 18px 30px rgba(14, 19, 34, .25));
  animation: float 5s ease-in-out infinite;
}

.float-card {
  position: absolute; z-index: 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 11px 15px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13.5px;
  animation: float 6s ease-in-out infinite;
}
.float-card .ico { width: 34px; height: 34px; flex: none; }
.float-card small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.fc-profit { top: 56px; left: -8px; animation-delay: -1.4s; }
.fc-profit .up { color: var(--brand-2); }
.fc-air { top: 210px; right: -26px; animation-delay: -3s; }
.fc-mine { bottom: 96px; left: -30px; animation-delay: -4.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
  overflow: hidden;
  padding: 13px 0;
  position: relative; z-index: 1;
}
.ticker-track {
  display: flex; gap: 44px; width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ticker-item .sym { color: var(--ink); }
.ticker-item .px { color: var(--ink-soft); font-weight: 600; }
.ticker-item .up { color: var(--brand-2); }
.ticker-item .down { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

section { padding: 88px 0; }

.sec-kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  margin-bottom: 16px;
}
.sec-sub { font-size: 17px; color: var(--ink-soft); max-width: 560px; }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin: 0 auto; }

/* features */

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(18, 20, 28, .1); }
.feature-card .fico {
  width: 84px; height: 84px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 22px;
}
.feature-card .fico img { width: 62px; height: 62px; object-fit: contain; }
.feature-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* pastel plates, echoing lobby tiles */
.tint-green { background: #E4F7EE; }
.tint-orange { background: #FDEEDD; }
.tint-blue { background: #E4EEFD; }
.tint-violet { background: #EEE9FC; }
.tint-gold { background: #FBF3D9; }
.tint-red { background: #FDE7E4; }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.step .num {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(0, 194, 129, .35);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- mining (dark) ---------- */

.mining { padding: 0; }
.mining-panel {
  background: linear-gradient(160deg, var(--navy-raised), var(--navy-bg) 65%);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  color: var(--navy-ink);
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 20px;
}
.mining-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 340px at 82% 18%, rgba(0, 194, 129, .16), transparent 68%);
}
.mining-copy { padding: 62px 20px 62px 56px; position: relative; z-index: 1; }
.mining-copy .sec-title { color: var(--navy-ink); }
.mining-copy .sec-sub { color: var(--navy-ink-soft); margin-bottom: 30px; }

.mining-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.mstat {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 128px;
}
.mstat .v { font-size: 21px; font-weight: 800; color: var(--brand); }
.mstat .l { font-size: 12.5px; font-weight: 600; color: var(--navy-ink-soft); }

.mining-art { position: relative; z-index: 1; align-self: end; padding: 30px 30px 0 0; display: flex; justify-content: center; }
.mining-art img { width: 320px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .45)); }

/* ---------- compete ---------- */

.compete .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.compete-art { display: flex; justify-content: center; position: relative; }
.compete-art img { width: 330px; filter: drop-shadow(0 20px 34px rgba(14, 19, 34, .2)); animation: float 6s ease-in-out infinite; }

.compete-list { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.compete-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.compete-item img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.compete-item h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 3px; }
.compete-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-weight: 800; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 600; color: var(--brand-2);
  transition: transform .2s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; font-size: 15px; color: var(--ink-soft); }

/* ---------- final cta ---------- */

.cta-final { padding: 0 0 96px; }
.cta-panel {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 70%);
  border-radius: 34px;
  padding: 66px 60px;
  color: #fff;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  box-shadow: 0 24px 60px rgba(0, 168, 111, .35);
}
.cta-panel::before {
  content: ''; position: absolute; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  top: -190px; right: 120px;
}
.cta-panel h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 12px; }
.cta-panel p { font-size: 16.5px; opacity: .92; margin-bottom: 30px; max-width: 480px; }
.cta-panel .badge-store { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 60, 40, .25); }
.cta-panel .badge-store .tiny { opacity: .6; }
.cta-mascot { position: relative; z-index: 1; width: 250px; margin-bottom: -66px; filter: drop-shadow(0 16px 26px rgba(0, 60, 40, .35)); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-bg);
  color: var(--navy-ink-soft);
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer-top {
  display: flex; gap: 40px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 28px;
}
.site-footer .brand-lockup { color: var(--navy-ink); }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 {
  color: var(--navy-ink); font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--navy-ink-soft); font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: var(--navy-ink); }

.footer-disclaimer { font-size: 12.5px; line-height: 1.65; max-width: 780px; margin-bottom: 20px; opacity: .8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { color: var(--navy-ink-soft); font-weight: 600; }
.footer-bottom a:hover { color: var(--navy-ink); }

/* ---------- legal pages ---------- */

.legal-hero {
  background: linear-gradient(160deg, #E4F7EE, var(--scaffold) 70%);
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--divider);
}
.legal-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.legal-hero .meta { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }

.legal-body { padding: 52px 0 90px; }
.legal-body .wrap { max-width: 820px; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 48px 52px;
}
.legal-card h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -.015em;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal-card h2:first-child { margin-top: 0; padding-top: 0; }
.legal-card p { margin-bottom: 14px; font-size: 15.5px; color: #3A3F4E; }
.legal-card ul { margin: 0 0 14px 22px; display: flex; flex-direction: column; gap: 7px; font-size: 15.5px; color: #3A3F4E; }
.legal-card strong { color: var(--ink); }
.legal-card .callout {
  background: #E4F7EE;
  border: 1px solid rgba(0, 168, 111, .25);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 8px 0 22px;
  font-size: 15px; color: #145C43; font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: auto; margin-bottom: 10px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mining-panel { grid-template-columns: 1fr; }
  .mining-copy { padding: 48px 32px 10px; }
  .mining-art { padding: 0; }
  .mining-art img { width: 260px; }
  .compete .wrap { grid-template-columns: 1fr; gap: 40px; }
  .compete-art { order: 2; }
  .cta-panel { grid-template-columns: 1fr; padding: 52px 36px; text-align: center; }
  .cta-panel p, .cta-panel h2 { margin-left: auto; margin-right: auto; }
  .cta-panel .store-badges { justify-content: center; }
  .cta-mascot { display: none; }
  .site-nav { display: none; }
  .legal-card { padding: 34px 26px; }
}

@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-mascot { width: 190px; right: -6px; }
  .fc-mine { left: -6px; }
  .fc-profit { left: 0; }
  .fc-air { right: -4px; }
  section { padding: 64px 0; }
}
