/* =======================================================================
   NotEnoughUpdates — notenoughupdate.com
   A Minecraft / NEU-overlay inspired landing page.
   ======================================================================= */

/* ---------- design tokens ---------- */
:root {
  --bg:            #0a0d17;
  --bg-2:          #10131f;
  --surface:       #151a2a;
  --surface-2:     #1c2238;
  --surface-3:     #242b44;
  --border:        #2b3353;
  --border-soft:   #1f2640;
  --ink:           #e8ebf4;
  --ink-2:         #b5bcd3;
  --ink-3:         #7a829c;
  --ink-4:         #545b74;

  /* Minecraft chat palette (§codes) */
  --mc-0: #000000; --mc-1: #0000AA; --mc-2: #00AA00; --mc-3: #00AAAA;
  --mc-4: #AA0000; --mc-5: #AA00AA; --mc-6: #FFAA00; --mc-7: #AAAAAA;
  --mc-8: #555555; --mc-9: #5555FF; --mc-a: #55FF55; --mc-b: #55FFFF;
  --mc-c: #FF5555; --mc-d: #FF55FF; --mc-e: #FFFF55; --mc-f: #FFFFFF;

  /* Rarity colours (SkyBlock-accurate) */
  --common:    #ffffff;
  --uncommon:  #55ff55;
  --rare:      #5555ff;
  --epic:      #aa00aa;
  --legendary: #ffaa00;
  --mythic:    #ff55ff;
  --divine:    #55ffff;
  --special:   #ff5555;

  --accent:        #ffbb3d;          /* NEU gold */
  --accent-2:      #55ffff;          /* NEU aqua */
  --accent-pink:   #ff6edf;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;

  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
  --shadow-md: 0 16px 30px -10px rgba(0,0,0,.55);

  --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--ff-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(255,187,61,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(85,255,255,.05), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(255,110,223,.06), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Global subtle grid texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 80%);
}

/* ---------- MC color classes (populated by script.js) ---------- */
.mc-0{color:var(--mc-0)}.mc-1{color:var(--mc-1)}.mc-2{color:var(--mc-2)}.mc-3{color:var(--mc-3)}
.mc-4{color:var(--mc-4)}.mc-5{color:var(--mc-5)}.mc-6{color:var(--mc-6)}.mc-7{color:var(--mc-7)}
.mc-8{color:var(--mc-8)}.mc-9{color:var(--mc-9)}.mc-a{color:var(--mc-a)}.mc-b{color:var(--mc-b)}
.mc-c{color:var(--mc-c)}.mc-d{color:var(--mc-d)}.mc-e{color:var(--mc-e)}.mc-f{color:var(--mc-f)}
.mc-l{font-weight:700}.mc-o{font-style:italic}.mc-n{text-decoration:underline}.mc-m{text-decoration:line-through}
.mc-r{color:inherit;font-weight:inherit;font-style:inherit;text-decoration:none}

