/* landing.css — Minemev
   Depends on base.css variables & font imports
   ──────────────────────────────────────────── */

/* ══ Shared section helpers ══════════════════ */
.section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section__label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* ══ Buttons ══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0d0e10;
}
.btn--primary:hover {
  background: #9fff40;
  box-shadow: 0 0 24px var(--accent-glow), 0 0 8px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: var(--bg-raised);
}

.btn--lg {
  padding: 15px 32px;
  font-size: 0.95rem;
}

/* ══ HERO ═════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-base);
}

/* Dot-grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

/* SVG noise overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.6;
}

/* Accent glow blob */
.hero__glow {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127,255,0,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.12); }
}

/* Floating cubes */
.hero__cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cube {
  position: absolute;
  color: var(--accent);
  opacity: 0;
  animation: cube-float 0s linear forwards;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cube svg { width: 100%; height: 100%; }

/* Distribute cubes */
.cube--1  { width:44px; top:8%;  left:72%; animation: cube-float 1.2s 0.1s forwards; }
.cube--2  { width:24px; top:22%; left:85%; animation: cube-float 1.2s 0.25s forwards; }
.cube--3  { width:56px; top:55%; left:78%; animation: cube-float 1.2s 0.4s forwards; }
.cube--4  { width:30px; top:70%; left:65%; animation: cube-float 1.2s 0.55s forwards; }
.cube--5  { width:18px; top:38%; left:90%; animation: cube-float 1.2s 0.3s forwards; }
.cube--6  { width:40px; top:80%; left:82%; animation: cube-float 1.2s 0.6s forwards; }
.cube--7  { width:22px; top:15%; left:60%; animation: cube-float 1.2s 0.45s forwards; }
.cube--8  { width:50px; top:45%; left:92%; animation: cube-float 1.2s 0.2s forwards; }
.cube--9  { width:28px; top:62%; left:55%; animation: cube-float 1.2s 0.7s forwards; }
.cube--10 { width:16px; top:5%;  left:95%; animation: cube-float 1.2s 0.35s forwards; }
.cube--11 { width:36px; top:88%; left:75%; animation: cube-float 1.2s 0.5s forwards; }
.cube--12 { width:20px; top:30%; left:68%; animation: cube-float 1.2s 0.15s forwards; }

@keyframes cube-float {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 0.2; transform: translateY(0) scale(1); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 120px);
  max-width: 760px;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: fade-up 0.8s 0.1s both;
}

.hero__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 28px;
  animation: fade-up 0.8s 0.2s both;
}

.hero__headline-line--accent {
  color: var(--accent);
  position: relative;
}

.hero__headline-line--accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.6s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes underline-in {
  to { transform: scaleX(1); }
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  animation: fade-up 0.8s 0.3s both;
}

.hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 36px;
  animation: fade-up 0.8s 0.4s both;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.5s both;
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 6vw, 120px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-up 1s 1s both;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-slide 2s ease-in-out infinite;
}

@keyframes scroll-slide {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══ STATS BAR ════════════════════════════════ */
.statsbar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 6vw, 120px);
  overflow: hidden;
}

.statsbar__inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.statsbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.statsbar__item.is-visible {
  opacity: 1;
  transform: none;
}

.statsbar__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.statsbar__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

.statsbar__divider {
  width: 1px;
  background: var(--border);
  margin: 16px 0;
}


/* ══ Shared bits for the sections below ═══════ */
.lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 20px 0 24px;
  max-width: 52ch;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

.text--accent { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Browser-window frame around screenshots */
.frame {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.frame img { display: block; width: 100%; height: auto; }
.frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
}
.frame__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-focus);
}
.frame__url {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool__kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ══ SOURCES ══════════════════════════════════ */
.sources {
  padding: 110px clamp(16px, 6vw, 120px);
  background: var(--bg-base);
}
.sources__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.sources__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.source--home {
  grid-column: 1 / -1;
  background: var(--bg-raised);
  border-top: 2px solid var(--accent);
}
.source__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.source__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}


