/* ==========================================================================
   Starexch — Star Gold on Dark Theme
   Fonts: Kanit (headings) + Josefin Sans (body)
   ========================================================================== */

:root {
  --primary: #ffd700;      /* star gold */
  --accent: #ffa500;       /* orange   */
  --bg-body: #2b2f35;      /* dark charcoal */
  --bg-card: #33383f;
  --bg-elev: #3a4047;
  --border: #3d4249;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --gold-grad: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --shadow-gold: 0 10px 30px -10px rgba(255, 215, 0, 0.35);
  --shadow-soft: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --header-h: 74px;
  --font-head: 'Kanit', 'Segoe UI', sans-serif;
  --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient star field background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 82% -8%, rgba(255, 215, 0, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 10% 110%, rgba(255, 165, 0, 0.07), transparent 55%),
    var(--bg-body);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.3px 1.3px at 65% 15%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.8px 1.8px at 85% 60%, rgba(255,215,0,0.55), transparent),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(255,255,255,0.40), transparent),
    radial-gradient(1.5px 1.5px at 12% 70%, rgba(255,215,0,0.40), transparent),
    radial-gradient(1.2px 1.2px at 55% 50%, rgba(255,255,255,0.35), transparent);
  background-repeat: repeat;
  background-size: 620px 620px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

section { padding: 68px 0; }
.section-tight { padding: 44px 0; }

/* ---------- Decorative star ---------- */
.star-ico { display: inline-block; width: 1em; height: 1em; fill: var(--primary); vertical-align: -0.12em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-grad); color: #21242a; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255,215,0,.5); color: #21242a; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(255,215,0,.10); transform: translateY(-2px); color: var(--primary); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #08341a; }
.btn-wa:hover { background: #2ee574; transform: translateY(-2px); color: #08341a; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38, 42, 48, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.6px;
  color: var(--text);
  text-transform: uppercase;
}
.brand-name b { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
  padding: 9px 15px;
  border-radius: 8px;
  transition: all .18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(255,215,0,.08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,215,0,.08);
  border: 1px solid rgba(255,215,0,.25);
  padding: 7px 15px; border-radius: 40px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: 18px; }
.hero h1 .grad { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--text-secondary); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.9rem; color: var(--primary); display: block; line-height: 1; }
.hero-stats .stat span { font-size: .9rem; color: var(--text-secondary); }

.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,215,0,.22), transparent 65%);
}
.hero-card h3 { font-size: 1.15rem; margin-bottom: 6px; position: relative; }
.hero-card .muted { color: var(--text-secondary); font-size: .92rem; margin-bottom: 18px; position: relative; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); position: relative; }
.mini-row:first-of-type { border-top: none; }
.mini-row .odds { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.pill { font-size: .78rem; padding: 3px 10px; border-radius: 20px; background: rgba(255,215,0,.12); color: var(--primary); font-family: var(--font-head); }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.sec-head p { color: var(--text-secondary); font-size: 1.05rem; }
.text-gold { color: var(--primary); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,215,0,.45); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,215,0,.10); border: 1px solid rgba(255,215,0,.25);
}
.card .ico svg { width: 26px; height: 26px; fill: var(--primary); }
.card h3 { font-size: 1.24rem; margin-bottom: 9px; }
.card p { color: var(--text-secondary); font-size: .98rem; }

/* ---------- Media / game cards ---------- */
.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.media-card:hover { transform: translateY(-5px); border-color: rgba(255,215,0,.45); box-shadow: var(--shadow-soft); }
.media-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-card:hover .thumb img { transform: scale(1.07); }
.media-card .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(43,47,53,.85), transparent 55%); }
.media-card .body { padding: 18px 20px 22px; }
.media-card .body h3 { font-size: 1.14rem; margin-bottom: 6px; }
.media-card .body p { color: var(--text-secondary); font-size: .92rem; }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-size: .74rem; letter-spacing: .6px;
  background: var(--gold-grad); color: #21242a; padding: 4px 11px; border-radius: 20px; font-weight: 600;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; position: relative; }
.step .num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold-grad); color: #21242a; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { color: var(--text-secondary); font-size: .93rem; }

/* ---------- Tools ---------- */
.tool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.tool-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tool-head .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,215,0,.10); border: 1px solid rgba(255,215,0,.25); }
.tool-head .ico svg { width: 24px; height: 24px; fill: var(--primary); }
.tool-head h3 { font-size: 1.3rem; }
.tool > p.tool-sub { color: var(--text-secondary); font-size: .96rem; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; letter-spacing: .3px; margin-bottom: 8px; color: var(--text); }
.field .hint { color: var(--text-secondary); font-size: .82rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,215,0,.15); }
input::placeholder { color: #6b7280; }

.slider-row { display: flex; align-items: center; gap: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: var(--border); flex: 1; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-grad); cursor: pointer; box-shadow: 0 0 0 4px rgba(255,215,0,.18); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: #ffd700; cursor: pointer; }
.slider-val { font-family: var(--font-head); font-weight: 700; color: var(--primary); min-width: 54px; text-align: right; }

.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { display: none; }
.stars-input label { cursor: pointer; font-size: 1.7rem; color: var(--border); transition: color .15s; line-height: 1; }
.stars-input label:hover, .stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: var(--primary); }