/* Rarity foreground helpers (used directly where needed) */
.r-common-fg{color:var(--common)} .r-uncommon-fg{color:var(--uncommon)}
.r-rare-fg{color:var(--rare)} .r-epic-fg{color:var(--epic)}
.r-legendary-fg{color:var(--legendary)} .r-mythic-fg{color:var(--mythic)}
.r-red-fg{color:#ff6e6e} .r-green-fg{color:#7dffa3}
.r-gold-fg{color:var(--accent)} .r-aqua-fg{color:var(--accent-2)}
.r-yellow-fg{color:#ffea63} .r-gray-fg{color:var(--ink-3)}

/* ============================= NAV ============================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background:
    linear-gradient(to bottom, rgba(10,13,23,.88), rgba(10,13,23,.55));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,187,61,.3),
    0 6px 16px -6px rgba(255,187,61,.5);
  display: grid; place-items: center;
  image-rendering: pixelated;
}
.nav-logo svg { width: 100%; height: 100%; image-rendering: pixelated; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.nav-brand-text em {
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.nav-links { display: flex; gap: 6px; justify-self: center; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-links a.is-active { color: var(--accent); background: rgba(255,187,61,.08); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: color .15s, border-color .15s, background .15s;
}
.nav-ic:hover { color: var(--ink); border-color: var(--accent); background: rgba(255,187,61,.08); }

.nav-dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), #e89900);
  color: #231900;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 22px -10px rgba(255,187,61,.8), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .1s, box-shadow .2s;
}
.nav-dl:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(255,187,61,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.nav-dl-bolt { color: var(--accent); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  z-index: 1;
}
.hero-grid, .hero-glow { position: absolute; pointer-events: none; z-index: -1; }
.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}
.hero-glow-a { top: -10%; left: -5%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,187,61,.25), transparent 60%); filter: blur(20px); }
.hero-glow-b { bottom: -20%; right: -10%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(255,110,223,.2), transparent 60%); filter: blur(30px); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(85,255,85,.08);
  border: 1px solid rgba(85,255,85,.25);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero-badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mc-a);
  box-shadow: 0 0 0 0 rgba(85,255,85,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(85,255,85,.55); }
  70% { box-shadow: 0 0 0 10px rgba(85,255,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(85,255,85,0); }
}
.hero-badge-tag {
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(85,255,85,.18);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero-title-line1 {
  display: block;
  color: var(--ink);
}
.hero-title-line2 {
  display: block;
  margin-top: 6px;
  background: linear-gradient(100deg, var(--accent), var(--accent-pink) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-underline-word {
  position: relative;
  display: inline-block;
}
.hero-underline {
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  width: 100%; height: .26em;
  color: var(--accent);
  overflow: visible;
  opacity: .9;
}

.hero-sub {
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-sub b { color: var(--ink); font-weight: 700; }

.hero-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

/* --- Download buttons --- */
.dlbtn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font: 500 14px var(--ff-sans);
  transition: transform .12s, box-shadow .2s, border-color .2s, background .2s;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
}
.dlbtn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
}
.dlbtn:hover::before { transform: translateX(120%); }

.dlbtn-primary {
  background: linear-gradient(180deg, #ffcb5c, #ea9a00);
  color: #1d1500;
  box-shadow:
    0 14px 30px -14px rgba(255,187,61,.7),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.18);
}
.dlbtn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(255,187,61,.85), inset 0 1px 0 rgba(255,255,255,.45); }
.dlbtn-secondary {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--ink);
  border-color: var(--border);
}
.dlbtn-secondary:hover { transform: translateY(-2px); border-color: var(--accent-2); background: linear-gradient(180deg, #222944, #1a2036); }
.dlbtn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.dlbtn-ghost:hover { border-color: var(--accent); background: rgba(255,187,61,.05); }

.dlbtn-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.dlbtn-primary .dlbtn-icon { background: rgba(0,0,0,.14); color: #2a1e00; }
.dlbtn-secondary .dlbtn-icon { background: rgba(255,187,61,.1); color: var(--accent); }
.dlbtn-ghost .dlbtn-icon { background: rgba(85,255,255,.08); color: var(--accent-2); }

.dlbtn-body {
  display: flex; flex-direction: column;
  line-height: 1.15;
  gap: 3px;
  min-width: 0;
}
.dlbtn-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--ff-mono);
  opacity: .75;
}
.dlbtn-primary .dlbtn-eyebrow { color: #5c3f00; opacity: 1; }
.dlbtn-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.dlbtn-tag {
  flex: 0 0 auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: .04em;
  background: rgba(0,0,0,.18);
  color: inherit;
}
.dlbtn-secondary .dlbtn-tag,
.dlbtn-ghost .dlbtn-tag {
  background: rgba(255,255,255,.05);
  color: var(--ink-3);
}

.hero-proof {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: 14px 12px;
}
.hero-proof li { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; border-right: 1px solid var(--border-soft); }
.hero-proof li:last-child { border-right: 0; }
.hero-proof b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero-proof span { font-size: 12px; color: var(--ink-3); font-family: var(--ff-mono); }

/* ============================= BROWSER (hero right) ============================= */
.browser {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  transform: rotate(1deg);
  transition: transform .3s ease;
}
.browser:hover { transform: rotate(0deg); }
.browser::before {
  /* pixelated gradient haze */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(480px 320px at 120% -10%, rgba(255,187,61,.14), transparent 70%),
    radial-gradient(380px 320px at -20% 120%, rgba(255,110,223,.18), transparent 70%);
  z-index: -1;
}
.browser-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid var(--border);
}
.browser-tabs { display: flex; gap: 4px; }
.browser-tab {
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid transparent;
  border-bottom: none;
}
.browser-tab.is-active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--accent);
  box-shadow: 0 2px 0 var(--surface);
  position: relative; top: 1px;
}
.browser-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.browser-search svg { color: var(--ink-3); flex: 0 0 14px; }
.browser-search-q { color: var(--accent); }
.browser-search-caret {
  width: 2px; height: 14px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.browser-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  padding: 18px;
}

