:root{
  --bg:#050a13;
  --surface:#0a1220;
  --surface-2:#0f192b;
  --surface-3:#14233a;
  --panel:#111c2f;
  --line:rgba(164,188,255,.12);
  --line-strong:rgba(164,188,255,.22);
  --text:#eef4ff;
  --muted:#99add1;
  --muted-2:#7588ad;
  --accent:#5da0ff;
  --accent-2:#4fd1e1;
  --shadow:0 28px 80px rgba(2,6,14,.4);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93,160,255,.18), transparent 22%),
    radial-gradient(circle at 88% 0%, rgba(79,209,225,.14), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 20%),
    var(--bg);
  position:relative;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
}

body::before{
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.48), transparent 92%);
  opacity:.3;
}

body::after{
  background:
    radial-gradient(circle at 18% 16%, rgba(79,209,225,.14), transparent 20%),
    radial-gradient(circle at 78% 10%, rgba(93,160,255,.16), transparent 22%);
}

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

.shell{
  width:min(1440px, calc(100% - 36px));
  margin:0 auto;
  padding:18px 0 34px;
  position:relative;
  z-index:1;
}

.topbar{
  position:sticky;
  top:16px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:26px;
  background:linear-gradient(180deg, rgba(9,15,28,.92), rgba(8,14,25,.82));
  backdrop-filter:blur(18px);
  box-shadow:0 18px 48px rgba(2,6,14,.28);
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-mark{
  width:52px;
  height:52px;
  border-radius:18px;
  border:1px solid rgba(164,188,255,.16);
  background:linear-gradient(180deg, rgba(25,40,68,.9), rgba(10,16,28,.98));
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.brand-copy{
  min-width:0;
}

.brand-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(164,188,255,.14);
  background:rgba(255,255,255,.03);
  color:#b7c8e8;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:10px;
}

.brand-title{
  margin:0 0 6px;
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
  font-weight:900;
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif;
}

.brand-subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
  max-width:760px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn,
.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:15px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  color:var(--text);
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}

.btn:hover,
.lang-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(93,160,255,.34);
}

.btn.primary{
  background:linear-gradient(135deg, rgba(93,160,255,.96), rgba(93,101,255,.92));
  border-color:rgba(125,170,255,.44);
  box-shadow:0 18px 40px rgba(75,110,255,.24);
}

.lang-switch{
  display:inline-flex;
  align-items:center;
  padding:4px;
  border-radius:15px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.lang-btn{
  min-height:34px;
  padding:0 12px;
  border:none;
  background:transparent;
  color:var(--muted);
}

.lang-btn.active{
  background:linear-gradient(135deg, rgba(93,160,255,.2), rgba(79,209,225,.12));
  color:var(--text);
  box-shadow:inset 0 0 0 1px rgba(93,160,255,.18);
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1.06fr) minmax(360px, .94fr);
  grid-template-areas:
    "copy stage"
    "facts stage";
  gap:18px 26px;
  padding:30px;
  margin-bottom:22px;
  border:1px solid var(--line);
  border-radius:34px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(93,160,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(18,28,47,.92), rgba(9,15,28,.98));
  box-shadow:var(--shadow);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 28%);
  pointer-events:none;
}

.hero-copy{
  grid-area:copy;
  position:relative;
  z-index:1;
  align-self:start;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(164,188,255,.14);
  background:rgba(255,255,255,.03);
  color:#bbcae8;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:11px;
  font-weight:800;
}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(38px, 5vw, 64px);
  line-height:.95;
  letter-spacing:-.055em;
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif;
}

.hero p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  font-size:16px;
  line-height:1.78;
}

.hero-stage{
  grid-area:stage;
  position:relative;
  min-height:100%;
}

.hero-stage::before{
  content:"";
  position:absolute;
  inset:8% 8% auto auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(79,209,225,.22), transparent 72%);
  filter:blur(18px);
  opacity:.8;
  pointer-events:none;
}

.hero-stage-surface{
  position:relative;
  z-index:1;
  min-height:100%;
  padding:24px;
  border-radius:30px;
  border:1px solid rgba(164,188,255,.14);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(9,15,28,.52), rgba(6,12,24,.9)),
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 45%),
    url('/discord-assets/vibe-welcome-bg.svg') center/cover no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hero-stage-surface::before{
  content:"";
  position:absolute;
  inset:auto -10% -16% 24%;
  height:58%;
  background:
    linear-gradient(180deg, rgba(8,14,25,.12), rgba(8,14,25,.76)),
    url('/discord-assets/vibe-boost-bg.svg') center/cover no-repeat;
  opacity:.46;
  transform:rotate(-7deg);
  pointer-events:none;
}

.hero-stage-surface::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 12%, rgba(79,209,225,.16), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 22%);
  pointer-events:none;
}

.hero-stage-head,
.hero-stage-copy,
.hero-stage-tags,
.hero-stage-grid{
  position:relative;
  z-index:1;
}

.hero-stage-head{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:16px;
  align-items:center;
}

