:root{
  --bg:#0d0b18;
  --bg-alt:#14101f;
  --panel:#181228;
  --panel-2:#1c1530;
  --line: rgba(168, 139, 250, 0.14);
  --purple-1:#a78bfa;
  --purple-2:#7c5cd1;
  --purple-3:#5b3fa3;
  --purple-deep:#33245c;
  --text:#e9e4f5;
  --muted:#a79bcf;
  --muted-dim:#736a91;
  --good:#7fc9a4;
  --radius: 8px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3, .display{
  font-family:'Cinzel', serif;
  letter-spacing:0.01em;
  margin:0;
}

.mono{ font-family:'JetBrains Mono', monospace; }

a{ color:inherit; text-decoration:none; }

::selection{ background:var(--purple-3); color:#fff; }

:focus-visible{
  outline:2px solid var(--purple-1);
  outline-offset:2px;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

/* ---------- NAV ---------- */
header.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 28px;
  max-width:1180px;
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Cinzel', serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:0.02em;
}
.brand-logo{
  height:26px;
  width:auto;
  display:none;
}
/* When body.logo-mode is active (set in script.js via USE_LOGO_IMAGE),
   the logo images show and the "CapeSMP" text hides. */
body.logo-mode .brand-logo{ display:block; }
body.logo-mode .brand-text{ display:none; }
body.logo-mode .hero-logo{ display:block; }
body.logo-mode .hero-title-text{ display:none; }
nav.links{
  display:flex;
  gap:28px;
  font-size:14px;
  color:var(--muted);
}
nav.links a{ transition:color .15s ease; }
nav.links a:hover{ color:var(--text); }
.nav-cta{
  background:var(--purple-3);
  padding:9px 16px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  border:1px solid var(--purple-2);
}
.nav-cta:hover{ background:var(--purple-2); }
@media (max-width:760px){
  nav.links{ display:none; }
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding:100px 28px 84px;
  text-align:center;
  border-bottom:1px solid var(--line);
}
.hero-logo{
  height:88px;
  width:auto;
  margin:0 auto 28px;
  display:none;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:4px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--muted);
  font-size:12px;
  font-family:'JetBrains Mono', monospace;
  letter-spacing:0.04em;
  text-transform:uppercase;
  margin-bottom:26px;
}
.status-pill .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--purple-1);
}
.hero h1{
  font-size:clamp(40px, 6.5vw, 68px);
  font-weight:700;
  color:var(--text);
  line-height:1.08;
}
.hero p.tagline{
  max-width:540px;
  margin:20px auto 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.hero-ctas{
  margin-top:36px;
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  padding:13px 24px;
  border-radius:6px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary{
  background:var(--purple-2);
  color:#fff;
  border-color:var(--purple-2);
}
.btn-primary:hover{ background:var(--purple-3); border-color:var(--purple-3); }
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--purple-2); }

/* ---------- SECTION SHELL ---------- */
section{ padding:90px 0; position:relative; }
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--purple-1);
  margin-bottom:12px;
  display:block;
}
.section-head{
  max-width:640px;
  margin-bottom:50px;
}
.section-head h2{
  font-size:clamp(26px, 3.6vw, 36px);
  font-weight:700;
  line-height:1.15;
}
.section-head p{
  color:var(--muted);
  margin-top:12px;
  font-size:16px;
  line-height:1.65;
}

/* ---------- ABOUT ---------- */
.about-copy{
  max-width:680px;
}
.about-copy p{
  color:var(--muted);
  line-height:1.75;
  font-size:16px;
  margin-bottom:16px;
}
.about-copy strong{ color:var(--text); font-weight:700; }

/* ---------- FAIR PLAY ---------- */
.pillars{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.pillar{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
}
.pillar-icon{
  width:36px; height:36px;
  border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  color:var(--purple-1);
  font-weight:800;
  font-size:12px;
  margin-bottom:18px;
  font-family:'JetBrains Mono', monospace;
}
.pillar h3{ font-size:20px; margin-bottom:10px; font-weight:700; }
.pillar p{ color:var(--muted); line-height:1.65; font-size:15px; margin-bottom:16px; }
.pillar ul{ list-style:none; padding:0; margin:0; display:grid; gap:9px; }
.pillar li{
  font-size:14px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.pillar li::before{
  content:'—';
  color:var(--good);
  font-weight:700;
  flex-shrink:0;
}
@media (max-width:760px){
  .pillars{ grid-template-columns:1fr; }
}

/* ---------- PROGRESS (SIGNATURE) ---------- */
.progress-shell{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  padding:44px clamp(20px, 5vw, 52px) 56px;
  text-align:center;
}
.progress-shell .eyebrow{ text-align:center; }
.progress-shell h2{
  font-size:clamp(24px, 3.2vw, 30px);
  margin-bottom:10px;
  font-weight:700;
}
.progress-shell > p{
  color:var(--muted);
  max-width:520px;
  margin:0 auto 40px;
  font-size:15px;
  line-height:1.6;
}

.cape-progress{
  position:relative;
  max-width:760px;
  margin:0 auto;
}
.progress-track{
  position:relative;
  height:56px;
  background: var(--bg-alt);
  border:1px solid var(--line);
  border-radius:8px 8px 4px 4px;
  overflow:hidden;
}
/* cape hem: scalloped edge hanging beneath the whole bar */
.progress-track::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-12px;
  height:14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0 L14 14 L28 0 Z' fill='%2333245c' stroke='%235b3fa3' stroke-width='0.5'/%3E%3C/svg%3E");
  background-repeat:repeat-x;
  background-size:28px 14px;
}
.progress-fill{
  position:absolute;
  top:0; left:0; bottom:0;
  width:0%;
  border-radius:8px 0 0 4px;
  background: var(--purple-3);
  transition: width 1s ease;
}
.progress-label{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'JetBrains Mono', monospace;
  font-weight:700;
  font-size:20px;
  letter-spacing:0.02em;
  color:#fff;
  user-select:none;
  z-index:2;
}
.progress-hint{
  margin-top:24px;
  font-size:12.5px;
  color:var(--muted-dim);
  font-family:'JetBrains Mono', monospace;
}

/* ---------- FOOTER / JOIN ---------- */
footer{
  padding:76px 0 30px;
  text-align:center;
  border-top:1px solid var(--line);
}
.join-ip{
  display:inline-flex;
  align-items:center;
  gap:14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px;
  padding:15px 22px;
  font-family:'JetBrains Mono', monospace;
  font-size:15px;
  margin:24px 0 32px;
  color:var(--purple-1);
}
.join-ip .soon{
  font-size:11px;
  color:var(--muted-dim);
  text-transform:uppercase;
  letter-spacing:0.06em;
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:4px;
}
.social-row{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:36px;
}
.social-row a{
  padding:9px 18px;
  border-radius:6px;
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.social-row a:hover{ border-color:var(--purple-2); color:var(--text); }
footer .fine{
  color:var(--muted-dim);
  font-size:12.5px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}
/* stagger the two fair-play pillar cards slightly */
.pillars .pillar.reveal:nth-child(2){ transition-delay:.1s; }

.credit-note{
  margin-top:32px;
  font-size:11px;
  color:#888;
  opacity:0.35;
  max-width:480px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.5;
}