.tool-result {
  margin-top: 22px; padding: 22px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,215,0,.09), rgba(255,165,0,.04));
  border: 1px solid rgba(255,215,0,.28);
}
.tool-result .big { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--primary); line-height: 1; }
.tool-result .verdict { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.verdict.good { color: #34d399; }
.verdict.bad { color: #f87171; }
.verdict.neutral { color: var(--primary); }
.star-display { color: var(--primary); font-size: 1.7rem; letter-spacing: 3px; }
.star-display .empty { color: var(--border); }

/* ---------- Memory game ---------- */
.mem-toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.mem-toolbar .stat { font-family: var(--font-head); font-weight: 600; }
.mem-toolbar .stat b { color: var(--primary); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 480px; }
.mem-card { aspect-ratio: 3/4; perspective: 700px; cursor: pointer; }
.mem-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.mem-card.flip .mem-inner, .mem-card.matched .mem-inner { transform: rotateY(180deg); }
.mem-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); }
.mem-front { background: linear-gradient(160deg, var(--bg-elev), var(--bg-card)); }
.mem-front svg { width: 40%; height: 40%; fill: rgba(255,215,0,.35); }
.mem-back { background: linear-gradient(160deg, rgba(255,215,0,.14), rgba(255,165,0,.06)); border-color: rgba(255,215,0,.4); transform: rotateY(180deg); font-size: 2rem; }
.mem-card.matched .mem-back { border-color: #34d399; box-shadow: 0 0 0 2px rgba(52,211,153,.4) inset; }
.mem-win { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); color: #34d399; font-family: var(--font-head); font-weight: 600; display: none; }
.mem-win.show { display: block; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 1.06rem; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q:hover { color: var(--primary); }
.faq-q .chev { transition: transform .25s; color: var(--primary); flex-shrink: 0; font-size: 1.3rem; line-height: 1; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-secondary); }
.faq-item.open .faq-a { max-height: 520px; }

/* ---------- Prose (content pages) ---------- */
.prose h2 { font-size: 1.7rem; margin: 34px 0 14px; padding-top: 6px; }
.prose h3 { font-size: 1.28rem; margin: 26px 0 10px; color: var(--primary); }
.prose p { margin-bottom: 16px; color: #d5d8dd; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #d5d8dd; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.prose th { background: var(--bg-elev); font-family: var(--font-head); color: var(--primary); font-weight: 600; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,.02); }

.page-hero { padding: 60px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .86rem; color: var(--text-secondary); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Callout / notice ---------- */
.callout { border-left: 3px solid var(--primary); background: rgba(255,215,0,.06); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0; }
.callout.warn { border-left-color: var(--accent); background: rgba(255,165,0,.07); }
.notice-18 { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--accent); border: 1px solid rgba(255,165,0,.4); border-radius: 40px; padding: 5px 14px; }

/* ---------- Auth (login/signup) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 50px 0 70px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-soft); max-width: 460px; width: 100%; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 24px; font-size: .96rem; }
.auth-side h2 { font-size: clamp(1.7rem,3.5vw,2.4rem); margin-bottom: 16px; }
.auth-side p { color: var(--text-secondary); margin-bottom: 22px; }
.auth-bullets { list-style: none; display: grid; gap: 14px; }
.auth-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.auth-bullets .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,215,0,.12); display: grid; place-items: center; }
.auth-bullets .tick svg { width: 15px; height: 15px; fill: var(--primary); }
.auth-bullets b { font-family: var(--font-head); font-weight: 600; display: block; font-size: .98rem; }
.auth-bullets span { color: var(--text-secondary); font-size: .9rem; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: .9rem; color: var(--text-secondary); }
.check-row input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.auth-alt { text-align: center; margin-top: 18px; color: var(--text-secondary); font-size: .92rem; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary); cursor: pointer; font-family: var(--font-head); font-size: .82rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(255,165,0,.06)); border: 1px solid rgba(255,215,0,.28); border-radius: 22px; padding: 46px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem,3.5vw,2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #23272c; border-top: 1px solid var(--border); padding: 54px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 38px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-secondary); font-size: .93rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-head); font-size: .95rem; letter-spacing: .6px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: .93rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom p { color: var(--text-secondary); font-size: .86rem; }
.footer-disclaimer { color: #7a828c; font-size: .82rem; margin-top: 14px; line-height: 1.6; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.hide { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { font-family: var(--font-head); font-size: .84rem; padding: 7px 14px; border-radius: 30px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-secondary); }
.chip.gold { color: var(--primary); border-color: rgba(255,215,0,.35); background: rgba(255,215,0,.07); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { order: -1; }
  .auth-card { max-width: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #262a30; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow-soft);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-desktop { display: none; }
  section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .cta-band { padding: 34px 22px; }
  .tool { padding: 22px; }
  .form-row { flex-direction: column; gap: 0; }
  .mem-grid { max-width: 100%; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-name { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