.hero-stage-mark{
  width:72px;
  height:72px;
  padding:10px;
  border-radius:22px;
  border:1px solid rgba(164,188,255,.18);
  background:linear-gradient(180deg, rgba(24,38,64,.94), rgba(10,16,28,.98));
  display:grid;
  place-items:center;
  box-shadow:0 16px 34px rgba(2,6,14,.3);
}

.hero-stage-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.hero-stage-kicker{
  color:#8fb4e8;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.hero-stage-title{
  font-size:24px;
  line-height:1.06;
  font-weight:900;
  letter-spacing:-.03em;
  max-width:18ch;
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif;
}

.hero-stage-copy{
  margin:0;
  color:#c3d2ef;
  line-height:1.72;
  font-size:14px;
  max-width:42ch;
}

.hero-stage-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.hero-stage-tags span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(164,188,255,.12);
  background:rgba(255,255,255,.04);
  color:#cfddf6;
  font-size:12px;
  font-weight:700;
}

.hero-stage-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:auto;
}

.hero-stage-stat{
  min-width:0;
  padding:14px 14px 16px;
  border-radius:18px;
  border:1px solid rgba(164,188,255,.09);
  background:rgba(255,255,255,.04);
}

.hero-stage-stat small{
  display:block;
  margin-bottom:8px;
  color:#8aa2cc;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero-stage-stat strong{
  display:block;
  color:#eef4ff;
  line-height:1.45;
  font-size:14px;
  overflow-wrap:anywhere;
}

.hero-facts{
  grid-area:facts;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  align-self:end;
}

.fact-card{
  min-width:0;
  padding:18px 18px 16px;
  border-radius:22px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(12,20,35,.88), rgba(9,15,27,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.fact-label{
  color:var(--muted-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.fact-value{
  margin-bottom:8px;
  font-size:24px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:-.03em;
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif;
  overflow-wrap:anywhere;
}

.fact-note{
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

.content-shell{
  display:grid;
  grid-template-columns:292px minmax(0, 1fr);
  gap:22px;
  align-items:start;
}

.sidebar-card,
.article-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(10,17,30,.9), rgba(8,14,25,.97));
  border-radius:30px;
  box-shadow:var(--shadow);
}

.sidebar-card{
  position:sticky;
  top:122px;
  padding:18px;
}

.sidebar-label{
  color:var(--muted-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:12px;
}

.toc{
  display:grid;
  gap:8px;
  margin-bottom:18px;
}

.toc a{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.toc a:hover,
.toc a.active{
  color:var(--text);
  background:linear-gradient(90deg, rgba(93,160,255,.16), rgba(79,209,225,.08));
  border-color:rgba(93,160,255,.22);
  transform:translateX(2px);
}

.mini-note{
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

.article-card{
  padding:10px 34px 14px;
}

.section{
  position:relative;
  padding:28px 0;
  scroll-margin-top:120px;
}

.section + .section{
  border-top:1px solid var(--line);
}

.section-kicker{
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:12px;
}

.section h2{
  margin:0 0 14px;
  font-size:30px;
  line-height:1.06;
  letter-spacing:-.03em;
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,Arial,sans-serif;
}

.section p{
  margin:0 0 14px;
  max-width:920px;
  color:var(--muted);
  font-size:16px;
  line-height:1.82;
}

.section ul{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:10px;
}

.section li{
  position:relative;
  padding-left:18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.76;
}

.section li::before{
  content:"";
  position:absolute;
  left:0;
  top:.76em;
  width:7px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 0 0 4px rgba(93,160,255,.08);
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:22px;
  padding:20px 22px;
  border-radius:26px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(10,16,28,.9), rgba(10,16,28,.78));
  box-shadow:var(--shadow);
}

.footer-copy{
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

@media (max-width:1180px){
  .hero{
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "stage"
      "facts";
  }

  .content-shell{
    grid-template-columns:1fr;
  }

  .sidebar-card{
    position:static;
  }
}

@media (max-width:820px){
  .shell{
    width:min(100% - 24px, 100%);
    padding:12px 0 26px;
  }

  .topbar{
    position:static;
    border-radius:22px;
  }

  .hero,
  .sidebar-card,
  .article-card,
  .footer{
    border-radius:24px;
  }

  .hero{
    padding:22px;
  }

  .article-card{
    padding:6px 20px 10px;
  }

  .hero-stage-head{
    grid-template-columns:1fr;
  }

  .hero-stage-grid,
  .hero-facts{
    grid-template-columns:1fr;
  }

  .brand-title{
    font-size:24px;
  }
}

@media (max-width:640px){
  .topbar{
    padding:16px;
  }

  .brand{
    align-items:flex-start;
  }

  .topbar-actions{
    width:100%;
    justify-content:flex-start;
  }

  .btn{
    width:100%;
  }

  .hero h1{
    font-size:36px;
  }

  .hero p,
  .section p,
  .section li{
    font-size:15px;
  }

  .section h2{
    font-size:24px;
  }

  .hero-stage-surface{
    padding:18px;
  }

  .hero-stage-mark{
    width:64px;
    height:64px;
    border-radius:20px;
  }

  .hero-stage-title{
    font-size:22px;
  }
}
