/* ============================================================
   Rackpad — marketing site
   Editorial dark theme. Screenshots shown large & uncropped.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #05080b;
  --bg-2: #070b10;
  --surface: #0d141b;
  --surface-2: #121b23;
  --surface-3: #18232d;
  --code-bg: #090f15;

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.15);

  --text: #eef4f8;
  --text-dim: #a9bac5;
  --text-mute: #6c7e8a;

  --amber: #f5b14b;
  --cyan: #46cadd;
  --green: #5fcf8c;
  --rose: #ec7d6d;

  --grad: linear-gradient(110deg, #46cadd 0%, #7fd4c2 40%, #f5b14b 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --accent: var(--cyan);

  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient: glows + faint noise grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 45% at 82% -8%, rgba(70, 202, 221, 0.14), transparent 60%),
    radial-gradient(48% 42% at 4% 6%, rgba(245, 177, 75, 0.10), transparent 60%),
    radial-gradient(60% 55% at 50% 120%, rgba(95, 207, 140, 0.07), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.07; color: var(--text); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px; border-radius: 8px;
  background: var(--amber); color: #1a1206; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ===================== Shared bits ===================== */
.section {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.kicker-line { width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.kicker-center { justify-content: center; }

.section-head { max-width: 700px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); font-weight: 850; }
.section-head p { margin: 16px auto 0; max-width: 580px; color: var(--text-dim); font-size: 1.06rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 650; font-size: 0.98rem;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--amber); color: #1c1305; box-shadow: 0 16px 36px -12px rgba(245, 177, 75, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(245, 177, 75, 0.72); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: rgba(70, 202, 221, 0.5); }

.textlink {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-weight: 650; color: var(--accent);
  transition: gap 0.2s;
}
.textlink:hover { gap: 11px; }

/* ===================== Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 16, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-2);
  background:
    linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.22) 25% 31%, transparent 31% 69%, rgba(255, 255, 255, 0.22) 69% 75%, transparent 75%),
    linear-gradient(180deg, var(--amber) 0 14%, transparent 14% 35%, var(--cyan) 35% 49%, transparent 49% 70%, var(--green) 70% 84%, transparent 84%);
  box-shadow: 0 0 20px -6px rgba(70, 202, 221, 0.7);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.nav-cta) {
  padding: 8px 13px; border-radius: 8px; font-size: 0.95rem; font-weight: 550;
  color: var(--text-dim); transition: color 0.2s, background 0.2s;
}
.nav-links > a:not(.nav-cta):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04); font-weight: 650; font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: rgba(70, 202, 221, 0.55); background: rgba(70, 202, 221, 0.1); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; padding: clamp(38px, 5vw, 72px) 0 clamp(46px, 6vw, 78px); }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-1 { width: 460px; height: 460px; top: -160px; right: -80px; background: rgba(70, 202, 221, 0.4); animation: drift 16s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; top: 120px; left: -120px; background: rgba(245, 177, 75, 0.26); animation: drift 20s ease-in-out infinite reverse; }
.orb-3 { width: 320px; height: 320px; bottom: -120px; left: 40%; background: rgba(95, 207, 140, 0.2); animation: drift 24s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, -22px); } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-net .net-lines line { stroke: rgba(70, 202, 221, 0.28); stroke-width: 1; stroke-dasharray: 4 6; animation: dash 8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.hero-net .net-nodes circle { fill: rgba(127, 212, 194, 0.8); }

.hero-inner {
  width: min(1440px, calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 0; align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announce {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 6px 14px 6px 7px; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem; font-weight: 600; color: var(--text-dim);
  transition: border-color 0.2s, transform 0.2s;
}
.announce:hover { border-color: rgba(70, 202, 221, 0.5); transform: translateY(-1px); }
.announce .icon { width: 0.9em; height: 0.9em; }
.announce-tag {
  padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  background: var(--grad); color: #04121a;
}
.hero h1 { max-width: 850px; margin: 0 auto; font-size: clamp(2.85rem, 6.5vw, 5.4rem); font-weight: 880; line-height: 0.98; letter-spacing: -0.035em; }
.hero-lead { margin: 18px auto 0; max-width: 710px; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--text-dim); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.hero-install { width: min(640px, 100%); margin: 28px auto 0; border-radius: var(--radius); border: 1px solid var(--border); background: var(--code-bg); overflow: hidden; text-align: left; }
.hero-install-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.hero-install-label { font-family: var(--mono); font-size: 0.76rem; color: var(--text-mute); flex: 1; }
.dotrow { display: inline-flex; gap: 6px; }
.dotrow i { width: 11px; height: 11px; border-radius: 50%; background: #2b3640; }
.dotrow i:nth-child(1) { background: #e0655a; }
.dotrow i:nth-child(2) { background: #e0a93f; }
.dotrow i:nth-child(3) { background: #58c081; }
.copy-mini { display: inline-flex; padding: 5px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--text-mute); transition: color 0.2s, background 0.2s; }
.copy-mini:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.hero-install pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; color: #cfe0e6; }
.hero-install code { white-space: pre; }
.tok-prompt { color: var(--cyan); user-select: none; margin-right: 8px; }

/* Hero visual */
.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  width: min(1280px, 100%);
  margin: clamp(28px, 4.5vw, 48px) auto 0;
  perspective: 1600px;
}
.browser {
  border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow);
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-origin: center;
  transition: transform 0.16s ease-out, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.hero-visual:hover .browser { border-color: rgba(70, 202, 221, 0.42); box-shadow: 0 42px 96px -42px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser-url { flex: 1; padding: 5px 12px; border-radius: 7px; background: rgba(0, 0, 0, 0.3); font-family: var(--mono); font-size: 0.74rem; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; display: block; image-rendering: auto; }

/* ===================== Marquee ===================== */
.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; animation: marq 38s linear infinite; will-change: transform; }
.marquee-track span { font-size: 0.92rem; font-weight: 600; color: var(--text-dim); }
.marquee-track .sep { color: var(--accent); opacity: 0.5; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== Stats ===================== */
.stats {
  width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 8px 0;
}
.stat { padding: 30px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.stat-num {
  display: block; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 880; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 6px; display: block; font-size: 0.9rem; color: var(--text-dim); }

/* ===================== Pillars ===================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: 0.9; }
.pillar::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 200px; height: 200px; border-radius: 50%; background: var(--accent); opacity: 0.08; filter: blur(40px); transition: opacity 0.3s; }
.pillar:hover { transform: translateY(-5px); border-color: var(--border-2); }
.pillar:hover::after { opacity: 0.16; }
.pillar h3 { font-size: 1.18rem; margin-bottom: 9px; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.pillar-amber { --accent: var(--amber); }
.pillar-cyan { --accent: var(--cyan); }
.pillar-green { --accent: var(--green); }
.pillar-rose { --accent: var(--rose); }

.ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.ico .icon { width: 22px; height: 22px; }
.ia { --accent: var(--amber); }
.ic { --accent: var(--cyan); }
.ig { --accent: var(--green); }
.ir { --accent: var(--rose); }

/* ===================== Product tour bands ===================== */
.tour { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 44px); padding: clamp(20px, 4vw, 40px) 0 clamp(60px, 8vw, 100px); }
.band {
  --accent: var(--cyan);
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    radial-gradient(70% 130% at 100% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 56%),
    var(--surface);
  position: relative; overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: 0.85; }
.band-rev .band-text { order: 2; }
.band-amber { --accent: var(--amber); }
.band-cyan { --accent: var(--cyan); }
.band-green { --accent: var(--green); }
.band-rose { --accent: var(--rose); }
.band-text h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); font-weight: 820; margin-bottom: 14px; }
.band-text p { margin: 0; color: var(--text-dim); font-size: 1.02rem; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; color: var(--text); }
.ticks .icon { width: 1.15em; height: 1.15em; margin-top: 2px; color: var(--accent); }

