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

/* ── Rainbow palette (same as logo / rooms) ────────────────────────────────── */
:root {
  --red:     #ff1040;
  --orange:  #ff6010;
  --amber:   #ffb000;
  --yellow:  #ffe000;
  --lime:    #60e000;
  --green:   #00d060;
  --teal:    #00e0cc;
  --cyan:    #00c4ff;
  --blue:    #0070ff;
  --indigo:  #5500ff;
  --violet:  #9900ee;
  --magenta: #dd00bb;

  /* Layout */
  --bg:      #07070f;
  --bg1:     #0d0d1c;
  --bg2:     #121224;
  --card:    #0f0f1e;
  --text:    #ddddf0;
  --text-dim:#6e6e9a;
  --white:   #f4f4ff;
  --border:  rgba(255,255,255,0.06);
  --radius:  3px;
  --radius-lg:5px;
  --font-mono:'JetBrains Mono','Fira Code','Cascadia Code',monospace;
  --font-sans:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',sans-serif;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid — same as rooms and logo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--white); }
img { display: block; max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--white); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 88px 0; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1rem; max-width: 540px; margin-bottom: 48px; }

/* Per-section accent colors */
#hero          .section-eyebrow, #hero          .hero-eyebrow { color: var(--teal); }
#features      .section-eyebrow { color: var(--cyan); }
#gallery       .section-eyebrow { color: var(--violet); }
#visualizations .section-eyebrow { color: var(--magenta); }
#code-section  .section-eyebrow { color: var(--lime); }
#download      .section-eyebrow { color: var(--orange); }
#links         .section-eyebrow { color: var(--amber); }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
  position: relative; z-index: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--red);  border-color: var(--red);  color: #000; }
.btn-primary:hover  { box-shadow: 0 0 16px var(--red); color: #000; }

.btn-outline  { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover  { background: var(--teal); color: #000; box-shadow: 0 0 14px var(--teal); }

.btn-ghost    { background: transparent; border-color: rgba(255,255,255,0.14); color: var(--text-dim); }
.btn-ghost:hover    { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
#main-nav.scrolled {
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; }
.nav-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 0.86rem; font-weight: 500;
  padding: 5px 10px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.nav-links a:hover { color: var(--teal); border-color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Language switcher */
.lang-switcher {
  display: flex; gap: 1px;
  background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px;
}
.lang-btn {
  background: none; border: none; color: var(--text-dim);
  font-size: 0.7rem; font-weight: 700; padding: 3px 7px;
  border-radius: 2px; cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: var(--font-sans); letter-spacing: 0.02em;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--teal); color: #000; }

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--text-dim); border-radius: 1px; transition: transform 0.18s, opacity 0.18s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 60px;
  position: relative; overflow: hidden;
  background: var(--bg);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Teal accent lines across hero (like a room wall grid) */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,224,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Red accent glow blob — flat color, not gradient */
.hero-bg::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  width: 50vw; height: 60vh;
  background: rgba(255,16,64,0.04);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; width: 100%;
}

.hero-content { max-width: 580px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
  padding: 4px 12px;
  background: var(--bg1);
  border: 1px solid var(--teal);
  border-radius: 99px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 6px var(--teal);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  white-space: pre-line;
  margin-bottom: 20px;
  color: var(--white);
  /* No gradient — solid white, title stands alone */
}

.hero-sub { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual — screenshots */
.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.hero-shot {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,224,204,0.25);
}
.hero-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s; filter: brightness(0.88);
}
.hero-shot:hover img { transform: scale(1.04); filter: brightness(1); }

.hero-shot-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 5px 8px; font-size: 0.68rem; color: var(--white);
  background: rgba(0,0,0,0.55); pointer-events: none;
}
.hero-shot.large { grid-column: span 2; }

/* ── ACCENT STRIPE ────────────────────────────────────────────────────────── */
/* Hard color stops — no smooth blending */
.accent-stripe {
  height: 2px;
  background:
    linear-gradient(90deg,
      #ff1040 0%    8.33%,
      #ff6010 8.33% 16.66%,
      #ffb000 16.66% 25%,
      #ffe000 25%   33.33%,
      #60e000 33.33% 41.66%,
      #00d060 41.66% 50%,
      #00e0cc 50%   58.33%,
      #00c4ff 58.33% 66.66%,
      #0070ff 66.66% 75%,
      #5500ff 75%   83.33%,
      #9900ee 83.33% 91.66%,
      #dd00bb 91.66% 100%
    );
}

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
#features { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}