/* Slot grid (item browser side) */
.slots {
  list-style: none;
  margin: 0; padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #c6c6c6;
  border: 3px solid;
  border-top-color: #555555;
  border-left-color: #555555;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
  box-shadow:
    inset 0 0 0 1px #8b8b8b,
    0 0 0 2px #2a2a2a;
  image-rendering: pixelated;
}
.slot {
  position: relative;
  aspect-ratio: 1;
  background: #8b8b8b;
  border: 2px solid;
  border-top-color: #373737;
  border-left-color: #373737;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
  border-radius: 0;
  display: grid; place-items: center;
  transition: transform .15s, filter .15s;
  box-shadow: inset 0 0 0 1px #555;
}
.slot:hover { transform: translateY(-1px) scale(1.04); filter: brightness(1.25); z-index: 2; }
.slot.selected {
  animation: slot-glow 2.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes slot-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px #555, 0 0 0 2px var(--mythic), 0 0 16px -2px rgba(255,85,255,.55); }
  50%      { box-shadow: inset 0 0 0 1px #555, 0 0 0 2px var(--mythic), 0 0 26px -2px rgba(255,85,255,.85); }
}

.slot-count {
  position: absolute; right: 2px; bottom: 0px;
  font-family: var(--ff-mono);
  font-size: 10px; font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.slot-star {
  position: absolute; top: 2px; right: 3px;
  font-size: 10px; line-height: 1;
  color: var(--mythic);
  text-shadow: 0 0 6px var(--mythic);
}

/* Pixel-art SVG item sprites (shared symbols defined in markup) */
.sprite {
  width: 84%; height: 84%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.6));
}
.slot.selected .sprite {
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.6)) drop-shadow(0 0 8px rgba(255,85,255,.55));
  animation: sprite-bob 2.8s ease-in-out infinite;
}
@keyframes sprite-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.slot:not(.selected) .sprite { transition: transform .15s; }
.slot:hover .sprite { transform: scale(1.08); }