/* App frame — screenshots LARGE and uncropped */
.frame {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-2); background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); background: var(--surface-3); }
.frame-bar::before { content: ""; width: 38px; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #e0655a 33%, #e0a93f 33% 66%, #58c081 66%); opacity: 0.85; flex: none; }
.frame-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.frame-dot.da { --accent: var(--amber); background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.frame-dot.dc { --accent: var(--cyan); background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.frame-dot.dr { --accent: var(--rose); background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.frame-title { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); }
.frame img { width: 100%; display: block; aspect-ratio: 1920 / 1200; object-fit: cover; background: var(--surface-3); }
.band .frame:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-2)); }

/* Click-to-enlarge screenshots */
.frame,
.browser { position: relative; }
.zoomable-shot {
  cursor: zoom-in;
}
.zoomable-shot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 8, 11, 0.74);
  border: 1px solid var(--border-2);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.zoom-hint .icon { width: 18px; height: 18px; }
.zoomable-shot:hover .zoom-hint,
.zoomable-shot:focus-visible .zoom-hint {
  opacity: 1;
  transform: none;
  border-color: rgba(70, 202, 221, 0.5);
}
body.lightbox-open { overflow: hidden; }
.shot-lightbox[hidden] { display: none; }
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 4, 7, 0.9);
  backdrop-filter: blur(18px);
}
.shot-lightbox-panel {
  width: min(1640px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: rgba(9, 15, 21, 0.96);
  box-shadow: 0 40px 110px -36px rgba(0, 0, 0, 0.96);
  overflow: hidden;
}
.shot-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 13px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.shot-lightbox-title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text-dim);
}
.shot-lightbox-close,
.shot-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.shot-lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.shot-lightbox-close:hover,
.shot-lightbox-nav:hover {
  background: rgba(70, 202, 221, 0.14);
  border-color: rgba(70, 202, 221, 0.55);
}
.shot-lightbox-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 26px) clamp(54px, 5vw, 78px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(70, 202, 221, 0.08), transparent 56%),
    #05080b;
}
.shot-lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 176px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  box-shadow: 0 26px 70px -38px rgba(0, 0, 0, 0.92);
}
.shot-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 56px;
  border-radius: 14px;
  transform: translateY(-50%);
}
.shot-lightbox-nav:hover { transform: translateY(-50%) scale(1.03); }
.shot-lightbox-prev { left: 14px; }
.shot-lightbox-prev .icon { transform: rotate(180deg); }
.shot-lightbox-next { right: 14px; }
.shot-lightbox-caption {
  margin: 0;
  padding: 13px 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  background: var(--surface-2);
}

