/* ============================================
   ArtNet Manager — Distribution Site v3
   Apple-inspired, dark, animated
   ============================================ */

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

:root {
  --bg: #06060a;
  --surface: #0d0d14;
  --card: #111119;
  --card-hover: #16161f;
  --border: #1c1c2a;
  --border-light: #2a2a3d;
  --cyan: #22d3ee;
  --cyan-dim: #0e7490;
  --violet: #a78bfa;
  --violet-dim: #6d28d9;
  --emerald: #34d399;
  --amber: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --text: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #3f3f50;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.125rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  background: var(--cyan); color: #000;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #67e8f9; color: #000; transform: translateY(-1px); }

/* --- Hero --- */
#hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow */
#hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.06) 0%, rgba(167, 139, 250, 0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* Canvas background */
.hero-canvas-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, black 30%, transparent 80%);
}
.hero-canvas-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin: 0 auto 2rem;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15), 0 0 120px rgba(167, 139, 250, 0.08);
}

.hero-title { margin-bottom: 1.25rem; }
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex; justify-content: center; gap: 0.75rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border-light);
  background: rgba(13, 13, 20, 0.6);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }

.hero-cta {
  display: flex; justify-content: center; gap: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 600;
  transition: all .2s; border: none; cursor: pointer;
}
.btn-primary {
  background: var(--cyan); color: #000;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}
.btn-primary:hover {
  background: #67e8f9; color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.3);
}
.btn-secondary {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

/* ===================================
   Canvas Section (separators)
   =================================== */
.canvas-section {
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin-bottom: -140px;  /* overlap into the next pillar section */
}

.canvas-container {
  width: 100%;
  height: 360px;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 100%);
}
.canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .canvas-section { margin-bottom: -80px; }
  .canvas-container { height: 220px; }
}

/* ===================================
   Hero Features — 3 Pillars
   =================================== */
#hero-features,
#hero-features-2,
#hero-features-3 {
  position: relative;
  z-index: 1;
}
#hero-features {
  padding: 0;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--border);
}

/* Pillars following a canvas animation don't need border-top */
#hero-features .pillar,
#hero-features-2 .pillar,
#hero-features-3 .pillar {
  border-top: none;
}

.pillar-reverse { direction: rtl; }
.pillar-reverse > * { direction: ltr; }

.pillar-text { max-width: 420px; }
.pillar-text h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
.pillar-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Pillar Visual Container */
.pillar-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.pillar-screenshot-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.25) saturate(1.6);
  transform: scale(1.15);
  z-index: 0;
}

/* Collage crop panels */
.pillar-crops {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  padding: 1rem;
  gap: 8px;
}

.pillar-crop {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pillar-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Routing: 2col x 2row, main spans rows */
.pillar-crops--routing {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main sub1"
    "main sub2";
}
.pillar-crops--routing .crop-main  { grid-area: main; }
.pillar-crops--routing .crop-sub1  { grid-area: sub1; }
.pillar-crops--routing .crop-sub2  { grid-area: sub2; }

/* Recording: 2col, sub items left stacked */
.pillar-crops--recording {
  grid-template-columns: 0.6fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "sub1 main"
    "sub2 main"
    "sub3 main";
}
.pillar-crops--recording .crop-main { grid-area: main; }
.pillar-crops--recording .crop-sub1 { grid-area: sub1; }
.pillar-crops--recording .crop-sub2 { grid-area: sub2; }
.pillar-crops--recording .crop-sub3 { grid-area: sub3; }

/* Single image: full area */
.pillar-crops--single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "main";
}
.pillar-crops--single .crop-main { grid-area: main; }

/* Visualization: 2col, main large */
.pillar-crops--viz {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main sub1"
    "main sub2";
}
.pillar-crops--viz .crop-main { grid-area: main; }
.pillar-crops--viz .crop-sub1 { grid-area: sub1; }
.pillar-crops--viz .crop-sub2 { grid-area: sub2; }

/* --- Features Grid --- */
#features {
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all .25s;
}
.feature-card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon.cyan    { background: rgba(34, 211, 238, 0.1);  color: var(--cyan); }
.feature-icon.violet  { background: rgba(167, 139, 250, 0.1); color: var(--violet); }
.feature-icon.emerald { background: rgba(52, 211, 153, 0.1);  color: var(--emerald); }
.feature-icon.amber   { background: rgba(251, 191, 36, 0.1);  color: var(--amber); }
.feature-icon.orange  { background: rgba(249, 115, 22, 0.1);  color: var(--orange); }
.feature-icon.red     { background: rgba(239, 68, 68, 0.1);   color: var(--red); }

