/* ============================================================
   FlooM - Connect across the wizarding world
   Dark academia × dark fantasy landing system
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Cinzel:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg-0: #08080c;
  --bg-1: #101017;
  --bg-2: #16161f;
  --bg-3: #1d1d29;
  --line: rgba(232, 199, 122, 0.10);
  --line-strong: rgba(232, 199, 122, 0.22);

  /* Accents */
  --violet: #8A2BE2;
  --violet-soft: #a868f0;
  --emerald: #1FB85B;
  --flame: #3DF98A;
  --gold: #E8C77A;
  --gold-dim: #b89a5e;

  /* Text */
  --text: #DCDCE6;
  --text-dim: rgba(220, 220, 230, 0.62);
  --text-faint: rgba(220, 220, 230, 0.40);

  /* Glass */
  --glass: rgba(22, 22, 31, 0.55);
  --glass-line: rgba(232, 199, 122, 0.14);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --label: 'Cinzel', serif;
  --sans: 'Inter', system-ui, sans-serif;

  /* Shadows / glow */
  --glow-emerald: 0 0 0 1px rgba(61, 249, 138, 0.35), 0 0 24px rgba(31, 184, 91, 0.35), 0 0 60px rgba(31, 184, 91, 0.20);
  --glow-violet: 0 0 30px rgba(138, 43, 226, 0.35);

  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient page texture: faint parchment grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(138, 43, 226, 0.10), transparent 55%),
    radial-gradient(80% 60% at 100% 110%, rgba(31, 184, 91, 0.08), transparent 60%);
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(61, 249, 138, 0.28); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

.section { position: relative; padding: 120px 0; z-index: 2; }
.section--tight { padding: 96px 0; }

.eyebrow {
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
}
.section-title .glow { color: var(--flame); text-shadow: 0 0 26px rgba(61, 249, 138, 0.5); }
.section-title .vio { color: var(--violet-soft); text-shadow: 0 0 26px rgba(138,43,226,0.5); }

.lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 60ch;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  position: relative;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .3s ease, color .3s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--flame {
  color: #04130a;
  background: linear-gradient(180deg, var(--flame), var(--emerald));
  box-shadow: var(--glow-emerald);
}
.btn--flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(61,249,138,.6), 0 0 30px rgba(31,184,91,.55), 0 0 80px rgba(31,184,91,.35);
}
.btn--flame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 45%);
  opacity: .5; pointer-events: none;
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(232,199,122,.5);
  color: #fff;
  box-shadow: 0 0 24px rgba(232,199,122,.14);
  transform: translateY(-2px);
}

.btn--violet {
  color: #fff;
  background: linear-gradient(180deg, var(--violet-soft), var(--violet));
  box-shadow: var(--glow-violet);
}
.btn--violet:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(138,43,226,.5); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  position: relative;
}
.brand__flame {
  width: 16px; height: 22px;
  background: radial-gradient(60% 60% at 50% 70%, var(--flame), var(--emerald) 60%, transparent 75%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  transform: rotate(-2deg);
  filter: drop-shadow(0 0 8px rgba(61,249,138,.7));
  animation: flick 2.6s ease-in-out infinite;
}
.brand__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transform: rotate(45deg);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.01em;
  color: #fff;
}
.brand__name b { color: var(--flame); font-weight: 700; text-shadow: 0 0 18px rgba(61,249,138,.5); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: color .25s, background .25s;
  position: relative;
}
.nav__links a:hover { color: #fff; }
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--flame); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; opacity: .8;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}
/* layered atmosphere fallback (and overlay over video) */
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 12%, rgba(31,184,91,0.16), transparent 45%),
    radial-gradient(70% 60% at 78% 8%, rgba(138,43,226,0.20), transparent 50%),
    linear-gradient(180deg, #0c0c14 0%, #0a0a10 40%, #08080c 100%);
}
/* faint castle/landscape silhouette built from gradients (original, abstract) */
.hero__ridge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background:
    radial-gradient(60% 120% at 20% 100%, rgba(4,4,8,.95), transparent 60%),
    radial-gradient(70% 130% at 62% 100%, rgba(6,6,12,.92), transparent 62%),
    radial-gradient(50% 120% at 88% 100%, rgba(4,4,8,.95), transparent 60%);
}
.hero__ridge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg-0));
}
.fog {
  position: absolute; left: -20%; right: -20%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(150,160,180,0.10), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  mix-blend-mode: screen;
}
.fog--1 { bottom: 0; opacity: .9; animation: fogdrift 38s ease-in-out infinite; }
.fog--2 { bottom: 12%; height: 50%; opacity: .55; background: radial-gradient(closest-side, rgba(31,184,91,0.10), transparent 70%); animation: fogdrift 52s ease-in-out infinite reverse; }
.fog--3 { bottom: 24%; height: 44%; opacity: .4; background: radial-gradient(closest-side, rgba(138,43,226,0.10), transparent 70%); animation: fogdrift 64s ease-in-out infinite; }

#embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 50%, rgba(8,8,12,.7) 100%),
    linear-gradient(180deg, rgba(8,8,12,.35), transparent 25%);
}

.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__content { max-width: 760px; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22,22,31,.4);
  backdrop-filter: blur(6px);
  margin-bottom: 30px;
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: pulse 2.4s infinite; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6.1vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #fff;
  padding-bottom: 0.06em;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--flame), var(--gold) 60%, var(--violet-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(61,249,138,.25);
}
.hero__sub {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 28px 0 38px;
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__note { font-size: 13.5px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }

.hero__stats {
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.stat__num {
  font-family: var(--serif); font-weight: 600; font-size: 34px; color: #fff; line-height: 1;
}
.stat__num b { color: var(--flame); }
.stat__lbl { font-size: 12.5px; color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; font-family: var(--label); }

.scrollcue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint); font-family: var(--label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.scrollcue__line { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold-dim), transparent); position: relative; overflow: hidden; }
.scrollcue__line::after { content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--flame); animation: scrolldot 2.2s ease-in-out infinite; }

/* ============================================================
   FEATURE TRIO
   ============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(29,29,41,.6), rgba(16,16,23,.5));
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(61,249,138,.08), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover { transform: translateY(-6px); border-color: rgba(61,249,138,.3); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(31,184,91,.12); }
.glass:hover::before { opacity: 1; }

.trio__card { padding: 34px 30px 36px; }
.icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(80% 80% at 50% 20%, rgba(31,184,91,.18), rgba(22,22,31,.6));
  margin-bottom: 24px;
  color: var(--flame);
}
.icon svg { width: 24px; height: 24px; }
.trio__card h3 { font-family: var(--serif); font-weight: 600; font-size: 27px; color: #fff; margin-bottom: 12px; }
.trio__card p { color: var(--text-dim); font-size: 15.5px; }
.trio__card .num { font-family: var(--label); font-size: 12px; color: var(--gold-dim); letter-spacing: .2em; position: absolute; top: 26px; right: 28px; }

/* ============================================================
   SHOWCASE ROWS
   ============================================================ */