/* ══ TOUR ═════════════════════════════════════ */
.tour {
  padding: 110px clamp(16px, 6vw, 120px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tour__header { max-width: 1280px; margin: 0 auto 48px; }
.tour__body {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.tour__tabs { display: flex; flex-direction: column; gap: 4px; }
.tour__tab {
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: 1px solid transparent;
  border-left: 2px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: background var(--transition), border-color var(--transition);
}
.tour__tab strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}
.tour__tab span { display: block; font-size: 0.85rem; line-height: 1.55; }
.tour__tab:hover { background: var(--bg-raised); }
.tour__tab.is-active {
  background: var(--bg-raised);
  border-color: var(--border);
  border-left-color: var(--accent);
}
.tour__tab.is-active strong { color: var(--accent); }
.tour__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tour__panels { position: relative; aspect-ratio: 1440 / 848; background: var(--bg-base); }
.tour__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tour__panel.is-active { opacity: 1; }


/* ══ SERVERS ══════════════════════════════════ */
.servers {
  position: relative;
  padding: 110px clamp(16px, 6vw, 120px) 90px;
  background: var(--bg-base);
  overflow: hidden;
}
.servers::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(127, 255, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.servers__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checks strong { color: var(--text-primary); font-weight: 600; }
.servers__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.servers__shots { position: relative; padding: 0 0 18% 12%; }
.servers__shot--front { position: relative; z-index: 1; }
.servers__shot--back {
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0;
  opacity: 0.55;
  filter: brightness(0.75);
  transform: rotate(-2deg);
}

.servers__logos {
  position: relative;
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.servers__logos[hidden] { display: none; }
.server-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.server-logo:hover { border-color: var(--accent-dim); color: var(--text-primary); }
.server-logo img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-raised);
}


/* ══ TOOLS ════════════════════════════════════ */
.tools {
  padding: 110px clamp(16px, 6vw, 120px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.tools__header { max-width: 1280px; margin: 0 auto 48px; }
.tools__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool {
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.tool:hover { border-color: var(--border-focus); transform: translateY(-3px); }
.tool--wide { grid-column: span 3; flex-direction: row; }
.tool--wide .tool__img { flex: 1.3; aspect-ratio: auto; }
.tool--wide .tool__body { flex: 1; align-self: center; padding: 40px; }
.tool--plain .tool__body { padding-top: 32px; }
.tool__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.tool--wide .tool__img { border-bottom: none; border-right: 1px solid var(--border); }
.tool__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.5s ease;
}
.tool:hover .tool__img img { transform: scale(1.03); }
.tool__body { padding: 24px; }
.tool h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.tool p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
/* the two text-only cards stack in the third column */
.tool-stack { display: flex; flex-direction: column; gap: 16px; }
.tool-stack .tool { flex: 1; }


/* ══ NEWS ═════════════════════════════════════ */
.news {
  padding: 110px clamp(16px, 6vw, 120px);
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}
.news[hidden] { display: none; }
.news__header {
  max-width: 1280px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.news__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition);
}
.news-card:hover { border-color: var(--border-focus); }
.news-card__img { aspect-ratio: 16 / 9; background: var(--bg-raised); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body { padding: 20px; }
.news-card__meta {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.news-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ══ MOD + APP ════════════════════════════════ */
.apps {
  padding: 90px clamp(16px, 6vw, 120px);
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}
.apps__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.app {
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.app h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.app p {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
}


/* ══ CTA BAND ═════════════════════════════════ */
.cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 100px clamp(24px, 6vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(127,255,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.cta__sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ══ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1000px) {
  .sources__inner,
  .servers__inner,
  .tour__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tour__tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .tour__tab {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }
  .tour__tab span { display: none; }
  .tour__tab.is-active { border-color: var(--accent); }

  .tools__grid { grid-template-columns: 1fr 1fr; }
  .tool--wide { grid-column: span 2; }
  .tool-stack { grid-column: span 2; flex-direction: row; }

  .news__grid { grid-template-columns: 1fr 1fr; }

  .statsbar__inner { flex-wrap: wrap; }
  .statsbar__item { flex: 1 1 30%; }
  .statsbar__divider { display: none; }

  .hero__cubes { display: none; }
}

@media (max-width: 640px) {
  .hero__headline { font-size: clamp(3.5rem, 18vw, 6rem); }

  .statsbar__item { flex: 1 1 45%; }

  .sources, .tour, .servers, .tools, .news, .apps { padding-top: 72px; padding-bottom: 72px; }

  .sources__grid { grid-template-columns: 1fr 1fr; }
  .source { padding: 18px 16px; }
  .source__name { font-size: 1.35rem; }

  .servers__shots { padding: 0; }
  .servers__shot--back { display: none; }

  .tools__grid,
  .news__grid,
  .apps__inner { grid-template-columns: 1fr; }
  .tool--wide { grid-column: auto; flex-direction: column; }
  .tool--wide .tool__img { aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--border); }
  .tool--wide .tool__body { padding: 24px; }
  .tool-stack { grid-column: auto; flex-direction: column; }

  .news__header { flex-direction: column; align-items: flex-start; }
  .app { padding: 26px; }

  .hero__actions,
  .cta__actions,
  .servers__actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ── APPEND THIS TO THE END OF landing.css ─────────────────────
   (placed before the RESPONSIVE block is fine too, but the
   responsive rules for these pieces are included below)       */

/* ══ Live stats extras (hero) ═════════════════ */
[data-stat] { font-variant-numeric: tabular-nums; }

.hero__stat-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -24px 0 28px;
  animation: fade-up 0.8s 0.45s both;
}
.hero__stat-sub[hidden] { display: none; }

.hero__minis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: 36px;
  animation: fade-up 0.8s 0.45s both;
}
.hero__mini { display: flex; align-items: baseline; gap: 8px; }
.hero__mini[hidden] { display: none; }
.hero__mini-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.hero__mini-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ══ TOP DOWNLOADS ════════════════════════════ */
.top {
  padding: 100px clamp(24px, 6vw, 120px);
  background: var(--bg-base);
}
.top[hidden] { display: none; }

.top__header {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.top__grid {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.top__grid > li {
  display: flex;
  opacity: 0;
  animation: fade-up 0.6s calc(var(--i, 0) * 0.06s) both;
}

.top-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.top-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  z-index: 1;
}
.top-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-subtle);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.top-card:hover::after { opacity: 1; }

.top-card--first { background: var(--bg-raised); }
.top-card--first::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 2;
}

.top-card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  background: rgba(13, 14, 16, 0.78);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 8px;
}
.top-card--first .top-card__rank {
  color: #0d0e10;
  background: var(--accent);
  border-color: var(--accent);
}

.top-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  overflow: hidden;
}
.top-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-card:hover .top-card__thumb img { transform: scale(1.04); }

.top-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.top-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.top-card__vendor {
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 6px;
}

.top-card__dl {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.top-card__dl svg { color: var(--accent); flex-shrink: 0; }
.top-card__dl strong {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.top__footer {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 560px) {
  .top { padding: 72px 24px; }
  .top__grid { grid-template-columns: 1fr; }
  .hero__stat-sub { margin-top: -20px; }
}