/* Rarity glow — stays on top of the Minecraft bevel */
.slot.r-common    { box-shadow: inset 0 0 0 1px #555; }
.slot.r-rare      { box-shadow: inset 0 0 0 1px #555, 0 0 0 1px var(--rare),      0 0 10px -2px rgba(85,85,255,.5); }
.slot.r-epic      { box-shadow: inset 0 0 0 1px #555, 0 0 0 1px var(--epic),      0 0 10px -2px rgba(170,0,170,.5); }
.slot.r-legendary { box-shadow: inset 0 0 0 1px #555, 0 0 0 1px var(--legendary), 0 0 10px -2px rgba(255,170,0,.55); }
.slot.r-mythic    { box-shadow: inset 0 0 0 1px #555, 0 0 0 1px var(--mythic),    0 0 12px -2px rgba(255,85,255,.6); }

/* Minecraft-style tooltip */
.tooltip {
  position: relative;
  background: #100022;
  border: 2px solid;
  border-image: linear-gradient(180deg, #2a0068, #5a0ccc) 1;
  padding: 8px 10px 10px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.35;
  color: #c8c8d8;
  box-shadow: 0 0 0 2px #100022, 0 0 0 4px rgba(90,12,204,.4), var(--shadow-md);
  max-height: 100%;
}
.tooltip::after {
  /* Minecraft classic inner border */
  content: "";
  position: absolute; inset: 2px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.03);
}
.tt-title {
  font-size: 14px; font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .02em;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.tt-sub { color: var(--ink-3); font-size: 11px; margin-bottom: 8px; }
.tt-stats { display: grid; gap: 2px; margin-bottom: 8px; }
.tt-stats .tt-k { color: var(--mc-7); }
.tt-stats .tt-v { font-weight: 600; }
.tt-lore p { margin: 0 0 2px; color: var(--mc-7); }
.tt-lore .tt-cd { margin-top: 6px; color: var(--mc-3); }
.tt-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.tt-foot > div:first-child {
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255,85,255,.45);
  letter-spacing: .04em;
}
.tt-version { color: var(--ink-4); font-size: 11px; margin-top: 2px; }

.browser-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.browser-foot span { padding: 3px 7px; background: rgba(255,255,255,.04); border-radius: 5px; }

/* ============================= STRIP ============================= */
.strip {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(255,187,61,.04) 50%, transparent);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.strip-row {
  display: flex; flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.strip-row span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 28px;
  border-right: 1px solid var(--border-soft);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================= SECTION HEADER ============================= */
.sec-head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 28px;
  text-align: center;
}
.sec-kicker {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.sec-head h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -.025em;
  font-weight: 800;
  line-height: 1.1;
}
.sec-head p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--ink-2);
}

/* ============================= FEATURES ============================= */
.features { max-width: var(--maxw); margin: 0 auto; padding: 90px 28px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feat {
  --rarity: var(--rare);
  position: relative;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(16,0,34,.9), rgba(6,0,20,.94));
  border: 2px solid var(--rarity);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 12px 30px -14px rgba(0,0,0,.6),
    0 0 22px -12px var(--rarity);
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.45;
  color: #b6b6c8;
  transition: transform .18s, box-shadow .25s;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 20px 44px -14px rgba(0,0,0,.7),
    0 0 34px -10px var(--rarity);
}
.feat::before {
  content: "";
  position: absolute; inset: 2px;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
  border-radius: 7px;
}
.feat-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  letter-spacing: .01em;
  color: var(--rarity);
}
.feat-sub { color: var(--ink-4); margin-bottom: 10px; font-size: 11px; }
.feat-lore { margin: 0 0 2px; color: var(--mc-7); }
.feat-lore .k {
  background: rgba(255,187,61,.1);
  padding: 1px 6px; border-radius: 4px;
  color: var(--accent);
}
.feat-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--rarity);
  text-shadow: 0 0 10px color-mix(in srgb, var(--rarity) 50%, transparent);
}
.feat-lg { grid-column: span 2; min-height: 170px; }
@media (max-width: 760px) { .feat-lg { grid-column: auto; } }

/* ============================= INSTALL (chat) ============================= */
.install { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px; }

.chat {
  max-width: 920px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
}
.chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
  color: var(--ink-3);
}
.chat-head-dot { line-height: 1; }
.chat-head-title { color: var(--ink); font-weight: 700; }

.chat-log {
  list-style: none; margin: 0; padding: 18px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
  color: #e6e6e6;
}
.chat-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.chat-prefix { font-weight: 700; flex: 0 0 auto; }
.chat-who { font-weight: 700; flex: 0 0 auto; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.chat-arrow { color: var(--mc-7); flex: 0 0 auto; }
.chat-msg { flex: 1 1 100%; margin-left: 34px; color: #e6e6e6; }
.chat-msg code, .chat-code { font-family: var(--ff-mono); }
.chat-msg code {
  background: rgba(255,187,61,.1);
  padding: 1px 6px; border-radius: 4px;
  color: var(--accent);
}
.chat-msg a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(85,255,255,.3); text-underline-offset: 3px; }
.chat-msg a:hover { text-decoration-color: var(--accent-2); }

.chat-code {
  margin: 10px 0 0 34px;
  padding: 12px 14px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.05);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 13px;
  color: #cfcfcf;
  white-space: normal;
  word-break: break-word;
}

.inline-dls { margin: 10px 0 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-dl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(180deg, var(--accent), #e89900);
  color: #1d1500;
  font-weight: 700; font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .1s;
}
.inline-dl:hover { transform: translateY(-1px); }
.inline-dl.alt {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--accent-2);
  border: 1px solid var(--border);
  box-shadow: none;
}

.chat-system .chat-msg { color: var(--mc-a); margin-left: 0; }
.chat-system .chat-who { color: var(--mc-a) !important; }