.showcase { display: flex; flex-direction: column; gap: 28px; margin-top: 64px; }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: stretch;
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,22,31,.5), rgba(12,12,18,.5));
  backdrop-filter: blur(8px);
}
.row--rev .row__media { order: 2; }
.row__body { padding: 52px 50px; display: flex; flex-direction: column; justify-content: center; }
.row__kicker { font-family: var(--label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.row__body h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 40px); color: #fff; line-height: 1.05; margin-bottom: 16px; }
.row__body p { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.chip--g { color: var(--flame); border-color: rgba(61,249,138,.28); }
.chip--v { color: var(--violet-soft); border-color: rgba(138,43,226,.32); }

/* striped image placeholder */
.media {
  position: relative; min-height: 340px;
  background:
    repeating-linear-gradient(135deg, rgba(232,199,122,.04) 0 14px, transparent 14px 28px),
    radial-gradient(80% 90% at 30% 20%, rgba(31,184,91,.10), transparent 60%),
    radial-gradient(70% 90% at 90% 90%, rgba(138,43,226,.12), transparent 60%),
    var(--bg-2);
  display: grid; place-items: center; text-align: center;
  border-left: 1px solid var(--glass-line);
}
.row--rev .media { border-left: none; border-right: 1px solid var(--glass-line); }
.media__label {
  font-family: 'Courier New', monospace; font-size: 12.5px; color: var(--text-faint);
  letter-spacing: .04em; padding: 0 20px; max-width: 80%;
}
.media__label b { color: var(--gold-dim); display: block; margin-bottom: 4px; font-weight: 700; }
.media__glow { position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 60%, rgba(61,249,138,.08), transparent 70%); }

/* ============================================================
   SERVER BROWSER
   ============================================================ */
.browser {
  margin-top: 48px;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,16,23,.85), rgba(10,10,16,.85));
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.browser__bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,12,.5);
}
.browser__search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; height: 42px;
  transition: border-color .25s, box-shadow .25s;
}
.browser__search:focus-within { border-color: rgba(61,249,138,.4); box-shadow: 0 0 0 3px rgba(31,184,91,.1); }
.browser__search svg { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
.browser__search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14.5px; }
.browser__search input::placeholder { color: var(--text-faint); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fbtn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--text-dim);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: .25s;
}
.fbtn:hover { color: #fff; border-color: var(--line-strong); }
.fbtn.active { color: #04130a; background: linear-gradient(180deg, var(--flame), var(--emerald)); border-color: transparent; box-shadow: 0 0 18px rgba(31,184,91,.3); }

.browser__head, .srow {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 0.9fr 0.7fr 110px;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}
.browser__head {
  height: 44px;
  font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.01);
}
.browser__list { max-height: 520px; overflow-y: auto; }
.browser__list::-webkit-scrollbar { width: 8px; }
.browser__list::-webkit-scrollbar-thumb { background: rgba(232,199,122,.14); border-radius: 8px; }

.srow {
  height: 74px;
  border-bottom: 1px solid var(--line);
  transition: background .25s;
  cursor: pointer;
  position: relative;
}
.srow:hover { background: rgba(31,184,91,.05); }
.srow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--flame);
  transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.srow:hover::before { transform: scaleY(1); }