.feature-card {
  background: var(--card); padding: 30px 26px;
  transition: background 0.15s;
  border-top: 2px solid transparent;
}
.feature-card:hover { background: #13132a; }

/* Rainbow top border per card */
.feature-card:nth-child(1) { border-top-color: var(--teal); }
.feature-card:nth-child(2) { border-top-color: var(--red); }
.feature-card:nth-child(3) { border-top-color: var(--cyan); }
.feature-card:nth-child(4) { border-top-color: var(--violet); }
.feature-card:nth-child(5) { border-top-color: var(--lime); }
.feature-card:nth-child(6) { border-top-color: var(--orange); }

.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden; padding: 2px;
  background: var(--bg2); border: 1px solid var(--border);
}
.feature-icon img { width: 40px; height: 40px; border-radius: 2px; }

.feature-card h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--white); }
.feature-card p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ── GALLERY ──────────────────────────────────────────────────────────────── */
#gallery { background: var(--bg); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}

.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  position: relative; cursor: pointer; background: var(--card);
  transition: border-color 0.2s;
}
.gallery-item img {
  width: 100%; height: 180px; object-fit: cover; object-position: center;
  transition: transform 0.3s, filter 0.2s; filter: brightness(0.82);
}
.gallery-item:hover { border-color: var(--violet); }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.05); }

.gallery-item-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 10px 8px; font-size: 0.68rem; font-weight: 600;
  color: var(--white); background: rgba(0,0,0,0.6);
  letter-spacing: 0.04em; pointer-events: none;
}
.gallery-item.featured { grid-column: span 2; }
.gallery-item.featured img { height: 220px; }

/* Rainbow border on hover cycling by nth-child */
.gallery-item:nth-child(1):hover { border-color: var(--red); }
.gallery-item:nth-child(2):hover { border-color: var(--orange); }
.gallery-item:nth-child(3):hover { border-color: var(--amber); }
.gallery-item:nth-child(4):hover { border-color: var(--lime); }
.gallery-item:nth-child(5):hover { border-color: var(--teal); }
.gallery-item:nth-child(6):hover { border-color: var(--cyan); }
.gallery-item:nth-child(7):hover { border-color: var(--violet); }
.gallery-item:nth-child(8):hover { border-color: var(--magenta); }

/* ── LIGHTBOX ─────────────────────────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  backdrop-filter: blur(8px);
}
#lightbox.open { display: flex; }
#lb-img {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--teal);
  box-shadow: 0 0 40px rgba(0,224,204,0.2);
}
#lb-caption { color: var(--text-dim); font-size: 0.82rem; letter-spacing: 0.05em; }
#lb-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  font-size: 1.4rem; cursor: pointer; padding: 2px 8px;
  border-radius: var(--radius); transition: color 0.12s, border-color 0.12s;
}
#lb-close:hover { color: var(--white); border-color: var(--red); }

/* ── VISUALIZATIONS ──────────────────────────────────────────────────────── */
#visualizations { background: var(--bg); border-top: 1px solid var(--border); }

.viz-scroll-wrap { position: relative; }
.viz-scroll-track {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.viz-scroll-track::-webkit-scrollbar { height: 3px; }
.viz-scroll-track::-webkit-scrollbar-track { background: var(--bg1); }
.viz-scroll-track::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 2px; }

.viz-card {
  flex: 0 0 auto; width: 300px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s, transform 0.15s;
  background: var(--card);
}
.viz-card:nth-child(odd):hover  { border-color: var(--magenta); transform: translateY(-2px); }
.viz-card:nth-child(even):hover { border-color: var(--violet);  transform: translateY(-2px); }
.viz-card img { width: 100%; display: block; }
.viz-card-label {
  padding: 6px 10px; font-size: 0.68rem; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.05em;
  border-top: 1px solid var(--border); background: var(--bg1);
  font-family: var(--font-mono);
}

.viz-maps-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--magenta);
  margin: 44px 0 14px;
}
.viz-maps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.viz-map-panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--card); cursor: pointer;
  transition: border-color 0.2s;
}
.viz-map-panel:nth-child(1) { border-top: 2px solid var(--magenta); }
.viz-map-panel:nth-child(2) { border-top: 2px solid var(--violet); }
.viz-map-panel:nth-child(3) { border-top: 2px solid var(--cyan); }
.viz-map-panel:hover { border-color: var(--magenta); }

.viz-map-panel-header {
  padding: 7px 12px; border-bottom: 1px solid var(--border);
  background: var(--bg2); display: flex; align-items: center; gap: 8px;
}
.viz-map-panel-name { font-size: 0.68rem; font-family: var(--font-mono); color: var(--text-dim); }

