:root {
  --green: #58cc02;
  --green-dark: #46a302;
  --green-deep: #3c8a00;
  --green-soft: #eaf7dc;
  --green-wash: #f3faea;
  --ink: #2b2b2b;
  --muted: #6b6862;
  --muted-soft: #8a8780;
  --line: #e9e9e9;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --display: "Baloo 2", sans-serif, var(--emoji);
  --text: "Nunito", sans-serif, var(--emoji);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  overflow-x: hidden;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-deep); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatySlow { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-11px) rotate(-4deg); } }

.shell { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------------- nav ---------------- */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 2px solid #f0efe9; }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 800; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 11px 22px; border-radius: 15px; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); font-family: var(--display); font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .02em; transition: transform .15s ease; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); color: #fff; }

/* ---------------- hero ---------------- */
.hero { position: relative; background: var(--green-wash); overflow: hidden; }
.hero::before { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(135deg, rgba(88, 204, 2, .05) 0 14px, transparent 14px 28px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 92px; }

.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.pill-hero { padding: 7px 14px; background: #fff; border: 2px solid #cfebae; color: var(--green-dark); }

.hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: -.02em; margin-top: 22px; text-wrap: balance; }
.hero-lead { max-width: 500px; margin-top: 22px; font-size: 19px; font-weight: 600; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 15px; margin-top: 34px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; transition: transform .15s ease, border-color .15s ease; }
.btn-primary { gap: 10px; padding: 17px 34px; border-radius: 18px; background: var(--green); box-shadow: 0 6px 0 var(--green-dark); font-size: 19px; color: #fff; letter-spacing: .03em; }
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-quiet { gap: 9px; padding: 15px 28px; border-radius: 18px; background: #fff; border: 2px solid #e5e5e5; border-bottom-width: 5px; font-size: 17px; color: #3c3c3c; }
.btn-quiet:hover { border-color: #dcdcdc; color: #3c3c3c; }

/* ---------------- phone mock ---------------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.chip { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 16px; background: #fff; border: 2px solid; border-bottom-width: 4px; }
.chip-label { font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.chip-value { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1; margin-top: 2px; }
.chip-streak { top: 8px; left: -8px; border-color: #ffe6be; animation: floaty 4s ease-in-out infinite; }
.chip-streak .chip-label { color: #c98a00; }
.chip-streak .chip-value { color: #e58200; }
.chip-score { bottom: 36px; left: -26px; border-color: #cfebae; animation: floaty 4.6s ease-in-out .6s infinite; }
.chip-score .chip-label { color: #5a8a16; }
.chip-score .chip-value { color: var(--green-dark); }
.chip-bot { top: 74px; right: -14px; display: flex; width: 78px; height: 78px; align-items: center; justify-content: center; border-radius: 22px; border: 3px solid #ffb800; border-bottom-width: 3px; padding: 0; animation: floatySlow 5s ease-in-out infinite; }

.phone { position: relative; width: 322px; padding: 13px; border-radius: 54px; background: #1f1f1f; box-shadow: 0 26px 60px rgba(70, 110, 20, .24); }
.phone-ear { position: absolute; top: 2px; left: 50%; z-index: 6; width: 120px; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #1f1f1f; }
.screen { position: relative; border-radius: 42px; background: #fbfbfc; border: 2px solid #000; overflow: hidden; }
.island { position: absolute; top: 12px; left: 50%; z-index: 6; width: 98px; height: 28px; transform: translateX(-50%); border-radius: 16px; background: #000; }
/* 20px gutters, not the mock's 26px — at 26px the 98px island clips the signal bars. */
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px 6px; font-size: 14px; font-weight: 800; color: #1f1f1f; }
.statusbar-right { display: flex; align-items: center; gap: 7px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { width: 3px; background: #1f1f1f; border-radius: 1px; }
.battery { display: flex; align-items: center; gap: 2px; }
.battery-shell { width: 24px; height: 12px; padding: 1.5px; border: 1.5px solid #1f1f1f; border-radius: 3.5px; }
.battery-fill { width: 78%; height: 100%; background: var(--green); border-radius: 1.5px; }
.battery-tip { width: 2px; height: 5px; background: #1f1f1f; border-radius: 0 1px 1px 0; }

.screen-head { display: flex; align-items: center; gap: 9px; padding: 8px 18px 12px; }
.screen-head-icon { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 11px; background: var(--green); box-shadow: 0 3px 0 var(--green-dark); font-family: var(--display); font-size: 17px; font-weight: 800; color: #fff; }
.screen-head h3 { font-size: 21px; }
.balance { margin: 0 16px 12px; padding: 13px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 5px 0 var(--green-deep); }
.balance-label { font-size: 9px; font-weight: 800; color: rgba(255, 255, 255, .82); letter-spacing: .06em; }
.balance-value { font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff; line-height: 1.05; margin-top: 2px; }
.balance-value span { font-size: 14px; opacity: .85; }
.filters { display: flex; gap: 7px; padding: 0 16px 12px; }
.filter { border-radius: 11px; font-size: 11px; font-weight: 800; }
.filter-on { padding: 6px 13px; background: #3c3c3c; color: #fff; }
.filter-off { padding: 4px 12px; background: #fff; border: 2px solid var(--line); color: #7b8189; font-weight: 700; }
.filter-legendary { padding: 4px 11px; background: #fff; border: 2px solid #ffe6ae; color: #ffb800; }
.squad { display: flex; flex-direction: column; gap: 11px; padding: 0 16px 16px; }
.squad-row { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 18px; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; }
.squad-avatar { flex: none; display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; border: 2.5px solid; }
.squad-meta { flex: 1; min-width: 0; }
.squad-tag { font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.squad-name { font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.squad-acc { flex: none; text-align: right; }
.squad-acc b { display: block; font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--green-dark); line-height: 1; }
.squad-acc span { font-size: 8px; font-weight: 800; color: #b6bcc2; letter-spacing: .05em; }
.home-bar { display: flex; justify-content: center; padding: 2px 0 12px; }
.home-bar i { width: 110px; height: 5px; border-radius: 3px; background: #1f1f1f; opacity: .14; }

/* ---------------- stats strip ---------------- */
.stats { background: var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.stats-grid div { text-align: center; }
.stats-grid b { display: block; font-family: var(--display); font-size: 42px; font-weight: 800; color: #fff; line-height: 1; }
.stats-grid span { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }

/* ---------------- section headings ---------------- */
.section-head { text-align: center; padding-bottom: 20px; }
.section-head h2 { font-size: 46px; margin-top: 16px; letter-spacing: -.01em; }
.section-head p { max-width: 560px; margin: 12px auto 0; font-size: 18px; font-weight: 600; color: var(--muted-soft); text-wrap: pretty; }
.pill-flat { padding: 6px 13px; border-radius: 11px; letter-spacing: .07em; }
.pill-roster { background: var(--green-soft); color: var(--green-dark); }
.pill-how { background: #e3f4fe; color: #1899d6; }
.pill-ranks { background: #fff6e9; color: #c98a00; }

/* ---------------- roster ---------------- */
.roster-head { padding-top: 88px; }
.roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 36px; }
.bot-card { border-radius: 26px; background: #fff; border: 2px solid var(--line); border-bottom-width: 6px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.bot-card:hover { transform: translateY(-4px); border-color: #dcdcdc; }
.bot-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 18px 14px 16px; border-bottom: 2px solid rgba(0, 0, 0, .05); }
.bot-rarity { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 8px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.bot-level { position: absolute; top: 12px; right: 12px; padding: 1px 9px; border-radius: 10px; background: #fff; border: 2px solid; font-family: var(--display); font-size: 13px; font-weight: 800; }
.bot-avatar { display: flex; width: 96px; height: 96px; margin-top: 10px; align-items: center; justify-content: center; border-radius: 26px; background: #fff; border: 3px solid; }
.bot-role { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #8a9099; }
.bot-body { display: flex; flex-direction: column; gap: 12px; padding: 15px 15px 17px; }
.bot-name { min-height: 40px; font-size: 18px; line-height: 1.12; }
.bot-kpis { display: flex; gap: 8px; }
.kpi { flex: 1; padding: 9px 10px; border-radius: 12px; background: #f7f8fa; }
.kpi b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1; }
.kpi-pnl b { color: var(--green-dark); }
.kpi span { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 800; color: #9aa0a6; letter-spacing: .05em; }
.bot-foot { display: flex; align-items: center; justify-content: space-between; }
.bot-streak { font-size: 12px; font-weight: 800; color: #e58200; }
.bot-risk { padding: 3px 9px; border-radius: 8px; font-size: 10px; font-weight: 800; }

/* ---------------- how it works ---------------- */
.how-head { padding-top: 96px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; padding-top: 44px; }
.step { position: relative; padding: 30px 26px; border-radius: 26px; background: #fff; border: 2px solid #eef0f2; border-bottom-width: 6px; text-align: center; }
.step-icon { display: flex; width: 70px; height: 70px; margin: 0 auto; align-items: center; justify-content: center; border-radius: 22px; font-size: 34px; }
.step-n { position: absolute; top: 22px; right: 24px; font-family: var(--display); font-size: 44px; font-weight: 800; }
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 9px; font-size: 15px; font-weight: 600; color: var(--muted-soft); line-height: 1.5; text-wrap: pretty; }

/* ---------------- ranks ---------------- */
.ranks-head { padding-top: 96px; }
.ranks-head p { max-width: 540px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 36px; }
.tier { padding: 24px 22px; border-radius: 24px; border: 2px solid; border-bottom-width: 6px; }
.tier-name { display: inline-block; padding: 5px 12px; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.pips { display: flex; gap: 6px; margin-top: 16px; }
.pips i { width: 22px; height: 8px; border-radius: 4px; }
.tier p { margin-top: 16px; font-size: 15px; font-weight: 600; color: #5b5852; line-height: 1.5; text-wrap: pretty; }

/* ---------------- final cta ---------------- */
.cta-shell { margin-top: 110px; padding-bottom: 100px; }
.cta { position: relative; padding: 64px 48px; border-radius: 40px; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 0 var(--green-deep); text-align: center; overflow: hidden; }
.cta::before { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 16px, transparent 16px 32px); }
.cta-inner { position: relative; }
.cta-badge { display: flex; width: 84px; height: 84px; margin: 0 auto 20px; align-items: center; justify-content: center; border-radius: 26px; background: rgba(255, 255, 255, .16); border: 3px solid rgba(255, 255, 255, .4); animation: floaty 4s ease-in-out infinite; }
.cta h2 { font-size: 44px; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.cta p { max-width: 480px; margin: 12px auto 0; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.btn-invert { gap: 10px; margin-top: 30px; padding: 17px 38px; border-radius: 18px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); font-size: 19px; color: var(--green-dark); letter-spacing: .02em; }
.btn-invert:hover { transform: translateY(-2px); color: var(--green-dark); }

/* ---------------- footer ---------------- */
.footer { background: #22252b; }
.footer-inner { padding-top: 52px; padding-bottom: 40px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand .brand-mark { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 3px 0 var(--green-deep); }
.footer-brand .brand { gap: 11px; }
.footer-brand .brand-name { font-size: 22px; color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; font-weight: 600; color: #9aa0a6; line-height: 1.55; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-family: var(--text); font-size: 12px; font-weight: 800; color: #6b7078; letter-spacing: .08em; }
.footer-col a { font-size: 14px; font-weight: 700; color: #c8ccd2; }
.footer-col a:hover { color: #fff; }
.footer-rule { height: 1px; margin: 34px 0 22px; background: #33373f; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; font-weight: 600; color: #7b8189; }
.footer-bottom span { font-size: 13px; font-weight: 700; color: #7b8189; }

/* ---------------- responsive (widest to narrowest) ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
  .hero h1 { font-size: 52px; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 14px; }
  .nav-cta { padding: 10px 16px; }
}

@media (max-width: 760px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 21px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .btn-primary { padding: 15px 26px; font-size: 17px; }
  .btn-quiet { padding: 13px 22px; font-size: 16px; }
  .stats-grid b { font-size: 34px; }
  .stats-grid span { font-size: 11px; }
  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 16px; }
  .roster-head { padding-top: 64px; }
  .how-head, .ranks-head { padding-top: 72px; }
  .roster-grid { grid-template-columns: 1fr; gap: 16px; }
  .tiers { grid-template-columns: 1fr; }
  .cta-shell { margin-top: 72px; padding-bottom: 72px; }
  .cta { padding: 44px 24px; border-radius: 30px; }
  .cta h2 { font-size: 32px; }
  .cta p { font-size: 16px; }
  .footer-cols { gap: 40px; }

  /* No room to flank a 322px phone with chips — shrink it and tuck the chips
     onto its corners instead, with headroom above for the streak chip. */
  .phone-wrap { padding: 42px 28px 0; }
  .phone { width: 100%; max-width: 292px; padding: 10px; border-radius: 44px; }
  .screen { border-radius: 34px; }
  .phone-ear { width: 100px; }
  /* Narrower screen: shrink the island and gutters so it clears the status icons. */
  .island { width: 72px; height: 24px; }
  .statusbar { padding: 15px 18px 6px; font-size: 13px; }
  .screen-head { padding: 8px 14px 12px; }
  .balance, .filters, .squad { margin-left: 0; margin-right: 0; padding-left: 12px; padding-right: 12px; }
  .balance { margin: 0 12px 12px; padding: 13px 16px; }
  .chip { padding: 8px 12px; }
  .chip-value { font-size: 18px; }
  .chip-streak { top: 0; left: 0; }
  .chip-score { bottom: 8px; left: 0; }
  .chip-bot { top: 62px; right: 0; width: 64px; height: 64px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip-streak, .chip-score, .chip-bot, .cta-badge { animation: none; }
  .btn, .bot-card, .nav-cta { transition: none; }
}
