:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --text:#e9eef6;
  --muted:#aab6c6;
  --line:rgba(255,255,255,.08);
  --accent:#7dd3fc;
  --accent2:#a78bfa;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: #0b0f14;
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:26px 18px 76px}

/* Header */
header{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  position:sticky; top:0; z-index:10;
  padding:14px 12px;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,15,20,.86), rgba(11,15,20,.56));
  border-bottom:1px solid rgba(255,255,255,.05);
}

.brand{display:flex; align-items:center; gap:14px}
.brand b{
  letter-spacing:.35px;
  font-size:20px;
}
.sub{
  color:var(--muted);
  font-size:14px;
  margin-top:2px;
}

.logo{width:64px; height:64px; display:block}

/* Nav */
nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
nav a:hover{color:var(--text); border-color:rgba(255,255,255,.08); background:rgba(255,255,255,.03)}
nav a.active{
  color:var(--text);
  border-color:rgba(125,211,252,.28);
  background:rgba(255,255,255,.03);
}

/* Mobile nav toggle */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:rgba(233,238,246,.92);
  border-radius:2px;
}

/* Typography */
h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height:1.10;
  letter-spacing:-.7px;
}
h2{
  margin:0 0 10px;
  font-size:22px;
  letter-spacing:-.3px;
}
h3{
  margin:22px 0 10px;
  font-size:18px;
  letter-spacing:-.2px;
}
p{margin:10px 0; color:var(--muted)}

/* Hero */
.hero{padding:48px 0 20px}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  color:var(--muted);
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--accent);
}
.lead{
  color:var(--muted);
  font-size: clamp(16px, 1.55vw, 18px);
  max-width:90ch;
  margin:0;
}

/* Buttons */
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  margin-bottom:28px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--text);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); background:rgba(255,255,255,.05)}
.btn.primary{
  border-color: rgba(125,211,252,.35);
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(167,139,250,.14));
}
.btn .mini{font-size:12px; color:rgba(233,238,246,.75)}

/* Layout */
section{padding:24px 0 0}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

/* Cards */
.card{
  grid-column: span 4;
  background: rgba(15,22,32,.72);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding:12px 12px 12px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

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

/* Two-column panels */
.two{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
  align-items:stretch;
}

/* Panels & Article */
.panel, .article{
  background: rgba(15,22,32,.62);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding:18px;
  box-shadow: var(--shadow);
}

.article{padding:0; overflow:hidden}
.article-inner{padding:22px}

.panel p strong, .panel b, .article b, .article strong{color:var(--text)}

b, strong {
  font-weight: 550;        /* or 500 / 700 / 800 */
  color: var(--text);      /* or other color */
}

.list, ul{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.list li, li{margin:6px 0}

/* Code */
.codebox, pre{
  margin:12px 0;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  color: rgba(233,238,246,.92);
  overflow:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12.5px;
  line-height:1.45;
  white-space:pre;
}

hr{
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  margin:18px 0;
}

/* Footer */
.footer{
  margin-top:50px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.small{font-size:13px}
.hint{color:rgba(233,238,246,.75)}

/* Responsive + mobile menu */
@media (max-width: 820px){
  .nav-toggle{display:inline-flex;}

  nav{
    position:absolute;
    right:18px;
    top:70px;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:10px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(15,22,32,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    min-width: 220px;
  }

  nav a{
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
  }

  nav.is-open{ display:flex; }

  .two{grid-template-columns: 1fr}
  .article-inner{padding:18px}
  .card{grid-column: span 6;}
}

@media (max-width: 560px){
  .grid{gap:12px}
  .card{grid-column: span 12;}
}

.racss-tab {
  font-size: 0.95em;
  padding: 4px 8px;
  border-radius: 10px;
  text-decoration: none;
  opacity: 0.85;
}

.racss-tab.active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .nav-group { display: flex !important; gap: 8px; margin-left: 0 !important; }
}

/* ===== CTA polish (additive, overrides existing Buttons block) ===== */

/* Make CTA groups a bit tighter and more premium */
.cta {
  gap: 10px;
}

/* Slightly refine buttons */
.btn {
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Hover polish */
.btn:hover {
  background: rgba(255,255,255,.06);
}

/* Primary CTA: a bit more "call to action" */
.btn.primary {
  border-color: rgba(125,211,252,.55);
  box-shadow:
    0 0 0 1px rgba(125,211,252,.15) inset,
    0 8px 22px rgba(0,0,0,.22);
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(125,211,252,.22), rgba(167,139,250,.18));
  box-shadow:
    0 0 0 1px rgba(125,211,252,.25) inset,
    0 10px 28px rgba(0,0,0,.28);
}

/* Mobile: stack CTA buttons nicely */
@media (max-width: 600px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