.feature-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.feature-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* --- Coming Soon Teaser --- */
#teaser {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0 5rem;
  border-top: none;
}

/* Horizon glow — abstract light on the horizon */
.teaser-horizon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 58%, rgba(167, 139, 250, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 20% at 50% 62%, rgba(34, 211, 238, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.02) 40%, rgba(109, 40, 217, 0.04) 55%, rgba(167, 139, 250, 0.015) 65%, transparent 85%);
}

/* Horizon line */
.teaser-horizon::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.15) 20%, rgba(34, 211, 238, 0.1) 50%, rgba(167, 139, 250, 0.15) 80%, transparent 100%);
}

.teaser-content {
  position: relative;
  z-index: 1;
}

.teaser-label {
  color: var(--violet) !important;
  border-color: rgba(167, 139, 250, 0.25) !important;
  letter-spacing: 0.15em;
}

.teaser-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(228, 228, 231, 0.5) 0%, rgba(63, 63, 80, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.teaser-desc {
  color: var(--text-dim) !important;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 4rem !important;
}

.teaser-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.teaser-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.12) 30%, rgba(167, 139, 250, 0.12) 70%, transparent 100%);
  flex-shrink: 0;
}

.teaser-card {
  flex: 1;
  padding: 0 2.5rem;
  text-align: center;
}

.teaser-card-inner {
  max-width: 240px;
  margin: 0 auto;
}

.teaser-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.teaser-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  #teaser { padding: 4rem 0 3.5rem; }

  .teaser-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .teaser-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.12) 30%, rgba(167, 139, 250, 0.12) 70%, transparent 100%);
    margin: 2rem 0;
  }

  .teaser-card { padding: 0 1rem; }
}

/* --- Tech Stack --- */
#tech {
  border-top: 1px solid var(--border);
  text-align: center;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tech-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tech-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card.wide { grid-column: span 1; }
  .download-grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-universe-grid { grid-template-columns: 1fr; }
  .mockup-body { flex-direction: column; }
  .mock-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; align-items: center; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }

/* --- Glow effects --- */
.glow-cyan { box-shadow: 0 0 40px rgba(34, 211, 238, 0.1); }
.glow-violet { box-shadow: 0 0 40px rgba(167, 139, 250, 0.1); }

/* --- Mac ADP Warning Tooltip --- */
.mac-btn-wrap {
  position: relative;
  display: inline-block;
}
.mac-adp-tooltip {
  display: none;
  pointer-events: auto;
  position: absolute;
  bottom: 100%;
  margin-bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: rgba(20, 14, 4, 0.97);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(251, 191, 36, 0.9);
  z-index: 200;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
/* Invisible bridge fills the gap so mouse can reach the tooltip */
.mac-adp-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
/* Visible arrow */
.mac-adp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(251, 191, 36, 0.5);
  pointer-events: none;
}
.mac-adp-tooltip a {
  display: block;
  margin-top: 6px;
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 600;
}
.mac-btn-wrap:hover .mac-adp-tooltip,
.mac-adp-tooltip:hover {
  display: flex;
}

/* --- Hero Screenshot --- */
.hero-screenshot {
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 0;
}
.hero-screenshot-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  background: #1a1a24;
}
.hero-screenshot-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a24;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hero-screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.hero-screenshot-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  margin-left: -54px;
}
.hero-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Screenshots Gallery --- */
#screenshots { border-top: 1px solid var(--border); }
.gallery { margin-top: 2.5rem; }

.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-bottom: 1.5rem;
}
.gallery-tab {
  position: relative;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem; font-family: var(--font);
  cursor: pointer; transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}
/* Progress bar fill behind text */
.gallery-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.12);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: -1;
  transition: none;
}
.gallery-tab.active::before {
  animation: tabProgress 5s linear forwards;
}
@keyframes tabProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.gallery-tab:hover {
  border-color: rgba(34,211,238,0.4);
  color: rgba(255,255,255,0.8);
}
.gallery-tab.active {
  border-color: rgba(34,211,238,0.5);
  color: #22d3ee; font-weight: 600;
}

.gallery-stage {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.gallery-frame {
  width: 100%; max-width: 1000px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  background: #1a1a24;
}
.gallery-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #1a1a24;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gallery-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.gallery-wintitle {
  flex: 1; text-align: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  font-family: var(--mono); margin-left: -54px;
}
.gallery-panels {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  max-height: 640px;
}
.gallery-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-panel {
  flex: 0 0 100%;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  object-position: top center;
}
.gallery-caption {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  text-align: center; max-width: 600px; line-height: 1.6;
}

