:root{
  --bg:#0b1220;
  --text:#e9eefc;
  --muted:#b8c3df;
  --line:rgba(255,255,255,.12);
  --shadow: 0 16px 50px rgba(0,0,0,.38);
  --radius:22px;

  /* “auto-size” width rules */
  --max: min(1480px, calc(100vw - 64px));
  --pad: clamp(18px, 2.2vw, 34px);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;

  /* Auto-config background that fills big screens */
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(125,211,252,.22), transparent 60%),
    radial-gradient(1000px 700px at 85% 0%, rgba(167,243,208,.18), transparent 55%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.95}

/* Universal centered layout wrapper */
.wrap{
  width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

/* Sticky header */
.header{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.70);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.brand{
  font-weight: 850;
  font-size: clamp(16px, 1.3vw, 20px);
  letter-spacing: .2px;
}

.navlinks{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.navlinks a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.navlinks a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--line);
}

.cta{
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(125,211,252,.45);
  background: rgba(125,211,252,.14);
  color: var(--text);
  font-weight: 750;
}

/* Big, consistent panel everywhere */
.panel{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 34px);
}

/* Typographic scale (auto) */
h1{
  margin:0 0 12px;
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

h2{
  margin:22px 0 10px;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.2px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  max-width: 75ch;
}

/* Buttons */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-weight: 750;
}

.btn:hover{background: rgba(255,255,255,.08)}

.btnPrimary{
  border-color: rgba(167,243,208,.45);
  background: rgba(167,243,208,.18);
}

/* Grid that auto-adjusts */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1100px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 700px){
  .grid{grid-template-columns: 1fr;}
}

/* Cards */
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3{
  margin:0 0 6px;
  font-size: 16px;
}

.card p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
}

/* Listing blocks */
.list{
  display:grid;
  gap: 14px;
  margin-top: 18px;
}

.listItem{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 18px;
}

.pill{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color: var(--muted);
}

.sponsored{
  border-color: rgba(167,243,208,.40);
  background: rgba(167,243,208,.18);
  color: var(--text);
}

/* Footer */
.footer{
  margin-top: 28px;
  padding: 22px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align:center;
  font-size: 13px;
}
