:root{
  --black:#0A0A0B;
  --charcoal:#1B1B1E;
  --charcoal-2:#2A2A2E;
  --grey:#C7C7CB;
  --grey-dim:#8B8B90;
  --white:#F4F4F5;
  --crimson:#B0142E;
  --crimson-bright:#D81E3F;
  --mono:'JetBrains Mono', ui-monospace, monospace;
  --sans:'Inter', ui-sans-serif, sans-serif;
  --btn-grad: linear-gradient(90deg, #55555C 0%, #F4F4F5 100%);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--black);
  color:var(--grey);
  font-family:var(--sans);
  line-height:1.55;
}
a{color:inherit;}
.wrap{max-width:1080px; margin:0 auto; padding:0 24px;}
::selection{background:var(--crimson); color:var(--white);}

/* ---------- header ---------- */
header{
  position:sticky; top:0; z-index:20;
  background:rgba(10,10,11,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:66px;
}
.wordmark{
  font-family:var(--mono); font-weight:700; font-size:16px;
  color:var(--white); letter-spacing:0.01em; text-decoration:none;
}
.wordmark .id{color:var(--crimson-bright);}
nav ul{display:flex; gap:30px; list-style:none;}
nav a{
  font-size:13.5px; text-decoration:none; color:var(--grey-dim);
  font-weight:500; transition:color 0.15s; padding-bottom:4px;
  border-bottom:2px solid transparent;
}
nav a:hover{color:var(--white);}
nav a.active{ color:var(--white); border-bottom-color:var(--crimson-bright); }
.nav-cta{display:none;}
@media (min-width:640px){ .nav-cta{display:block;} }

/* ---------- buttons ---------- */
.btn{
  font-family:var(--sans); font-weight:600; font-size:13.5px;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:7px; border:none; cursor:pointer;
}
.btn.grad{
  background:var(--btn-grad);
  color:#111214;
}
.btn.grad:hover{ filter:brightness(1.06); }
.btn.outline{
  background:transparent; color:var(--grey);
  border:1px solid rgba(255,255,255,0.16);
}
.btn.outline:hover{ border-color:var(--crimson-bright); color:var(--white); }
.btn.small{ padding:8px 14px; font-size:12.5px; }

/* ---------- hero (home) ---------- */
.hero{
  position:relative; overflow:hidden;
  padding:96px 0 76px;
  background:
    radial-gradient(circle at 15% 0%, rgba(176,20,46,0.35), transparent 45%),
    linear-gradient(160deg, #2b0a11 0%, #1c1416 22%, #17171a 46%, #0A0A0B 78%);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.hero .wrap{ position:relative; z-index:2; }
.hero-content{ max-width:640px; }

.hero-code{
  position:absolute; top:6%; left:-6%; right:-6%; bottom:4%;
  display:flex; align-items:center; gap:80px;
  transform: perspective(1400px) rotateY(-11deg) rotateX(5deg) rotate(-1deg);
  transform-origin:center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 86%, transparent 100%);
  z-index:0; pointer-events:none; user-select:none;
}
.code-block{
  font-family:var(--mono); font-size:13.5px; line-height:1.8; white-space:pre;
  color:var(--grey); flex:0 0 auto; opacity:0.92;
}
.c-kw{color:#C586C0;}
.c-str{color:#CE9178;}
.c-num{color:#B5CEA8;}
.c-com{color:#6A9955; font-style:italic;}
.c-fn{color:#DCDCAA;}
.c-var{color:#9CDCFE;}
.c-glob{color:#4EC9B0;}
.hero-scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(90deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.78) 26%, rgba(10,10,11,0.4) 44%, rgba(10,10,11,0.08) 60%, transparent 72%);
}
@media (max-width:820px){ .hero-code{ display:none; } .hero-scrim{ display:none; } }

.eyebrow{
  font-family:var(--mono); font-size:12px; color:var(--crimson-bright);
  text-transform:uppercase; letter-spacing:0.12em; margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}
.eyebrow::before{
  content:''; width:7px; height:7px; background:var(--crimson-bright); border-radius:50%;
}
h1{
  font-weight:700; color:var(--white);
  font-size:clamp(32px,5vw,50px);
  line-height:1.08; letter-spacing:-0.02em; margin-bottom:20px;
}
h1 span.line2{ color:var(--grey-dim); }
.hero p.lede{
  color:var(--grey-dim); font-size:16px; max-width:44ch; margin-bottom:30px;
}
.hero-links{display:flex; gap:14px; flex-wrap:wrap;}

/* ---------- page hero (Scripts / Bot / Contact) ---------- */
.page-hero{
  position:relative; overflow:hidden;
  padding:64px 0 52px;
  background:
    radial-gradient(circle at 90% 0%, rgba(176,20,46,0.22), transparent 50%),
    linear-gradient(160deg, #1c1114 0%, #17171a 40%, #0A0A0B 85%);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.page-hero h1{ font-size:clamp(28px,4.5vw,40px); margin-bottom:12px; }
.page-hero p.lede{ margin-bottom:0; }

/* ---------- section shell ---------- */
section{padding:64px 0;}
section.divider{border-top:1px solid rgba(255,255,255,0.07);}
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:30px; flex-wrap:wrap; gap:8px;
}
h2{
  font-weight:700; font-size:22px; color:var(--white); letter-spacing:-0.01em;
}
.section-note{font-family:var(--mono); font-size:11.5px; color:var(--grey-dim);}

/* ---------- feature grid (Why) ---------- */
.feat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:10px; overflow:hidden;
}
@media (max-width:760px){ .feat-grid{grid-template-columns:repeat(2,1fr);} }
.feat-card{ background:var(--charcoal); padding:22px 20px; }
.feat-tag{
  font-family:var(--mono); font-size:10.5px; color:var(--crimson-bright);
  text-transform:uppercase; letter-spacing:0.06em; margin-bottom:10px;
}
.feat-card h3{ color:var(--white); font-size:15px; margin-bottom:6px; font-weight:600; }
.feat-card p{ font-size:13px; color:var(--grey-dim); }

/* ---------- scripts ---------- */
.cards{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}
@media (max-width:640px){ .cards{grid-template-columns:1fr;} }
.card{
  background:var(--charcoal); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; padding:20px;
}
.card-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.card-type{
  font-family:var(--mono); font-size:10px; text-transform:uppercase;
  background:linear-gradient(90deg,var(--crimson),var(--crimson-bright));
  color:var(--white); padding:3px 8px; border-radius:4px; letter-spacing:0.05em;
}
.card-name{ font-family:var(--mono); font-weight:500; font-size:14.5px; color:var(--white); }
.card p{ font-size:13.5px; color:var(--grey-dim); }
.card.placeholder{ border-style:dashed; }
.card-foot{ margin-top:14px; display:flex; gap:10px; }

/* ---------- bot / discord embed ---------- */
.embed{
  background:var(--charcoal); border-left:3px solid var(--crimson-bright);
  border-top:1px solid rgba(255,255,255,0.08); border-right:1px solid rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.08);
  border-radius:0 10px 10px 0; padding:20px 22px; max-width:540px;
}
.embed-eyebrow{
  font-family:var(--mono); font-size:11px; color:var(--crimson-bright);
  text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px;
}
.embed-title{ font-family:var(--mono); font-weight:700; font-size:16px; color:var(--white); margin-bottom:8px; }
.embed-field-row{ display:flex; gap:32px; margin-top:16px; flex-wrap:wrap; }
.embed-field h4{
  font-family:var(--mono); font-size:10.5px; text-transform:uppercase;
  color:var(--grey-dim); letter-spacing:0.06em; margin-bottom:3px;
}
.embed-field p{ font-family:var(--mono); font-size:13px; color:var(--grey); }
.status-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:#5fbf8f; margin-right:6px; }

/* ---------- command list (bot page) ---------- */
.cmd-list{ display:flex; flex-direction:column; border:1px solid rgba(255,255,255,0.08); border-radius:10px; overflow:hidden; }
.cmd-row{
  display:grid; grid-template-columns:180px 1fr; gap:16px;
  padding:14px 18px; background:var(--charcoal);
  border-top:1px solid rgba(255,255,255,0.06);
}
.cmd-row:first-child{ border-top:none; }
.cmd-row:nth-child(even){ background:#1e1e21; }
.cmd-name{ font-family:var(--mono); font-size:13px; color:var(--white); }
.cmd-desc{ font-size:13px; color:var(--grey-dim); }
@media (max-width:560px){ .cmd-row{grid-template-columns:1fr;} }

/* ---------- stats strip ---------- */
.stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.07); border-radius:10px; overflow:hidden;
}
@media (max-width:640px){ .stats{grid-template-columns:1fr;} }
.stat{ background:var(--charcoal); padding:26px 24px; }
.stat-num{
  font-family:var(--mono); font-weight:700; font-size:26px;
  background:linear-gradient(90deg, var(--white), var(--grey-dim));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{ font-size:12.5px; color:var(--grey-dim); margin-top:4px; }

/* ---------- community cta ---------- */
.cta-band{
  background:
    radial-gradient(circle at 85% 30%, rgba(176,20,46,0.28), transparent 50%),
    var(--charcoal);
  border:1px solid rgba(255,255,255,0.08); border-radius:14px;
  padding:44px 40px; display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.cta-band h3{ color:var(--white); font-size:21px; font-weight:700; margin-bottom:6px; }
.cta-band p{ color:var(--grey-dim); font-size:14px; max-width:40ch; }

/* ---------- contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:16px; }
@media (max-width:720px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{
  background:var(--charcoal); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; padding:22px;
}
.contact-card h3{ color:var(--white); font-size:15px; margin-bottom:6px; font-weight:600; }
.contact-card p{ font-size:13.5px; color:var(--grey-dim); margin-bottom:14px; }

/* ---------- footer ---------- */
footer{
  border-top:1px solid rgba(255,255,255,0.08); padding:48px 0 28px;
  background:var(--black);
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px;
  margin-bottom:36px;
}
@media (max-width:640px){ .footer-grid{grid-template-columns:1fr; gap:28px;} }
.footer-brand p{ font-size:13px; color:var(--grey-dim); max-width:32ch; margin-top:10px; }
.footer-col h5{
  font-family:var(--mono); font-size:11px; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--grey-dim); margin-bottom:12px;
}
.footer-col ul{ list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col a{ font-size:13.5px; color:var(--grey); text-decoration:none; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.07); padding-top:20px;
  font-family:var(--mono); font-size:11px; color:var(--grey-dim);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
