/* ==========================================================================
   Khiladi Adda — khiladiadda.live
   Brand palette taken from the official Khiladi Adda logo (red / black / white)
   Fonts: Rajdhani (display) + Barlow (body)
   ========================================================================== */

:root {
  --red: #e80b26;
  --red-bright: #ff2440;
  --red-dark: #b00016;
  --ink: #0b0b0d;
  --charcoal: #141418;
  --panel: #1b1b21;
  --panel-2: #23232b;
  --line: rgba(255, 255, 255, 0.09);
  --white: #f6f6f8;
  --muted: #a2a2ad;
  --muted-2: #757580;
  --gold: #ffb703;
  --green: #22c55e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 12px 30px rgba(232, 11, 38, 0.35);
  --wrap: 1160px;
  --font-display: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-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: var(--ink);
  color: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--red-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .4px;
}

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

.section { padding: 74px 0; }
.section--tight { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, var(--charcoal), var(--ink)); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-bright);
  margin-bottom: 12px;
  display: inline-block;
}

h1.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2.block-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem; letter-spacing: .6px;
  text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(232, 11, 38, .5); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: .5px; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand span b { color: var(--red-bright); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--white); font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; padding: 9px 15px; border-radius: 8px; letter-spacing: .3px;
}
.nav-links a:hover, .nav-links a.active { background: var(--panel-2); color: var(--red-bright); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(232, 11, 38, .28), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, rgba(232, 11, 38, .12), transparent 55%),
    linear-gradient(180deg, #100c0e, var(--ink));
  padding: 84px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 18px; }
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero p { color: var(--muted); font-size: 1.14rem; margin-bottom: 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-family: var(--font-display); font-size: 1.75rem; color: #fff; line-height: 1; }
.hero-badge span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-art {
  background: linear-gradient(160deg, var(--panel), var(--charcoal));
  border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow); position: relative;
}
.hero-art img { border-radius: 12px; }
.hero-art .tag {
  position: absolute; top: -14px; right: 22px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: 6px 16px; border-radius: 30px; font-size: .9rem; letter-spacing: 1px;
  box-shadow: var(--shadow-red);
}

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

.card {
  background: linear-gradient(180deg, var(--panel), var(--charcoal));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232, 11, 38, .45); }
.card h3 { font-size: 1.3rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 15px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(232, 11, 38, .14); border: 1px solid rgba(232, 11, 38, .3);
}

.game-card { overflow: hidden; padding: 0; }
.game-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.game-card .body { padding: 16px 18px 20px; }
.game-card .body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.game-card .body span { color: var(--red-bright); font-size: .85rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  min-width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff;
}
.step h3 { font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Feature list ---------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: "✚"; color: var(--red-bright); font-weight: 700; margin-top: 1px; }
.ticks li b { color: var(--white); }

/* ---------- Tools ---------- */
.tool {
  background: linear-gradient(180deg, var(--panel), var(--charcoal));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.tool h3 { font-size: 1.4rem; margin-bottom: 6px; }
.tool .hint { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; margin-bottom: 7px; letter-spacing: .4px; }
.field input, .field select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: #fff;
  border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); }
.tool-result {
  margin-top: 18px; padding: 18px; border-radius: var(--radius-sm);
  background: rgba(232, 11, 38, .1); border: 1px solid rgba(232, 11, 38, .3);
  font-family: var(--font-display); font-size: 1.1rem; min-height: 58px; display: flex; align-items: center;
}
.tool-result b { color: var(--red-bright); font-size: 1.35rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.auth-card {
  background: linear-gradient(180deg, var(--panel), var(--charcoal));
  border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); margin-bottom: 22px; font-size: .97rem; }
.note { font-size: .86rem; color: var(--muted-2); margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); margin: 20px 0; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--panel); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-q::after { content: "+"; color: var(--red-bright); font-size: 1.5rem; line-height: 1; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Legal / article ---------- */
.article { max-width: 860px; }
.article h2 { font-size: 1.5rem; margin: 30px 0 12px; }
.article h3 { font-size: 1.2rem; margin: 22px 0 9px; }
.article p { color: var(--muted); margin-bottom: 14px; }
.article ul, .article ol { color: var(--muted); margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--white); }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.toc h4 { font-family: var(--font-display); margin-bottom: 10px; }
.toc ul { list-style: none; display: grid; gap: 7px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--red-bright); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(232, 11, 38, .16), rgba(20, 20, 24, .4));
  border: 1px solid rgba(232, 11, 38, .3); border-radius: 20px; padding: 46px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background:
    radial-gradient(900px 360px at 85% -20%, rgba(232, 11, 38, .22), transparent 60%),
    linear-gradient(180deg, #100c0e, var(--ink));
  padding: 60px 0 44px; border-bottom: 1px solid var(--line);
}
.breadcrumb { color: var(--muted-2); font-size: .9rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--red-bright); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 15px; color: #fff; letter-spacing: .5px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .95rem; }
.footer-col a:hover { color: var(--red-bright); }
.footer-note { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .86rem; }
.age-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--red); color: var(--red-bright); border-radius: 30px; padding: 4px 12px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.disclaimer-strip { background: var(--ink); border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted-2); font-size: .82rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .auth-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--charcoal); border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    gap: 4px; transform: translateY(-140%); transition: transform .3s ease; z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 22px; }
  .hero-badges { gap: 16px; }
}