/* ============================= COMMANDS ============================= */
.commands { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px; }
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cmd {
  position: relative;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .15s;
}
.cmd:hover { border-color: var(--accent); transform: translateY(-2px); }
.cmd code {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--accent);
  background: rgba(255,187,61,.08);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,187,61,.15);
  margin-bottom: 10px;
}
.cmd p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cmd .copy {
  position: absolute; top: 14px; right: 14px;
  font: 600 11px var(--ff-mono);
  padding: 5px 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}
.cmd .copy:hover { color: var(--accent); border-color: var(--accent); }
.cmd .copy.is-copied { color: var(--mc-a); border-color: var(--mc-a); background: rgba(85,255,85,.08); }

/* ============================= COMPAT ============================= */
.compat { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px; }
.compat-wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .compat-wrap { grid-template-columns: 1fr; } }
.compat-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.compat-table th, .compat-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.compat-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); background: rgba(255,255,255,.02); font-family: var(--ff-mono); }
.compat-table tr:last-child td { border-bottom: 0; }
.compat-table td:first-child { font-weight: 600; color: var(--ink); }
.compat-table td:nth-child(2) { color: var(--ink-2); }
.compat-table td:nth-child(3) { color: var(--accent-2); }

.compat-note {
  padding: 22px;
  background: linear-gradient(160deg, rgba(85,255,85,.06), rgba(85,255,255,.04));
  border: 1px solid rgba(85,255,85,.2);
  border-radius: var(--radius);
}
.compat-note h3 { margin: 0 0 10px; font-size: 16px; color: var(--mc-a); }
.compat-note p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ============================= FAQ ============================= */
.faq { max-width: 920px; margin: 0 auto; padding: 80px 28px; }
.faq-list { display: grid; gap: 12px; }
.q {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.q[open] { border-color: var(--accent); box-shadow: 0 10px 30px -15px rgba(255,187,61,.25); }
.q summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
  font-size: 16px;
}
.q summary::-webkit-details-marker { display: none; }
.q-k {
  font-family: var(--ff-mono);
  color: var(--accent);
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  flex: 0 0 auto;
}
.chev {
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .2s, border-color .2s;
}
.q[open] .chev { transform: rotate(-135deg); border-color: var(--accent); }
.q p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.q p a { color: var(--accent-2); border-bottom: 1px solid rgba(85,255,255,.3); }
.q p a:hover { color: #fff; border-bottom-color: var(--accent-2); }
.q p code {
  font-family: var(--ff-mono); font-size: 13px;
  background: rgba(255,187,61,.1);
  padding: 1px 6px; border-radius: 4px;
  color: var(--accent);
}

/* ============================= COMMUNITY ============================= */
.community { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 100px; }
.community-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding: 44px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,187,61,.12), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255,110,223,.12), transparent 50%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.community-card h2 { margin: 6px 0 10px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.community-card p { margin: 0; color: var(--ink-2); }
.community-actions { display: grid; gap: 12px; }
@media (max-width: 760px) { .community-card { grid-template-columns: 1fr; padding: 28px; } }

/* ============================= FOOTER ============================= */
.foot {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  border-top: 1px solid var(--border-soft);
  padding: 60px 28px 30px;
  margin-top: 40px;
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand p { color: var(--ink-2); margin: 14px 0 10px; font-size: 14px; max-width: 42ch; }
.foot-legal { font-size: 12px; color: var(--ink-4); }

.foot-col h4 {
  margin: 0 0 14px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14px;
  transition: color .15s;
}
.foot-col a:hover { color: var(--accent); }

.foot-bar {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-4);
  font-size: 12px;
  font-family: var(--ff-mono);
}
.foot-bar-links { display: flex; gap: 16px; }
.foot-bar-links a { color: var(--ink-3); }
.foot-bar-links a:hover { color: var(--accent); }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }
  .browser { transform: none; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: auto auto; padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 36px 18px; }
  .hero-ctas { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero-proof li { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 8px; }
  .hero-proof li:nth-last-child(-n+2) { border-bottom: 0; }
  .features, .install, .commands, .compat, .faq, .community { padding-left: 18px; padding-right: 18px; }
  .browser-body { grid-template-columns: 1fr; }
  .sec-head { padding: 0 18px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .strip-row { animation: none; }
}

/* Print */
@media print {
  .nav, .strip, .community, .foot, .browser { display: none; }
}
