/* ==========================================================================
   Sabexch — sabexch.live
   Brand palette sampled from the top-ranking Sabexch site
   Fonts: Sora (display) + Karla (body)
   ========================================================================== */

:root {
  /* Brand */
  --cream:        #FEF9E1;
  --cream-2:      #FBF1CE;
  --orange:       #F15808;   /* primary CTA */
  --orange-soft:  #EC8B5E;
  --burnt:        #D87141;
  --ink:          #141006;   /* near-black brown */
  --navy:         #202240;
  --slate:        #454F5E;   /* body text */
  --slate-soft:   #6B7480;
  --white:        #ffffff;
  --line:         #ECE3C4;
  --gold:         #E8B923;

  --ok:           #1f9d55;

  /* Type */
  --f-display: "Sora", "Segoe UI", Tahoma, sans-serif;
  --f-body:    "Karla", "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(20, 16, 6, .10);
  --shadow-sm: 0 6px 18px rgba(20, 16, 6, .08);
  --t: .22s ease;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--slate);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.05em; }

a { color: var(--orange); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--burnt); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 74px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--ink); color: #E7E2D3; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--cream2 { background: var(--cream-2); }

.eyebrow {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 12px;
  display: inline-block;
}

.lead { font-size: 1.16rem; color: var(--slate); max-width: 60ch; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(241,88,8,.32); }
.btn--primary:hover { background: #d94e05; color: var(--white); }
.btn--ghost { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2c2410; color: var(--white); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 249, 225, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--burnt));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--f-display);
  box-shadow: 0 6px 14px rgba(241,88,8,.35);
}
.brand .dot { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; color: var(--slate);
  padding: 9px 15px; border-radius: 999px; transition: background var(--t), color var(--t);
}
.nav-links a:hover, .nav-links a.active { background: var(--cream-2); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: var(--t); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(241,88,8,.14), transparent 60%),
    radial-gradient(700px 380px at -5% 20%, rgba(236,139,94,.16), transparent 55%),
    var(--cream);
  padding: 70px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 span { color: var(--orange); }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; font-family: var(--f-display); color: var(--slate);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero .pill b { color: var(--orange); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero-stats .lbl { font-size: .82rem; color: var(--slate-soft); }

.hero-card {
  background: var(--ink); border-radius: var(--radius-lg); padding: 26px;
  color: #EFE9D8; box-shadow: var(--shadow); position: relative;
}
.hero-card h3 { color: #fff; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .team { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-family: var(--f-display); }
.hero-card .odds { font-family: var(--f-display); font-weight: 700; background: var(--orange); color: #fff; padding: 6px 13px; border-radius: 8px; font-size: .95rem; }
.hero-card .odds.alt { background: rgba(255,255,255,.12); color: #fff; }
.hero-card .flag { width: 26px; height: 26px; border-radius: 50%; background: var(--burnt); display: grid; place-items: center; font-size: .7rem; color: #fff; font-weight: 700; }

/* ------------------------------ Cards / grids ------------------------------ */
.grid { display: grid; gap: 22px; }
.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(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream-2); color: var(--orange); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .97rem; color: var(--slate); }

/* Game cards */
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.game-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.game-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(20,16,6,.85));
  color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem;
}
.game-card.wide img { aspect-ratio: 16/9; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--f-display); font-weight: 700;
  display: grid; place-items: center;
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; font-size: 1.1rem; }
.step p { margin: 0; font-size: .95rem; }

/* ------------------------------ Tools ------------------------------ */
.tool {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.tool h3 { display: flex; align-items: center; gap: 10px; }
.tool .badge { font-size: .68rem; background: var(--cream-2); color: var(--burnt); padding: 4px 9px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,88,8,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-out {
  margin-top: 18px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.tool-out .k { font-size: .8rem; color: #C9C2AE; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; }
.tool-out .v { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--gold); }
.tool-note { font-size: .82rem; color: var(--slate-soft); margin: 10px 0 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-family: var(--f-display); font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); color: var(--slate); cursor: pointer; transition: var(--t); }
.chip.active, .chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ------------------------------ Auth pages ------------------------------ */
.auth-shell { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side {
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(241,88,8,.35), transparent 60%),
    var(--ink);
  color: #EDE7D6; padding: 56px 52px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: #DAD3C0; }
.auth-side li b { color: #fff; }
.auth-side .tick { color: var(--orange-soft); font-weight: 800; }
.auth-main { display: grid; place-items: center; padding: 48px 28px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 2rem; }
.notice {
  background: var(--cream-2); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 13px 16px; font-size: .88rem; color: var(--slate); margin-bottom: 22px;
}
.form-help { font-size: .85rem; text-align: center; margin-top: 16px; color: var(--slate-soft); }

/* ------------------------------ App page ------------------------------ */
.app-hero { background: linear-gradient(160deg, var(--ink), #241a0b); color: #EDE7D6; }
.app-hero h1, .app-hero h2 { color: #fff; }
.app-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 20px; transition: var(--t);
}
.store-badge:hover { color: #fff; border-color: var(--orange); transform: translateY(-2px); }
.store-badge .big { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.store-badge .small { font-size: .68rem; opacity: .8; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-family: var(--f-display); font-weight: 600; color: var(--ink); width: 42%; }

/* ------------------------------ FAQ ------------------------------ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; color: var(--ink); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); font-weight: 400; transition: var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; margin: 0; font-size: .96rem; }

/* ------------------------------ Legal / article ------------------------------ */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.article li { margin-bottom: .5em; }
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 50px 0; }
.page-head .crumbs { font-size: .85rem; color: var(--slate-soft); margin-bottom: 8px; font-family: var(--f-display); }
.page-head .crumbs a { color: var(--slate-soft); }
.updated { font-size: .82rem; color: var(--slate-soft); font-style: italic; }

/* ------------------------------ CTA band ------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--burnt));
  border-radius: var(--radius-lg); padding: 46px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 55ch; margin: 0 auto 22px; }
.cta-band .btn--dark { background: var(--ink); }
.cta-band .btn--light { background: #fff; color: var(--orange); }
.cta-band .btn--light:hover { background: var(--cream-2); color: var(--orange); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ink); color: #B9B2A0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: #B9B2A0; font-size: .92rem; }
.site-footer a:hover { color: var(--orange-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: #9E9788; max-width: 34ch; }
.age-badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #43392a; border-radius: 999px; padding: 6px 13px; font-size: .8rem; font-family: var(--f-display); font-weight: 600; color: #E0D9C6; margin-top: 16px; }
.age-badge .n { background: var(--orange); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: .72rem; }
.footer-bottom { border-top: 1px solid #2c2418; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8B8474; }
.footer-bottom .legal-note { max-width: 70ch; }

/* ------------------------------ Utility ------------------------------ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 14px 22px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 32px 22px; }
  .tool-out .v { font-size: 1.35rem; }
}
