/* =========================================================
   upgraderpropromocode.com — design system
   Dark premium / CS2 skin-market aesthetic
   ========================================================= */

:root{
  --bg-0:#0a0b10;
  --bg-1:#111219;
  --bg-2:#161824;
  --bg-3:#1d2030;
  --line:#282c3e;
  --line-soft:#20222f;
  --text-0:#f2f3f8;
  --text-1:#c4c7d6;
  --text-2:#8b8fa3;
  --text-3:#5f6376;

  --accent-1:#ffb238;   /* gold — bonus / promo */
  --accent-1-dim:#a97a2c;
  --accent-2:#7c5cff;   /* violet — primary CTA gradient start */
  --accent-3:#28d4c4;   /* teal — success / trust */
  --danger:#ff5c72;

  --grad-cta: linear-gradient(135deg,#7c5cff 0%,#5b8dff 48%,#28d4c4 100%);
  --grad-gold: linear-gradient(135deg,#ffd479 0%,#ffb238 55%,#f08a2c 100%);
  --grad-card: linear-gradient(160deg, rgba(124,92,255,.14) 0%, rgba(22,24,36,.4) 60%);

  --radius-s:8px;
  --radius-m:14px;
  --radius-l:22px;
  --radius-pill:999px;

  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,.25), 0 0 40px rgba(124,92,255,.18);

  --container: 1180px;
  --header-h: 72px;
}

:root[data-theme="light"]{
  --bg-0:#f6f6fb;
  --bg-1:#ffffff;
  --bg-2:#f0f1f8;
  --bg-3:#e7e8f3;
  --line:#dcdeee;
  --line-soft:#e7e8f3;
  --text-0:#14151f;
  --text-1:#3c3e52;
  --text-2:#6a6d82;
  --text-3:#8b8ea3;
  --shadow-1: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px rgba(20,20,40,.08);
}

@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg-0:#f6f6fb;
    --bg-1:#ffffff;
    --bg-2:#f0f1f8;
    --bg-3:#e7e8f3;
    --line:#dcdeee;
    --line-soft:#e7e8f3;
    --text-0:#14151f;
    --text-1:#3c3e52;
    --text-2:#6a6d82;
    --text-3:#8b8ea3;
    --shadow-1: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px rgba(20,20,40,.08);
  }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 500px at 8% 0%, rgba(40,212,196,.10), transparent 55%),
    var(--bg-0);
  color:var(--text-1);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; }
li{ list-style:none; }
button{ font:inherit; }
h1,h2,h3,h4{ color:var(--text-0); line-height:1.22; margin:0 0 .5em; font-weight:800; letter-spacing:-.01em; }
p{ margin:0 0 1em; }
strong{ color:var(--text-0); font-weight:700;}

.container{ max-width:var(--container); margin-inline:auto; padding-inline:20px; }
.wrap-narrow{ max-width:820px; margin-inline:auto; }

section{ padding:64px 0; }
@media (max-width:720px){ section{ padding:44px 0; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--accent-1); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:16px; height:2px; background:var(--grad-gold); border-radius:2px; }

h1{ font-size:clamp(2.1rem, 4.4vw, 3.2rem); }
h2{ font-size:clamp(1.5rem, 3vw, 2.1rem); }
h3{ font-size:1.2rem; }

.lede{ font-size:1.1rem; color:var(--text-1); }