.viz-map-scroll { height: 360px; overflow-y: auto; overflow-x: hidden; }
.viz-map-scroll::-webkit-scrollbar { width: 3px; }
.viz-map-scroll::-webkit-scrollbar-track { background: var(--bg1); }
.viz-map-scroll::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 2px; }
.viz-map-scroll img { width: 100%; display: block; }

/* ── CODE SECTION ─────────────────────────────────────────────────────────── */
#code-section { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.code-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--lime);
  border-radius: var(--radius-lg); overflow: hidden;
}

.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: var(--bg2); border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 5px; }
.code-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-dot.red   { background: var(--red); }
.code-dot.amber { background: var(--amber); }
.code-dot.green { background: var(--lime); }

.code-filename { font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }

.copy-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.68rem; padding: 2px 8px; border-radius: 2px; cursor: pointer;
  font-family: var(--font-mono); transition: color 0.12s, border-color 0.12s;
}
.copy-btn:hover { color: var(--lime); border-color: var(--lime); }

pre { margin: 0; padding: 18px; overflow-x: auto; }
code { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.75; color: #c8d0e0; }

.lang-tabs { display: flex; gap: 3px; margin-bottom: 22px; flex-wrap: wrap; }
.lang-tab {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius); cursor: pointer; transition: all 0.12s;
  font-family: var(--font-sans);
}
.lang-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.lang-tab.active { background: var(--lime); border-color: var(--lime); color: #000; }

/* ── DOWNLOAD ─────────────────────────────────────────────────────────────── */
#download { background: var(--bg); }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }

.dl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  border-left: 2px solid var(--orange);
  transition: border-color 0.15s;
}
.dl-card:nth-child(2) { border-left-color: var(--amber); }
.dl-card:hover { border-color: var(--orange); }
.dl-card h3 { font-size: 0.9rem; margin-bottom: 12px; color: var(--white); }

.cmd-block {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px;
}
.cmd-text { flex: 1; font-family: var(--font-mono); font-size: 0.8rem; color: var(--lime); }

/* ── LINKS ────────────────────────────────────────────────────────────────── */
#links { background: var(--bg1); border-top: 1px solid var(--border); }

.links-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }

.link-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 18px;
  text-decoration: none; display: block;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  border-top: 2px solid transparent;
}
.link-card:nth-child(1) { border-top-color: var(--teal); }
.link-card:nth-child(2) { border-top-color: var(--blue); }
.link-card:nth-child(3) { border-top-color: var(--violet); }
.link-card:nth-child(4) { border-top-color: var(--magenta); }
.link-card:nth-child(5) { border-top-color: var(--amber); }

.link-card:hover { background: #13132a; transform: translateY(-2px); color: var(--text); }
.link-card:nth-child(1):hover { border-color: var(--teal); }
.link-card:nth-child(2):hover { border-color: var(--blue); }
.link-card:nth-child(3):hover { border-color: var(--violet); }
.link-card:nth-child(4):hover { border-color: var(--magenta); }
.link-card:nth-child(5):hover { border-color: var(--amber); }

.link-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.link-card h3 { font-size: 0.88rem; margin-bottom: 5px; color: var(--white); }
.link-card p  { font-size: 0.75rem; color: var(--text-dim); line-height: 1.5; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border); padding: 36px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; position: relative; z-index: 1;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 26px; height: 26px; }
.footer-tagline { font-size: 0.75rem; color: var(--text-dim); }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 18px; list-style: none; }
.footer-links a { font-size: 0.75rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--teal); }

/* ── CODE DOTS (shared) ───────────────────────────────────────────────────── */
.code-dots { display: flex; gap: 5px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .links-grid    { grid-template-columns: repeat(3, 1fr); }
  .code-layout   { grid-template-columns: 1fr; }
  .viz-maps-row  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  #nav-menu {
    display: none; position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(7,7,15,0.97); backdrop-filter: blur(12px);
    padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 2px;
  }
  #nav-menu.open { display: flex; }
  #nav-menu a { color: var(--text); font-size: 1rem; padding: 10px 0; border-bottom: 1px solid var(--border); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; }
  .dl-grid       { grid-template-columns: 1fr; }
  .links-grid    { grid-template-columns: 1fr 1fr; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .links-grid   { grid-template-columns: 1fr; }
  .lang-switcher { gap: 0; }
  .lang-btn { padding: 3px 5px; font-size: 0.62rem; }
  .viz-card { width: 260px; }
}