/* ===================== Gallery (grouped, large) ===================== */
.gallery-section { border-top: 1px solid var(--border); }
.gal-group { margin-bottom: clamp(36px, 5vw, 56px); }
.gal-group:last-of-type { margin-bottom: 0; }
.gal-label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.gal-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.gal-amber { color: var(--amber); }
.gal-amber::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.gal-cyan { color: var(--cyan); }
.gal-cyan::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.gal-green { color: var(--green); }
.gal-green::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.gal-rose { color: var(--rose); }
.gal-rose::before { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.frame-dot.dg { background: var(--green); box-shadow: 0 0 8px var(--green); }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-grid .frame:hover { transform: translateY(-4px); border-color: var(--border-2); }
.gal-note {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: clamp(36px, 5vw, 52px) auto 0; padding: 16px 22px; max-width: 720px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size: 0.96rem; text-align: center;
}
.gal-note em { color: var(--text); font-style: normal; font-weight: 700; }

/* ===================== Features ===================== */
.feature-section { border-top: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  padding: 28px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feat h3 { font-size: 1.18rem; margin-bottom: 16px; }
.feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.feat li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-dim); line-height: 1.5; }
.feat li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }

/* ===================== Deploy ===================== */
.deploy-section { border-top: 1px solid var(--border); }
.deploy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.deploy-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 820; margin-bottom: 14px; }
.deploy-copy > p { color: var(--text-dim); font-size: 1.04rem; }
.deploy-copy .ticks .icon { color: var(--cyan); }
.deploy-note { margin: 22px 0 0; font-size: 0.92rem; color: var(--text-mute); }
.deploy-note code, .code-cap code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--cyan); }
.deploy-tabs { border-radius: var(--radius); border: 1px solid var(--border); background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow); }
.tabbar { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); overflow-x: auto; }
.tab { padding: 9px 16px; border-radius: 8px; border: 0; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(70, 202, 221, 0.14); }
.tabpanel { padding: 0 0 18px; }
.tabpanel[hidden] { display: none; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); color: var(--text-dim); font-size: 0.84rem; font-weight: 600; transition: color 0.2s, border-color 0.2s; }
.copy-btn:hover { color: var(--text); border-color: rgba(70, 202, 221, 0.5); }
.copy-btn .icon { width: 1em; height: 1em; }
.tabpanel pre { margin: 0; padding: 6px 18px 4px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; color: #d2e3e9; }
.code-cap { margin: 12px 18px 0; font-size: 0.82rem; color: var(--text-mute); }

/* ===================== Releases timeline ===================== */
.releases-section { border-top: 1px solid var(--border); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--green), transparent); }
.tl-item { position: relative; padding-left: 38px; margin-bottom: 16px; }
.tl-dot { position: absolute; left: 0; top: 22px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg); }
.tl-beta { background: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 14px var(--cyan); }
.tl-stable { background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 14px var(--green); }
.tl-body { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s; }
.tl-body:hover { border-color: var(--border-2); }
.tl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tl-meta time { font-size: 0.8rem; color: var(--text-mute); font-family: var(--mono); }
.tag { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 999px; }
.tag-beta { background: rgba(70, 202, 221, 0.16); color: var(--cyan); }
.tag-stable { background: rgba(95, 207, 140, 0.16); color: var(--green); }
.tl-body h3 { font-size: 1.2rem; font-family: var(--mono); margin-bottom: 8px; }
.tl-body p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.releases-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ===================== Docs ===================== */
.docs-section { border-top: 1px solid var(--border); }
.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 0 auto; }
.doc-links a { display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.94rem; color: var(--text-dim); transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s; }
.doc-links a:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(70, 202, 221, 0.5); background: var(--surface-2); }
.doc-links .icon { color: var(--cyan); }