/* ---------- focus & a11y ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible{
  outline:2px solid var(--accent-3);
  outline-offset:3px;
  border-radius:6px;
}
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:200;
  background:var(--accent-2); color:#fff; padding:10px 16px; border-radius:var(--radius-s);
  transition:top .15s ease;
}
.skip-link:focus{ top:12px; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100; height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(10,11,16,.72);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
}
:root[data-theme="light"] .site-header,
@media (prefers-color-scheme: light){ .site-header{ background:rgba(255,255,255,.78); } }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; }

.brand{ display:flex; align-items:center; gap:10px; font-weight:800; color:var(--text-0); font-size:1.05rem; white-space:nowrap; }
.brand .mark{ width:34px; height:34px; flex:none; }
.brand .name b{ color:var(--accent-1); }

.nav-main{ display:flex; align-items:center; gap:26px; }
.nav-main a{ font-size:.93rem; font-weight:600; color:var(--text-2); padding:8px 2px; border-bottom:2px solid transparent; }
.nav-main a:hover{ color:var(--text-0); }

.header-cta{ display:flex; align-items:center; gap:14px; }

.menu-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius-s);
  width:42px; height:42px; align-items:center; justify-content:center; color:var(--text-0); cursor:pointer;
}
.menu-toggle svg{ width:20px; height:20px; }

@media (max-width:900px){
  .nav-main{
    position:fixed; inset:var(--header-h) 0 0 0; height:calc(100dvh - var(--header-h));
    background:var(--bg-1); flex-direction:column; align-items:stretch; gap:0;
    padding:10px 20px 30px; overflow-y:auto;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
    border-top:1px solid var(--line-soft);
  }
  .nav-main.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-main a{ padding:14px 4px; border-bottom:1px solid var(--line-soft); font-size:1.02rem; }
  .nav-main .btn{ margin-top:16px; }
  .menu-toggle{ display:inline-flex; }
  .header-cta .btn-text{ display:none; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:var(--radius-pill); font-weight:700; font-size:.96rem;
  border:1px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn-primary{
  background:var(--grad-cta); color:#0b0b12; box-shadow:0 8px 24px rgba(124,92,255,.35);
}
.btn-primary:hover{ filter:brightness(1.08); box-shadow:0 10px 30px rgba(124,92,255,.5); }
.btn-gold{
  background:var(--grad-gold); color:#241503; box-shadow:0 8px 24px rgba(255,178,56,.3);
}
.btn-gold:hover{ filter:brightness(1.06); }
.btn-ghost{
  background:rgba(255,255,255,.04); color:var(--text-0); border-color:var(--line);
}
.btn-ghost:hover{ background:rgba(255,255,255,.08); border-color:var(--accent-2); }
.btn-sm{ padding:9px 16px; font-size:.85rem; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:default; }

/* ---------- hero ---------- */
.hero{ padding:56px 0 20px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
@media (max-width:960px){ .hero-grid{ grid-template-columns:1fr; } }

.hero h1{ margin-bottom:16px; }
.hero .lede{ max-width:56ch; margin-bottom:26px; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:22px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:18px; color:var(--text-2); font-size:.85rem; }
.hero-trust li{ display:flex; align-items:center; gap:7px; }
.hero-trust svg{ width:16px; height:16px; color:var(--accent-3); flex:none; }

.promo-hero-card{
  position:relative; background:var(--grad-card); border:1px solid var(--line);
  border-radius:var(--radius-l); padding:28px; box-shadow:var(--shadow-glow);
}
.promo-hero-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:linear-gradient(135deg, rgba(255,178,56,.5), rgba(124,92,255,.15), transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;
}
.promo-hero-card .tag{
  display:inline-block; background:rgba(255,178,56,.14); color:var(--accent-1);
  font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 10px; border-radius:var(--radius-pill); margin-bottom:14px;
}
.promo-code-box{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--bg-0); border:1px dashed var(--accent-1-dim); border-radius:var(--radius-m);
  padding:16px 18px; margin:16px 0;
}
.promo-code-box .code{ font-family:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size:1.35rem; font-weight:800; color:var(--accent-1); letter-spacing:.03em; }
.copy-btn{
  display:inline-flex; align-items:center; gap:6px; background:var(--bg-3); color:var(--text-0);
  border:1px solid var(--line); border-radius:var(--radius-pill); padding:8px 14px; font-weight:700; font-size:.82rem; cursor:pointer;
}
.copy-btn svg{ width:15px; height:15px; }
.copy-btn.copied{ background:rgba(40,212,196,.18); border-color:var(--accent-3); color:var(--accent-3); }
.promo-bonus-line{ display:flex; align-items:baseline; gap:10px; margin-bottom:6px; }
.promo-bonus-line .pct{ font-size:2.1rem; font-weight:800; color:var(--text-0); }
.promo-hero-card .fine{ font-size:.78rem; color:var(--text-3); margin-top:14px; }

/* ---------- generic page hero (internal pages) ---------- */
.page-hero{ padding:44px 0 8px; }
.page-hero h1{ max-width:24ch; }
.page-hero .lede{ max-width:70ch; }

