/* ===========================
   Keshawn Hamilton • Project 4: Web
   Professional CYOA Website
   =========================== */

:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.07);
  --panel2: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.14);
  --text: #f5f7ff;
  --muted: rgba(245,247,255,.75);
  --accent: #ff4d6d;
  --accent2: #ffd166;
  --accent3: #6ea8fe;
  --good: #2dd4bf;
  --bad: #fb7185;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --max: 980px;
}

/* Reset / base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(255,77,109,.24), transparent 60%),
    radial-gradient(900px 600px at 90% 15%, rgba(255,209,102,.18), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(110,168,254,.16), transparent 55%),
    linear-gradient(180deg, #070a12, #0b1020 35%, #070a12);
  min-height:100vh;
}

a{color:inherit}
img{max-width:100%; display:block}
.container{width:min(var(--max), 92vw); margin:0 auto}

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; border-radius:12px;
  background:rgba(0,0,0,.6); border:1px solid var(--border);
}

/* Top nav */
.nav{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(12px);
  background: rgba(10,14,26,.55);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  text-decoration:none;
}
.logo{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), #7b2cff);
  box-shadow: 0 10px 25px rgba(255,77,109,.18);
}
.brand strong{letter-spacing:.2px}
.brand span{display:block; color:var(--muted); font-size:12px; margin-top:1px}

.navlinks{display:flex; gap:14px; align-items:center}
.navlinks a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
}
.navlinks a:hover{border-color:var(--border); color:var(--text)}
.navlinks a.active{border-color:rgba(255,209,102,.35); color:var(--text)}

/* Hero */
.hero{
  padding:54px 0 18px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:7px 10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-size:13px;
}
.kicker .dot{
  width:8px;height:8px;border-radius:50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(255,209,102,.15);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height:1.05;
  letter-spacing:-.4px;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width: 70ch;
}

/* Layout blocks */
.grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:18px;
  margin: 22px 0 38px;
}
@media (max-width: 880px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.card.soft{background: var(--panel2)}
.card h2{margin:0 0 10px}
.card p{margin:10px 0; line-height:1.65}
.muted{color:var(--muted)}

.meta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 12px;
}
.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  padding:6px 10px;
}

/* Choice buttons */
.choices{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top: 14px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  text-decoration:none;
  padding:12px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, var(--accent), #7b2cff);
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-2px); filter: brightness(1.06)}
.btn:active{transform: translateY(0)}
.btn.alt{
  background: linear-gradient(135deg, rgba(255,209,102,.22), rgba(110,168,254,.18));
  color: var(--text);
}
.btn.ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.22);
}
.btn.small{padding:10px 12px; border-radius: 12px; font-weight: 700}

/* Progress / status */
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  font-weight: 800;
  letter-spacing:.3px;
}
.badge.good{color: var(--good)}
.badge.bad{color: var(--bad)}

/* Quote blocks */
.quote{
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent2);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  color: var(--muted);
}

/* Footer */
footer{
  border-top:1px solid var(--border);
  padding: 24px 0 46px;
  color: var(--muted);
}
.footergrid{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:space-between; align-items:flex-start;
}
.footergrid a{
  color: var(--muted);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.25);
}
.footergrid a:hover{color: var(--text)}
hr.sep{
  border:0; border-top:1px solid rgba(255,255,255,.10);
  margin: 16px 0;
}

/* Focus accessibility */
a:focus, .btn:focus{
  outline: 3px solid rgba(255,209,102,.45);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Tiny animated glow (professional touch) */
@keyframes glow {
  0%,100%{box-shadow: 0 0 0 rgba(255,77,109,0)}
  50%{box-shadow: 0 0 28px rgba(255,77,109,.18)}
}
.logo{animation: glow 3.6s ease-in-out infinite}