.sname { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sflag {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff;
  border: 1px solid var(--line-strong);
}
.sname__txt { min-width: 0; }
.sname__txt b { font-weight: 600; color: #fff; font-size: 15.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sname__txt span { font-size: 12.5px; color: var(--text-faint); }

.stags { display: flex; gap: 6px; flex-wrap: wrap; }
.stag { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-dim); white-space: nowrap; }

.players { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.players .bar { width: 54px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.players .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--flame)); }
.players b { color: #fff; font-weight: 600; font-size: 14px; }
.players span { color: var(--text-faint); font-size: 13px; }

.ping { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.ping .ok { color: var(--flame); }
.ping .mid { color: var(--gold); }
.ping .bad { color: #e0795b; }

.sjoin { justify-self: end; }
.empty { padding: 60px; text-align: center; color: var(--text-faint); font-family: var(--serif); font-size: 20px; }

/* ============================================================
   DEVELOPERS
   ============================================================ */
.dev { background: linear-gradient(180deg, #050507, #0b0b12); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dev__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.dev__list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.dev__list li { display: flex; gap: 16px; align-items: flex-start; }
.dev__list .b {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid rgba(61,249,138,.3); color: var(--flame);
  background: rgba(31,184,91,.08);
}
.dev__list .b svg { width: 15px; height: 15px; }
.dev__list b { color: #fff; font-weight: 600; }
.dev__list p { color: var(--text-dim); font-size: 14.5px; margin-top: 2px; }

.code {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-line);
  background: #0a0a10;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.code__top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.code__top .dots { display: flex; gap: 7px; }
.code__top .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.12); }
.code__top .name { font-family: 'Courier New', monospace; font-size: 12.5px; color: var(--text-faint); margin-left: 8px; }
.code__top .tag { margin-left: auto; font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; color: var(--flame); border: 1px solid rgba(61,249,138,.3); border-radius: 5px; padding: 3px 8px; }
.code pre { margin: 0; padding: 24px 24px 28px; overflow-x: auto; }
.code code { font-family: 'Courier New', monospace; font-size: 13.5px; line-height: 1.8; color: #cdd2dc; white-space: pre; }
.tok-key { color: var(--violet-soft); }
.tok-fn { color: var(--flame); }
.tok-str { color: var(--gold); }
.tok-com { color: var(--text-faint); font-style: italic; }
.tok-num { color: #e0795b; }
.tok-glob { color: #7fd1ff; }

/* ============================================================
   COMMUNITY
   ============================================================ */
.community { text-align: center; }
.invite {
  margin: 48px auto 0; max-width: 540px;
  border: 1px solid var(--glass-line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(29,29,41,.7), rgba(16,16,23,.6));
  backdrop-filter: blur(12px);
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  text-align: left;
}
.invite__top { display: flex; align-items: center; gap: 16px; padding: 22px 22px 20px; }
.invite__icon { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, var(--violet-soft), var(--violet)); box-shadow: var(--glow-violet); }
.invite__icon svg { width: 30px; height: 30px; color: #fff; }
.invite__meta .small { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.invite__meta b { display: block; font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 600; }
.invite__meta .on { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.invite__meta .on i { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 8px var(--flame); }
.invite__btn { margin: 0 8px 8px; padding: 16px; border-radius: 14px; background: rgba(8,8,12,.5); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.invite__btn .url { font-family: 'Courier New', monospace; font-size: 14px; color: var(--text-dim); }
.invite__btn .url b { color: var(--flame); }

.bigstats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: 56px; }
.bigstat .n { font-family: var(--serif); font-weight: 600; font-size: 46px; color: #fff; line-height: 1; }
.bigstat .n b { color: var(--flame); }
.bigstat .l { font-family: var(--label); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; position: relative; z-index: 2; background: var(--bg-0); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__about p { color: var(--text-dim); font-size: 14.5px; max-width: 34ch; margin-top: 18px; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-dim); transition: .25s; }
.footer__social a:hover { color: var(--flame); border-color: rgba(61,249,138,.3); box-shadow: 0 0 20px rgba(31,184,91,.15); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--flame); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__bottom .disc { color: var(--text-faint); font-size: 12.5px; max-width: 70ch; }
.footer__bottom .cr { color: var(--text-faint); font-size: 12.5px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes flick { 0%,100% { transform: rotate(-2deg) scaleY(1); } 50% { transform: rotate(2deg) scaleY(1.08); } }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 10px var(--flame); } 50% { opacity: .4; box-shadow: 0 0 4px var(--flame); } }
@keyframes fogdrift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8%); } }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,8,12,.96); backdrop-filter: blur(16px);
    padding: 14px; gap: 4px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links a { padding: 14px; }
  .trio { grid-template-columns: 1fr; }
  .row, .row--rev { grid-template-columns: 1fr; }
  .row--rev .row__media { order: 0; }
  .media { min-height: 240px; border-left: none; border-top: 1px solid var(--glass-line); order: -1; }
  .row--rev .media { border-right: none; }
  .dev__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .browser__head, .srow { grid-template-columns: 1.6fr 0.8fr 100px; }
  .browser__head .h-tags, .browser__head .h-ping, .srow .stags, .srow .ping { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .hero__stats { gap: 26px; }
  .stat__num { font-size: 28px; }
  .row__body { padding: 36px 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .bigstats { gap: 36px; }
  .browser__head, .srow { grid-template-columns: 1.5fr 0.7fr 92px; }
  .nav__cta .btn--ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