.breadcrumbs{ display:flex; flex-wrap:wrap; gap:6px; font-size:.82rem; color:var(--text-3); padding:16px 0 0; }
.breadcrumbs a{ color:var(--text-2); }
.breadcrumbs a:hover{ color:var(--accent-3); }
.breadcrumbs .sep{ opacity:.5; }
.breadcrumbs [aria-current]{ color:var(--text-1); }

/* ---------- section headings ---------- */
.section-head{ max-width:70ch; margin-bottom:32px; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- cards / grid ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){ .grid-3{ grid-template-columns:1fr 1fr; } .grid-2{grid-template-columns:1fr;} }
@media (max-width:620px){ .grid-3{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:24px; box-shadow:var(--shadow-1);
}
.card h3{ margin-bottom:8px; }
.card p:last-child{ margin-bottom:0; }
.icon-badge{
  width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(124,92,255,.14); color:var(--accent-2); margin-bottom:14px;
}
.icon-badge svg{ width:22px; height:22px; }

/* ---------- promo comparison table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-m); background:var(--bg-2); }
table{ width:100%; border-collapse:collapse; min-width:640px; }
th,td{ text-align:left; padding:16px 18px; border-bottom:1px solid var(--line-soft); font-size:.94rem; vertical-align:top; }
thead th{ color:var(--text-2); font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; background:var(--bg-3); }
tbody tr:last-child td{ border-bottom:none; }
tbody tr.is-recommended{ background:rgba(255,178,56,.06); }
td .code-chip{
  font-family:"SFMono-Regular", Consolas, monospace; font-weight:800; color:var(--accent-1);
  background:rgba(255,178,56,.1); border:1px solid rgba(255,178,56,.35); border-radius:var(--radius-s);
  padding:3px 9px; display:inline-block;
}
.badge-best{ font-size:.68rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#241503; background:var(--grad-gold); padding:3px 9px; border-radius:var(--radius-pill); margin-left:8px; }

/* ---------- steps ---------- */
.steps{ counter-reset:step; display:grid; gap:18px; }
.step{
  position:relative; display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:flex-start;
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-m); padding:20px 22px;
}
.step .num{
  counter-increment:step; content:counter(step);
  width:36px; height:36px; border-radius:50%; background:var(--grad-cta); color:#0b0b12;
  font-weight:800; display:flex; align-items:center; justify-content:center; flex:none;
}
.step .num::before{ content:counter(step); }
.step h3{ margin-bottom:4px; font-size:1.05rem; }
.step p{ margin-bottom:0; color:var(--text-1); }