/* ===================== CTA ===================== */
.cta { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: clamp(20px, 4vw, 40px) 0 clamp(80px, 9vw, 120px); }
.cta-inner {
  text-align: center; padding: clamp(48px, 7vw, 88px) 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background:
    radial-gradient(75% 140% at 50% 0%, rgba(70, 202, 221, 0.18), transparent 60%),
    radial-gradient(65% 140% at 50% 100%, rgba(245, 177, 75, 0.14), transparent 60%),
    var(--surface);
}
.cta-inner h2 { font-size: clamp(1.95rem, 4.4vw, 3rem); font-weight: 880; max-width: 660px; margin: 0 auto; }
.cta-inner p { margin: 16px auto 30px; max-width: 560px; color: var(--text-dim); font-size: 1.06rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: 56px 0 36px; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand-col p { margin: 16px 0 0; max-width: 360px; color: var(--text-dim); font-size: 0.92rem; }
.footer-fine { color: var(--text-mute) !important; font-size: 0.84rem !important; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 14px; }
.footer-cols a { display: block; padding: 5px 0; font-size: 0.93rem; color: var(--text-dim); transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: 20px 0 36px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text); }

/* ===================== Scroll reveal ===================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-visual { width: min(900px, 100%); margin-top: clamp(30px, 5vw, 46px); }
  .browser, .hero-visual:hover .browser { transform: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .band, .band-rev { grid-template-columns: 1fr; gap: 26px; }
  .band-rev .band-text { order: 0; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .hero-inner { width: min(100% - 28px, 1440px); }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4.4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-install pre { font-size: 0.76rem; }
  .browser-bar { padding: 8px 10px; }
  .browser-url { font-size: 0.66rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 20px; right: 20px; top: 64px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 14px; border: 1px solid var(--border-2);
    background: rgba(7, 11, 16, 0.97); backdrop-filter: blur(14px); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.nav-cta) { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 4px; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { content: none; }
  .features { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .shot-lightbox { padding: 10px; }
  .shot-lightbox-panel { max-height: calc(100vh - 20px); border-radius: 16px; }
  .shot-lightbox-stage { padding: 12px 10px 70px; }
  .shot-lightbox-img { max-height: calc(100vh - 210px); border-radius: 8px; }
  .shot-lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 48px;
    height: 44px;
  }
  .shot-lightbox-nav:hover { transform: none; }
  .shot-lightbox-prev { left: calc(50% - 58px); }
  .shot-lightbox-next { right: calc(50% - 58px); }
  .shot-lightbox-caption { font-size: 0.84rem; }
  .zoom-hint { opacity: 1; transform: none; width: 34px; height: 34px; }
}
@media (max-width: 460px) {
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat::before { content: none !important; }
  .stat { border-top: 1px solid var(--border); }
  .stat:first-child { border-top: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track, .orb, .hero-net .net-lines line { animation: none !important; }
}

/* ============================================================
   Multi-page additions
   ============================================================ */

