:root{
  --bg:#0b0f17;
  --panel:#0f1623;
  --text:#e8eefc;
  --muted:#b8c2da;
  --border:rgba(255,255,255,.08);
  --link:#d7e2ff;
  --accent:#7aa2ff;
  --accent2:#78f0c3;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

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

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(122,162,255,.25), transparent 55%),
    radial-gradient(1000px 600px at 85% 0%, rgba(120,240,195,.18), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:1080px;
  margin:0 auto;
  padding:0 18px;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--text);
}
.brand:hover{text-decoration:none}

.logo-bg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;

  background: linear-gradient(
    135deg,
    rgba(122,162,255,.95),
    rgba(122,162,255,.75)
  );

  border:1px solid rgba(122,162,255,.45);
  box-shadow:
    0 6px 20px rgba(122,162,255,.25),
    inset 0 0 0 1px rgba(255,255,255,.15);
}

.logo-bg img{
  display:block;
  width:60px;
  height:60px;
  filter: brightness(1.05) contrast(1.05);
}

.navlinks{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.navlinks a{color:var(--muted)}

/* HERO */
.hero{
  padding:44px 0 18px;
}

.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
}

.kicker{
  color:var(--muted);
  text-transform:uppercase;
  font-size:.85rem;
  letter-spacing:.12em;
}

.h1{
  font-size:2.15rem;
  line-height:1.15;
  margin:.35rem 0 0;
}

.sub{
  color:var(--muted);
  margin:.75rem 0 0;
  max-width:62ch;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

.btn-primary{
  background:linear-gradient(135deg, rgba(122,162,255,.9), rgba(122,162,255,.65));
  border-color:rgba(122,162,255,.35);
  color:#06101a;
  font-weight:700;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  margin:22px 0 0;
}

.panel{
  background:rgba(255,255,255,.035);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}

/* SECTION TITLES */
.section-title{
  grid-column: 1 / -1;
  margin:40px 0 16px;
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--text);
}

.section-title::after{
  content:"";
  display:block;
  width:48px;
  height:2px;
  margin-top:10px;
  background:linear-gradient(90deg, var(--accent), transparent);
  border-radius:2px;
  opacity:.9;
}

/* PILLARS */
.pillars{
  grid-column: span 12;
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:16px;
}

.pillar{grid-column: span 4}
.pillar h3{margin:0 0 6px;font-size:1rem}
.pillar p{margin:0;color:var(--muted)}

/* CARDS */
.cards{
  grid-column: span 12;
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:16px;
}

.card{grid-column: span 6}
.card h3{margin:0 0 6px}
.meta{color:var(--muted);margin:0 0 12px}
.card .btn{margin-top:8px}

/* BOOK COVERS */
.book-cover{
  width:100%;
  max-width:220px;
  margin:0 auto 14px;
  display:block;
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow:0 14px 32px rgba(0,0,0,.45);
}

/* FOOTER */
hr.sep{
  border:0;
  border-top:1px solid var(--border);
  margin:26px 0;
}

.footer{
  padding:22px 0 34px;
  color:var(--muted);
  font-size:.95rem;
  text-align:center;
}

/* Force footer centering (higher specificity) */
.container.footer{
  text-align:center;
}

.container.footer .small{
  text-align:center;
  display:block;
  width:100%;
  margin:0 auto;
}

.small{font-size:.9rem;color:var(--muted)}

/* RESPONSIVE */
@media (max-width: 860px){
  .pillar{grid-column: span 12}
  .card{grid-column: span 12}
  .h1{font-size:1.85rem}
}