/* --- Download --- */
#download { border-top: 1px solid var(--border); text-align: center; }
.download-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; max-width: 720px; margin: 0 auto;
}
.download-card {
  padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  text-align: center; transition: all .25s;
}
.download-card:hover {
  border-color: var(--cyan); background: var(--card-hover);
  transform: translateY(-2px);
}
.download-card .platform-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.download-card h3 { margin-bottom: 0.25rem; }
.download-card .version {
  font-size: 0.75rem; color: var(--text-muted);
  font-family: var(--mono); margin-bottom: 1rem;
}
.download-card .btn {
  width: 100%; justify-content: center;
  padding: 0.625rem 1rem; font-size: 0.8125rem;
}

/* Companion app callout (Timecode Tool iOS) */
.companion {
  display: flex; align-items: center; gap: 1.25rem;
  max-width: 720px; margin: 2.5rem auto 0;
  padding: 1.5rem; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); transition: all .25s;
}
.companion:hover {
  border-color: var(--cyan); background: var(--card-hover);
  transform: translateY(-2px);
}
.companion-icon {
  flex: 0 0 auto; width: 60px; height: 60px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-light);
}
.companion-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.companion-body { flex: 1; min-width: 0; }
.companion-body .section-label { display: inline-block; margin-bottom: .35rem; }
.companion-body h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.companion-body p { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.companion-btn { flex: 0 0 auto; align-self: center; white-space: nowrap; }
@media (max-width: 600px) {
  .companion { flex-direction: column; text-align: center; align-items: stretch; }
  .companion-icon { align-self: center; }
  .companion-btn { width: 100%; justify-content: center; }
}

.download-disclaimer {
  margin-top: 3rem; padding: 1.5rem 2rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); text-align: left;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.download-disclaimer p { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.8; }
.download-disclaimer p + p { margin-top: 0.75rem; color: var(--text-muted); }
.download-disclaimer a {
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px;
}

.past-versions {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
}
.past-versions a {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.past-versions a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Mac ADP Tooltip --- */
.mac-btn-wrap { position: relative; display: inline-block; }
.mac-adp-tooltip {
  display: none; pointer-events: auto;
  position: absolute; bottom: 100%; margin-bottom: 10px;
  left: 50%; transform: translateX(-50%);
  width: 280px;
  background: rgba(20, 14, 4, 0.97);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 8px; padding: 10px 12px;
  font-size: 0.8rem; line-height: 1.5;
  color: rgba(251, 191, 36, 0.9);
  z-index: 200; gap: 8px; align-items: flex-start;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.mac-adp-tooltip::before {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.mac-adp-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: rgba(251, 191, 36, 0.5);
  pointer-events: none;
}
.mac-adp-tooltip a { display: block; margin-top: 6px; color: #fbbf24; text-decoration: underline; font-weight: 600; }
.mac-btn-wrap:hover .mac-adp-tooltip,
.mac-adp-tooltip:hover { display: flex; }

/* --- Feedback Section --- */
#feedback {
  border-top: 1px solid var(--border);
  text-align: center;
}

/* --- Tech Stack --- */
#tech { border-top: 1px solid var(--border); text-align: center; }
.tech-grid { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.tech-item span { font-size: 0.8125rem; color: var(--text-muted); }
.tech-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

/* --- Footer --- */
footer { border-top: 1px solid var(--border); padding: 3rem 0; text-align: center; }
.footer-content { display: flex; align-items: center; justify-content: space-between; }
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
}
.footer-brand img { width: 20px; height: 20px; border-radius: 4px; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8125rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; gap: 1rem; }

  #hero { min-height: auto; padding: 8rem 0 4rem; }

  .pillar {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
  }
  .pillar-reverse { direction: ltr; }
  .pillar-text { max-width: 100%; text-align: center; }
  .pillar-visual { aspect-ratio: 16/10; }

  /* Collapse collage to 2-panel stack on mobile */
  .pillar-crops--routing,
  .pillar-crops--recording,
  .pillar-crops--viz {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "main"
      "sub1";
  }
  .pillar-crops--recording .crop-sub2,
  .pillar-crops--recording .crop-sub3,
  .pillar-crops--routing .crop-sub2,
  .pillar-crops--viz .crop-sub2 {
    display: none;
  }
}

@media (max-width: 640px) {
  .gallery-tabs { gap: 4px; }
  .gallery-tab { font-size: 0.75rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; align-items: center; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