/* Active nav state */
.nav-links > a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

/* Inner-page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 116px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 70% at 50% -10%, color-mix(in srgb, var(--accent, var(--cyan)) 22%, transparent), transparent 62%),
    radial-gradient(40% 60% at 88% 0%, rgba(245, 177, 75, 0.1), transparent 60%);
}
.page-hero .ph-inner { width: min(840px, calc(100% - 40px)); margin: 0 auto; }
.page-hero .kicker { justify-content: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 870; letter-spacing: -0.035em; }
.page-hero p { margin: 20px auto 0; max-width: 620px; color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.page-hero .hero-actions { justify-content: center; margin-top: 30px; }
.page-hero.accent-amber { --accent: var(--amber); }
.page-hero.accent-green { --accent: var(--green); }
.page-hero.accent-rose { --accent: var(--rose); }

/* Home: screenshot teaser row */
.home-screens .frame { transition: transform 0.35s var(--ease), border-color 0.3s; }
.home-screens .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-screens .three .frame:hover { transform: translateY(-5px); border-color: var(--border-2); }
.center-link { display: flex; justify-content: center; margin-top: 34px; }

/* Value trio (why self-host) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); overflow: hidden;
}
.value .ico { margin-bottom: 16px; }
.value h3 { font-size: 1.16rem; margin-bottom: 9px; }
.value p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* Requirements grid (deploy) */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.req { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.req .ico { margin-bottom: 14px; }
.req h3 { font-size: 1.06rem; margin-bottom: 8px; }
.req p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.req code { font-family: var(--mono); font-size: 0.85em; color: var(--cyan); }

/* First-run steps */
.steps { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; font-weight: 800; font-size: 1.05rem;
  color: #04121a; background: var(--grad);
}
.step h3 { font-size: 1.06rem; margin-bottom: 5px; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.step code { font-family: var(--mono); font-size: 0.85em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--cyan); }

/* Env var table */
.envtable-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.envtable { width: 100%; border-collapse: collapse; min-width: 560px; }
.envtable th, .envtable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: top; }
.envtable thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); background: var(--surface-2); }
.envtable tbody tr:last-child td { border-bottom: 0; }
.envtable td:first-child { white-space: nowrap; }
.envtable code { font-family: var(--mono); font-size: 0.86em; color: var(--amber); }
.envtable td:nth-child(2) { color: var(--text-dim); }

/* FAQ accordion */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 650; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent, var(--cyan)); transition: transform 0.25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; margin: 0; color: var(--text-dim); font-size: 0.96rem; line-height: 1.65; }
.faq .faq-a code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--cyan); }

/* Section CTA strip (lighter than the big CTA) */
.mini-cta { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: 0 0 clamp(72px, 9vw, 120px); }
.mini-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: radial-gradient(80% 160% at 0% 0%, rgba(70, 202, 221, 0.14), transparent 60%), var(--surface);
}
.mini-cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 820; }
.mini-cta-inner p { margin: 6px 0 0; color: var(--text-dim); font-size: 0.98rem; }
.mini-cta .hero-actions { margin: 0; }

.inline-code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--cyan); }

/* 404 */
.error-hero { min-height: 68vh; display: flex; align-items: center; }
.error-code { display: block; font-size: clamp(5rem, 17vw, 11rem); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em; margin-bottom: 14px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.error-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.92rem; font-weight: 600; color: var(--text-dim); transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s; }
.error-links a:hover { color: var(--text); border-color: rgba(70, 202, 221, 0.5); background: var(--surface-2); transform: translateY(-2px); }
.error-links .icon { color: var(--cyan); }

@media (max-width: 980px) {
  .home-screens .three { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
}
