/* Aurora Tube — home page. A 3D reel of real recordings, lit by the active clip. */

.home .nav-links a.nav-cta { padding: 0 16px; }

/* ---------- hero: a 3D reel of real recordings over the active clip's own light ---------- */
.hx { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.hx-backdrop { position: absolute; inset: -12% -6% 0; z-index: -1; }
.hx-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(56px) saturate(1.5) brightness(0.62); transform: scale(1.15); opacity: 0; transition: opacity 1.1s var(--ease); }
.hx-backdrop img.is-on { opacity: 1; }
.hx-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 8, 18, 0.55) 0%, rgba(12, 8, 18, 0.2) 38%, rgba(12, 8, 18, 0.55) 72%, var(--asphalt) 100%), linear-gradient(90deg, rgba(12, 8, 18, 0.7) 0%, rgba(12, 8, 18, 0) 55%); }

.hx-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 32px; align-items: end; }
.hx h1 { grid-column: 1 / span 7; font-size: clamp(2.6rem, 4.6vw, 4.35rem); line-height: 1.02; letter-spacing: -0.038em; }
.hx-grad { display: block; background: linear-gradient(92deg, #ff6ac4 0%, #c27cf0 45%, #5fe3e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hx-side { grid-column: 8 / span 5; padding-bottom: 8px; }
.hx-side .h-lede { color: #d9d2e4; }
.hx .hero-actions { margin-top: 24px; }
.button-glass { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button-glass:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }

.hx-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); --cw: min(760px, 62vw); }
.hx-track { position: relative; height: calc(var(--cw) * 0.625); perspective: 1800px; perspective-origin: 50% 40%; }
.hx-card {
  position: absolute; top: 0; left: 50%; width: var(--cw); aspect-ratio: 16 / 10; margin: 0 0 0 calc(var(--cw) / -2);
  border-radius: 18px; overflow: hidden; background: #0d0915; cursor: pointer;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateX(calc(var(--x, 0) * 1px)) translateZ(calc(var(--z, 0) * 1px)) rotateY(calc(var(--ry, 0) * 1deg));
  opacity: var(--o, 1); z-index: var(--zi, 1);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.hx-card[data-pos="0"] { cursor: default; }
.hx-card video, .hx-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.hx-card::after { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 12, var(--shade, 0)); transition: background 0.9s var(--ease); pointer-events: none; }
.hx-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 28px 24px;
  background: linear-gradient(0deg, rgba(8, 6, 12, 0.94) 0%, rgba(8, 6, 12, 0.72) 50%, rgba(8, 6, 12, 0) 100%);
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.hx-card[data-pos="0"] figcaption { opacity: 1; transform: none; transition-delay: 0.25s; }
.hx-card figcaption strong { display: flex; align-items: center; gap: 12px; font: 650 clamp(1.7rem, 3vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.035em; text-transform: uppercase; }
.hx-card figcaption em { font: 600 0.75rem/1 var(--body); font-style: normal; letter-spacing: 0.02em; text-transform: none; padding: 6px 9px; border-radius: 999px; color: #140a1a; background: var(--lane); }
.hx-card figcaption span { display: block; margin-top: 8px; color: #e4ddef; font-size: 1.0625rem; }

.hx-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.hx-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s; }
.hx-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.hx-arrow svg { width: 20px; height: 20px; }
.hx-dots { display: flex; gap: 8px; }
.hx-dots button { position: relative; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.hx-dots button::before { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); transition: background 0.3s; }
.hx-dots button[aria-current="true"]::before { background: var(--lane); }
.hx-dots button:hover::before { background: rgba(255, 255, 255, 0.5); }
.hx-note { margin-top: 14px; text-align: center; color: var(--text-3); font-size: 0.8125rem; }

.hx-facts { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hx-facts li { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hx-facts b { display: block; font: 650 1.5rem/1.1 var(--display); letter-spacing: -0.03em; }
.hx-facts span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9rem; line-height: 1.45; }

.button-store { min-height: 52px; padding: 0 22px 0 18px; }
.button-store svg { width: 18px; height: 18px; }
.button-store span { display: inline-flex; align-items: baseline; gap: 8px; }
.button-store small { font: 600 0.78rem/1 var(--body); opacity: 0.72; }
.h-caption { margin-top: 14px; color: var(--text-3); font-size: 0.8125rem; }

/* ---------- shared section pieces ---------- */
.h-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 68px); }
.h-head h2 { grid-column: 1 / span 6; max-width: 16ch; }
.h-head > p, .h-head > div { grid-column: 8 / span 5; color: var(--text-2); font-size: 1.0625rem; }
.h-head-wide h2 { grid-column: 1 / span 6; }
.h-head .site-chips { margin-top: 24px; }

.h-points { list-style: none; margin: 0; padding: 0; }
.h-points li { padding: 20px 0; border-top: 1px solid var(--line); }
.h-points li:last-child { border-bottom: 1px solid var(--line); }
.h-points h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.h-points p { margin-top: 6px; color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }

.h-shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 50px 100px -45px rgba(0, 0, 0, 0.95); }
.h-shot-frame img { width: 100%; }

/* ---------- downloads ---------- */
.h-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.h-split .h-points { grid-column: 1 / span 5; }
.lanes-board { grid-column: 7 / span 6; position: sticky; top: 112px; padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); }
.lb-file { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.lb-name { font-weight: 600; overflow-wrap: anywhere; }
.lb-size { font: 500 0.875rem/1.6 var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-row { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; }
.lb-row + .lb-row { margin-top: 28px; }
.lb-label { font-weight: 600; font-size: 0.97rem; }
.lb-label small { display: block; margin-top: 3px; font: 400 0.8125rem/1.4 var(--body); color: var(--text-3); }
.lb-lanes { display: grid; gap: 6px; }
.lb-lanes i { position: relative; display: block; height: 9px; border-radius: 3px; background: rgba(233, 228, 240, 0.07); overflow: hidden; }
.lb-lanes i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); border-radius: 3px; background: var(--lane); background-size: 520px 100%; transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) {
  .js .lanes-board .lb-lanes i::after { transform: scaleX(0); transition: transform 1.6s var(--ease); }
  .js .lanes-board.is-in .lb-lanes i::after { transform: none; }
  .js .lanes-board .lb-lanes i:nth-child(2)::after { transition-delay: 0.08s; }
  .js .lanes-board .lb-lanes i:nth-child(3)::after { transition-delay: 0.16s; }
  .js .lanes-board .lb-lanes i:nth-child(4)::after { transition-delay: 0.24s; }
  .js .lanes-board .lb-lanes i:nth-child(5)::after { transition-delay: 0.32s; }
  .js .lanes-board .lb-lanes i:nth-child(6)::after { transition-delay: 0.4s; }
  .js .lanes-board .lb-lanes i:nth-child(7)::after { transition-delay: 0.48s; }
  .js .lanes-board .lb-lanes i:nth-child(8)::after { transition-delay: 0.56s; }
}
.lb-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; }

