:root{
  /* ONE solid background */
  --bg:#070E24;        /* deep blue */
  --bgSoft:#0A1333;    /* slightly lighter (used only for header, not body) */

  --card:#0B1638;      /* cards */
  --card2:#09122D;     /* table wrap */
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);

  --accent:#7C8CFF;
  --accent2:#22D3EE;

  --border:rgba(255,255,255,.10);
  --radius:18px;

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);

  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font:16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);   /* <- no gradients, no shifting */
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* Header */
header{
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--border);
  background: rgba(10,19,51,.96); /* solid blue header */
}
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0; gap:16px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:90px;width:auto;display:block}

.navlinks{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.navlinks a{
  color:var(--muted);
  font-weight:750;
  padding:10px 10px;
  border-radius:999px;
}
.navlinks a:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
}
.navlinks a.cta{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#070E24;
  padding:10px 14px;
}
.navlinks a.cta:hover{filter:brightness(1.05)}

/* Hero */
.hero{padding:78px 0 54px}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(34px,4.1vw,54px);
  line-height:1.08;
  letter-spacing:-.6px;
}
.hero h1 .grad{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{margin:0;max-width:760px;color:var(--muted);font-size:17px}
.hero .cta{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  font-weight:850;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#070E24;
}
.btn.ghost{background: rgba(255,255,255,.03)}

/* Sections */
.section{padding:54px 0}
.section h2{margin:0 0 10px;font-size:26px;letter-spacing:-.2px}
.section p.lead{margin:0;color:var(--muted);max-width:860px}

/* Grid + Cards */
.grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .grid{grid-template-columns:1fr}
  .brand img{height:56px}
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 8px;font-size:15.5px}
.card p{margin:0;color:var(--muted);font-size:14.3px;line-height:1.6}

/* Badges */
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:850;
  font-size:12px;
}

/* Footer */
footer{
  border-top:1px solid var(--border);
  padding:30px 0 46px;
  color:var(--muted);
  font-size:14px;
  background: rgba(0,0,0,.08); /* subtle, still same blue feel */
}
footer .container{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
}
footer a{color:var(--muted);font-weight:750}
footer a:hover{color:var(--text)}

/* Rules page */
.rules-hero{padding:46px 0 14px}
.rules-hero h1{margin:0 0 10px;font-size:34px;letter-spacing:-.35px}
.rules-hero p{margin:10px 0 0;color:var(--muted);max-width:920px}

.rules-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  padding:12px 0 58px;
}
.rule-section{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.rule-section .inner{padding:20px}
.kicker{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(255,255,255,.55);
  font-weight:900;
}
.rule-section h2{margin:8px 0 10px;font-size:20px}
.rule-section h3{margin:18px 0 8px;font-size:16px}
.rule-section p{color:var(--muted);margin:10px 0;line-height:1.7}
.rule-section ul{margin:10px 0 0;padding-left:20px}
.rule-section li{color:var(--muted);margin:6px 0;line-height:1.65}
hr.sep{border:0;border-top:1px solid var(--border);margin:16px 0}

.note{
  background: rgba(124,140,255,.14);
  border:1px solid rgba(124,140,255,.28);
  color: rgba(255,255,255,.86);
  padding:14px 16px;
  border-radius:14px;
  line-height:1.65;
  margin-top:14px;
}

/* Tables */
.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
  background: var(--card2);
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:640px;
}
th, td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
th{
  text-align:left;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size:12.5px;
  letter-spacing:.02em;
}
td{color:var(--muted);font-size:14px}
tr:last-child td{border-bottom:0}

::selection{background: rgba(124,140,255,.30)}

@media (prefers-reduced-motion: reduce){
  .btn{transition:none}
}