/* ---------- calculator ---------- */
.calculator{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-l); padding:28px;
}
.calc-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:18px; }
@media (max-width:560px){ .calc-row{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:.82rem; font-weight:700; color:var(--text-2); margin-bottom:8px; }
.field input, .field select{
  width:100%; background:var(--bg-0); border:1px solid var(--line); color:var(--text-0);
  border-radius:var(--radius-s); padding:12px 14px; font-size:1rem;
}
.calc-result{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  background:var(--bg-0); border:1px dashed var(--line); border-radius:var(--radius-m); padding:18px 20px;
}
.calc-result .amount{ font-size:1.7rem; font-weight:800; color:var(--accent-3); }
.calc-result .label{ font-size:.82rem; color:var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list{ border-top:1px solid var(--line-soft); }
.faq-item{ border-bottom:1px solid var(--line-soft); }
.faq-item summary{
  cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 4px; font-weight:700; color:var(--text-0); font-size:1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item .plus{ flex:none; width:22px; height:22px; position:relative; }
.faq-item .plus::before, .faq-item .plus::after{
  content:""; position:absolute; background:var(--accent-2); border-radius:2px; transition:transform .18s ease;
}
.faq-item .plus::before{ inset:9px 0; height:2px; }
.faq-item .plus::after{ inset:0 9px; width:2px; }
.faq-item[open] .plus::after{ transform:rotate(90deg); opacity:0; }
.faq-item .a{ padding:0 4px 20px; color:var(--text-1); max-width:75ch; }

/* ---------- callouts / notices ---------- */
.callout{ border-radius:var(--radius-m); padding:18px 20px; border:1px solid var(--line); background:var(--bg-2); display:flex; gap:14px; }
.callout svg{ width:22px; height:22px; flex:none; margin-top:2px; }
.callout.warn{ border-color:rgba(255,92,114,.35); background:rgba(255,92,114,.06); }
.callout.warn svg{ color:var(--danger); }
.callout.info{ border-color:rgba(40,212,196,.35); background:rgba(40,212,196,.06); }
.callout.info svg{ color:var(--accent-3); }
.callout p:last-child{ margin-bottom:0; }

/* ---------- related / internal linking ---------- */
.related-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:860px){ .related-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .related-grid{ grid-template-columns:1fr; } }
.related-card{
  display:block; background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:20px; transition:border-color .15s ease, transform .15s ease;
}
.related-card:hover{ border-color:var(--accent-2); transform:translateY(-2px); }
.related-card .kicker{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--accent-3); margin-bottom:8px; display:block; }
.related-card h3{ font-size:1.02rem; margin-bottom:6px; }
.related-card p{ font-size:.88rem; color:var(--text-2); margin-bottom:0; }

/* ---------- final CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg, rgba(124,92,255,.16), rgba(40,212,196,.10));
  border:1px solid var(--line); border-radius:var(--radius-l); padding:40px; text-align:center;
}
.cta-band h2{ margin-bottom:10px; }
.cta-band .lede{ margin-inline:auto; margin-bottom:22px; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:90; display:none;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(10,11,16,.92); backdrop-filter:blur(10px); border-top:1px solid var(--line-soft);
}
.sticky-cta .row{ display:flex; align-items:center; gap:12px; }
.sticky-cta .info{ flex:1; min-width:0; }
.sticky-cta .info .code{ color:var(--accent-1); font-weight:800; font-family:monospace; }
.sticky-cta .info .desc{ font-size:.74rem; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:720px){ .sticky-cta{ display:block; } body{ padding-bottom:78px; } }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--line-soft); padding:52px 0 30px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:36px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--text-0); font-size:.82rem; text-transform:uppercase; letter-spacing:.07em; margin-bottom:14px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a{ color:var(--text-2); font-size:.92rem; }
.footer-grid a:hover{ color:var(--accent-3); }
.footer-brand p{ color:var(--text-2); font-size:.88rem; max-width:38ch; }
.footer-legal{
  border-top:1px solid var(--line-soft); padding-top:22px; display:flex; flex-wrap:wrap;
  gap:14px; justify-content:space-between; align-items:flex-start; color:var(--text-3); font-size:.78rem;
}
.footer-legal .disclaimer{ max-width:820px; }
.footer-legal .age{
  display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:var(--radius-pill);
  padding:5px 12px; flex:none;
}

/* ---------- utility ---------- */
.mt-0{ margin-top:0; }
.text-center{ text-align:center; }
.mx-auto{ margin-inline:auto; }
.small{ font-size:.85rem; color:var(--text-2); }
.divider{ height:1px; background:var(--line-soft); border:none; margin:40px 0; }
.badge-inline{ display:inline-flex; align-items:center; gap:6px; font-size:.78rem; color:var(--text-2); background:var(--bg-2); border:1px solid var(--line); padding:4px 10px; border-radius:var(--radius-pill); }

.toc{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-m); padding:20px 22px; }
.toc h2{ font-size:.95rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:12px; }
.toc ol{ counter-reset:toc; display:grid; gap:8px; }
.toc li{ counter-increment:toc; font-size:.92rem; }
.toc a{ color:var(--text-1); }
.toc a:hover{ color:var(--accent-3); }
.toc li::before{ content:counter(toc) ". "; color:var(--accent-1); font-weight:700; }

.prose h2{ margin-top:2.2em; }
.prose h3{ margin-top:1.6em; }
.prose ul, .prose ol{ padding-left:1.3em; margin-bottom:1.2em; }
.prose ul li{ list-style:disc; margin-bottom:.5em; }
.prose ol li{ list-style:decimal; margin-bottom:.5em; }
.prose a{ color:var(--accent-3); text-decoration:underline; text-underline-offset:3px; }