/* screenshots are lit by their own colour, like the hero */
.h-glow { position: absolute; inset: 6% 4% -4%; z-index: -1; width: 92%; height: 98%; object-fit: cover; filter: blur(70px) saturate(1.4); opacity: 0.32; pointer-events: none; }
.h-shot, .hc-main { position: relative; isolation: isolate; }
.h-head h2 .hx-grad { display: inline; }
.h-close h2 .hx-grad { display: inline; }

/* ---------- video ---------- */
.h-shot { position: relative; }
.h-shot-hint { position: absolute; width: min(30%, 340px); left: -2%; bottom: 12%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95); }
.h-video .callout { margin-top: 44px; }

/* ---------- workspace ---------- */
.h-collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.hc-main { grid-column: 1 / span 7; }
.hc-side { grid-column: 8 / span 5; margin-top: clamp(48px, 8vw, 120px); }
.h-points-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(48px, 6vw, 80px); }
.h-points-grid li:last-child { border-bottom: 0; }

/* ---------- steps ---------- */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.h-steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.h-step-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 0.9375rem/1 var(--body); color: var(--text); font-variant-numeric: tabular-nums; }
.h-steps li:first-child .h-step-no { background: var(--lane); border: 0; color: #140a1a; }
.h-steps h3 { margin-top: 18px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.h-steps p { margin-top: 8px; color: var(--text-2); }

/* ---------- close ---------- */
.h-close { padding: clamp(96px, 12vw, 168px) 0; border-top: 1px solid var(--line); }
.h-close-inner { display: grid; justify-items: center; text-align: center; }
.h-close-logo { width: 112px; height: 112px; }
.h-close h2 { margin-top: 28px; font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 14ch; }
.h-close-inner > p { margin-top: 22px; color: var(--text-2); max-width: 68ch; }
.h-close .hero-actions { margin-top: 36px; justify-content: center; }
.h-close-links { margin-top: 22px; color: var(--text-3); font-size: 0.875rem; }

/* ---------- responsive ---------- */
@media (max-width: 420px) {
  .home .nav-links a[href="/pricing/"] { display: none; }
}
@media (max-width: 1080px) {
  .hx h1, .hx-side { grid-column: 1 / -1; }
  .hx-stage { --cw: min(760px, 78vw); }
  .hx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-head h2, .h-head > p, .h-head > div { grid-column: 1 / -1; }
  .h-split .h-points, .lanes-board { grid-column: 1 / -1; }
  .lanes-board { position: relative; top: 0; order: -1; }
  .h-points-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .h-collage { grid-template-columns: 1fr; }
  .hc-main, .hc-side { grid-column: 1 / -1; margin-top: 0; }
  .h-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hx h1 { font-size: clamp(2.4rem, 10.5vw, 3rem); }
  .h-lede { font-size: 1.0625rem; }
  .hx-stage { --cw: 88vw; }
  .hx-card { border-radius: 14px; }
  .hx-card figcaption { padding: 48px 16px 14px; }
  .hx-card figcaption span { font-size: 0.9rem; }
  .hx-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hx-facts li { padding: 14px; }
  .hx-facts b { font-size: 1.2rem; }
  .h-shot-hint { position: relative; left: auto; bottom: auto; width: 82%; margin: -28px 0 0 auto; }
  .h-points-grid { grid-template-columns: 1fr; }
  .h-points-grid li:last-child { border-bottom: 1px solid var(--line); }
  .lb-row { grid-template-columns: 1fr; gap: 10px; }
  .h-close-logo { width: 88px; height: 88px; }
}
