/* =========================================================
   DaddyRecorder landing page
   Concept: the page itself is the recording in progress.
   ========================================================= */

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

:root {
  --bg: #08090a;
  --bg-elevated: #0f1012;
  --bg-card: #121316;
  --border: #212227;
  --border-bright: #2e2f35;
  --text: #f2f2f4;
  --text-dim: #a3a3a8;
  --text-faint: #6c6d73;
  --green: #01FD48;
  --green-light: #17FEA0;
  --green-soft: rgba(1, 253, 72, 0.14);
  --red: #ff4d4d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  /* Hide the native cursor for the custom one. Keep it on when touch. */
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-size: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin: 0 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

em {
  font-style: italic;
  color: var(--green-light);
  font-weight: 500;
  position: relative;
  display: inline-block;
}

/* Zoom-reticle pulse that fires on the word "edits" whenever the hero
   demo fires a click — visually ties the product's behaviour to the
   marketing line. Pure CSS once JS adds the class. */
.headline em.zoom-pulse::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -10%;
  bottom: -10%;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  pointer-events: none;
  animation: zoomPulse 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes zoomPulse {
  0%   { opacity: 0;    transform: scale(0.85); }
  20%  { opacity: 0.9;  transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.05); }
}

/* ------- Custom cursor ------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease, transform 80ms ease;
  box-shadow: 0 0 12px rgba(1, 253, 72, 0.6),
              0 0 28px rgba(1, 253, 72, 0.35);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(1, 253, 72, 0.5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 300ms cubic-bezier(0.15, 0.8, 0.2, 1),
              width 180ms ease, height 180ms ease,
              border-color 180ms ease;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--green-light);
}

/* ------- Cursor trail particles ------- */

/* A short decaying tail of neon dots follows the pointer. Count +
   timing are driven from JS so per-dot properties stay in one place. */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-light), rgba(1, 253, 72, 0.1) 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: screen;
}

/* ------- Film grain ------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.8'/></svg>");
}

/* ------- HUD (top bar) ------- */

.hud {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(8, 9, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-label {
  color: var(--red);
  letter-spacing: 0.08em;
}

.hud-timer {
  color: var(--text-dim);
}

.hud-center {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
}

.hud-center a {
  color: var(--text-dim);
  transition: color 160ms ease;
}

.hud-center a:hover {
  color: var(--text);
}

.hud-right {
  display: flex;
  justify-content: flex-end;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulseRec 1.6s infinite ease-in-out;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ------- Buttons ------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform 140ms ease, border-color 140ms ease,
    background 140ms ease, box-shadow 180ms ease;
  cursor: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-ghost:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #17FEA0, #01FD48);
  color: #051a0c;
  box-shadow: 0 10px 30px rgba(1, 253, 72, 0.25),
              0 2px 0 rgba(255, 255, 255, 0.18) inset;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 45%,
    transparent 55%
  );
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(1, 253, 72, 0.4),
              0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-xl {
  padding: 16px 22px;
  font-size: 15px;
  border-radius: 14px;
}

.btn-xxl {
  padding: 22px 32px;
  font-size: 17px;
  border-radius: 18px;
  gap: 14px;
}

.btn-icon {
  display: inline-flex;
}

.btn-sub {
  color: rgba(5, 26, 12, 0.7);
  font-weight: 500;
  padding-left: 12px;
  border-left: 1px solid rgba(5, 26, 12, 0.25);
}

.btn-ghost .btn-arrow {
  transition: transform 200ms ease;
}

.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

/* ------- Eyebrow ------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.01);
}

.eyebrow-white { color: var(--text); }

.eyebrow-sep {
  opacity: 0.5;
  margin: 0 2px;
}

#downloadCount {
  color: var(--green);
}

.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ============== HERO ============== */

.hero {
  position: relative;
  padding: 100px 28px 80px;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  z-index: 1;
}

.hero-grid {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 100px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-features {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-pill svg {
  flex-shrink: 0;
}

.feature-pill-text {
  display: flex;
  flex-direction: column;
}

.feature-pill-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.feature-pill-desc {
  font-size: 12px;
  color: var(--text-faint);
}

.headline {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: lineIn 900ms cubic-bezier(0.15, 0.7, 0.2, 1) forwards;
}

.headline .line[data-line="1"] { animation-delay: 100ms; }
.headline .line[data-line="2"] { animation-delay: 260ms; }

@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 600px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* === Fake app window demo === */

.demo {
  width: 100%;
  max-width: 980px;
  margin-top: 46px;
  position: relative;
  perspective: 1400px;
}

.window {
  background: linear-gradient(180deg, #1a1b1f, #0f1013);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateX(4deg);
  transform-origin: 50% 100%;
  animation: windowIn 1.1s 400ms cubic-bezier(0.15, 0.7, 0.2, 1) both;
}

@keyframes windowIn {
  from { opacity: 0; transform: rotateX(14deg) translateY(80px); }
  to { opacity: 1; transform: rotateX(4deg) translateY(0); }
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #202126, #181a1e);
  border-bottom: 1px solid var(--border);
}

.window-chrome .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.window-title {
  margin-left: 18px;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}

.window-timer {
  color: var(--red);
  font-weight: 600;
  padding-left: 10px;
  padding-right: 2px;
}

.window-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 10%, rgba(1, 253, 72, 0.07), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(23, 254, 160, 0.06), transparent 45%),
    linear-gradient(160deg, #0c0d10, #14161a);
  overflow: hidden;
}

/* ---- Recorder-app mock inside the hero window ----
   Mirrors the real DaddyRecorder recorder pane so the product
   is visible at a glance. */

.app-ui {
  position: absolute;
  inset: 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-titles h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.app-titles p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.app-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.src-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 260ms ease, box-shadow 260ms ease,
              transform 260ms ease;
  position: relative;
}

.src-row.on {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(1, 253, 72, 0.15);
}

.src-row.hit {
  transform: translateY(-1px);
}

.src-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-dim);
  border-radius: 9px;
  flex-shrink: 0;
  transition: color 240ms ease, background 240ms ease;
}

.src-row.on .src-icon {
  color: var(--green);
  background: rgba(1, 253, 72, 0.12);
}

.src-body {
  flex: 1;
  min-width: 0;
}

.src-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.src-status {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
}

.src-row.on .src-status {
  color: var(--green);
}

/* iOS-style toggle */
.src-toggle {
  width: 36px;
  height: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  position: relative;
  transition: background 240ms ease, border-color 240ms ease;
  flex-shrink: 0;
}

.src-toggle .knob {
  position: absolute;
  left: 2px;
  top: 1px;
  width: 14px;
  height: 14px;
  background: var(--text-faint);
  border-radius: 50%;
  transition: transform 260ms cubic-bezier(0.3, 0.8, 0.4, 1),
              background 240ms ease;
}

.src-toggle.on {
  background: rgba(1, 253, 72, 0.2);
  border-color: var(--green);
}

.src-toggle.on .knob {
  transform: translateX(16px);
  background: var(--green);
}

/* Gradient Start button — matches the real app's CTA */
.app-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #17FEA0, #01FD48);
  color: #051a0c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: default;
  box-shadow: 0 10px 26px rgba(1, 253, 72, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease,
              background 240ms ease, color 240ms ease;
  position: relative;
  overflow: hidden;
}

.app-start-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #051a0c;
  transition: background 240ms ease;
}

.app-start-kbd {
  padding: 2px 7px;
  background: rgba(5, 26, 12, 0.18);
  border-radius: 5px;
  font-size: 11px;
  color: rgba(5, 26, 12, 0.85);
}

.app-start.recording {
  background: #1a1b1f;
  color: var(--red);
  box-shadow: 0 0 0 1px var(--red) inset;
}

.app-start.recording .app-start-dot {
  background: var(--red);
  animation: pulseRec 1.2s infinite ease-in-out;
}

.app-start.recording .app-start-kbd {
  background: rgba(255, 77, 77, 0.18);
  color: rgba(255, 77, 77, 0.85);
}

.app-start.pulse {
  animation: startBounce 520ms cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

@keyframes startBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.demo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ghost-cursor {
  position: absolute;
  top: 60px;
  left: 60px;
  transition: top 700ms cubic-bezier(0.4, 0.0, 0.2, 1),
              left 700ms cubic-bezier(0.4, 0.0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.ripple.active {
  animation: rippleOut 700ms ease-out forwards;
}

@keyframes rippleOut {
  0% { opacity: 1; width: 8px; height: 8px; }
  100% { opacity: 0; width: 120px; height: 120px; }
}

.zoom-reticle {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1.5px solid var(--green);
  border-radius: 14px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  box-shadow: 0 0 0 3000px rgba(8, 9, 10, 0.55);
  transition: opacity 400ms ease;
}

.zoom-reticle.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.webcam-bubble {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #404249, #1e1f23 70%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.webcam-bubble::before,
.webcam-bubble::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.webcam-bubble::before {
  width: 30px;
  height: 30px;
  top: 18px;
  left: 22px;
}

.webcam-bubble::after {
  width: 42px;
  height: 16px;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

/* Filmstrip sidebars */
.filmstrip {
  position: fixed;
  top: 80px;
  bottom: 40px;
  width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: var(--text-faint);
  padding: 40px 14px;
  z-index: 10;
}

.filmstrip.left { left: 0; align-items: flex-start; }
.filmstrip.right { right: 0; align-items: flex-end; }

.filmstrip span {
  opacity: 0;
  animation: filmIn 1.2s forwards;
}

.filmstrip.left span:nth-child(1) { animation-delay: 700ms; }
.filmstrip.left span:nth-child(2) { animation-delay: 780ms; }
.filmstrip.left span:nth-child(3) { animation-delay: 860ms; }
.filmstrip.left span:nth-child(4) { animation-delay: 940ms; }
.filmstrip.left span:nth-child(5) { animation-delay: 1020ms; }
.filmstrip.left span:nth-child(6) { animation-delay: 1100ms; }
.filmstrip.right span:nth-child(1) { animation-delay: 820ms; }
.filmstrip.right span:nth-child(2) { animation-delay: 940ms; }
.filmstrip.right span:nth-child(3) { animation-delay: 1060ms; }

@keyframes filmIn {
  to { opacity: 0.7; }
}

@media (max-width: 900px) {
  .filmstrip { display: none; }
}

/* ============== SECTIONS ============== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 28px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 700;
}

/* ============== REEL — "takes" ============== */

/* Reel sits on top of the pinned hero on scroll — higher z-index and
   a solid background so it visually covers the hero as the page
   scrolls past the pinner's extra height. */
.reel {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.takes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.take {
  background: linear-gradient(180deg, var(--bg-card), #0b0c0e);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 240ms ease;
}

.take:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.take::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(1, 253, 72, 0.05),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.take:hover::before { opacity: 1; }

.take-a { grid-column: span 3; }
.take-b { grid-column: span 3; }
.take-c { grid-column: span 2; }
.take-d { grid-column: span 2; }
.take-e { grid-column: span 2; }

@media (max-width: 900px) {
  .takes { grid-template-columns: 1fr; }
  .take-a, .take-b, .take-c, .take-d, .take-e { grid-column: 1; }
}

.take-index {
  color: var(--green);
}

.take h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.take p {
  color: var(--text-dim);
  font-size: 14px;
}

.take-viz {
  margin-top: auto;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, #0a0b0e 0%, #14161b 100%);
}

.viz-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: linear-gradient(180deg, #181a1e, #0f1013);
}

/* Zoom animation */
.viz-zoom .viz-cursor {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: cursorWalk 5s infinite;
}

.viz-zoom .viz-reticle {
  position: absolute;
  width: 40%;
  height: 50%;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  box-shadow: 0 0 0 600px rgba(8, 9, 10, 0.55);
  animation: reticlePulse 5s infinite;
}

@keyframes cursorWalk {
  0%   { top: 30%; left: 25%; }
  35%  { top: 30%; left: 25%; }
  55%  { top: 65%; left: 70%; }
  80%  { top: 65%; left: 70%; }
  100% { top: 30%; left: 25%; }
}

@keyframes reticlePulse {
  0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    left: 25%;
    top: 30%;
  }
  50%, 75% {
    opacity: 1;
    left: 70%;
    top: 65%;
    transform: translate(-50%, -50%) scale(1);
  }
  90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

/* Bubble */
.viz-bubble .bubble-preview {
  position: absolute;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  right: 28px;
  bottom: 28px;
  background:
    radial-gradient(circle at 30% 30%, #404249, #1a1b1f 70%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  animation: bubbleFloat 4.4s ease-in-out infinite;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.viz-bubble .bubble-preview::before {
  content: "";
  position: absolute;
  width: 32%;
  height: 32%;
  top: 22%;
  left: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* Countdown — JS cycles the text; CSS just pulses on each tick. */
.viz-countdown .count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 50px rgba(1, 253, 72, 0.45);
  line-height: 1;
}

.viz-countdown .count.pulse {
  animation: countPulse 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes countPulse {
  0%   { transform: scale(1.35); opacity: 0.6; }
  20%  { transform: scale(1);    opacity: 1;   }
  100% { transform: scale(1);    opacity: 1;   }
}

/* Editor viz */
.viz-editor .viz-frame {
  padding: 10px;
}

.viz-editor .viz-timeline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 22px;
  background: linear-gradient(90deg,
    rgba(1, 253, 72, 0.2),
    rgba(23, 254, 160, 0.2) 60%,
    transparent 60%,
    transparent 100%);
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  position: relative;
  overflow: hidden;
}

.viz-editor .viz-timeline::after {
  content: "";
  position: absolute;
  left: 55%;
  top: -4px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: playhead 4s linear infinite;
}

@keyframes playhead {
  from { left: 6%; }
  to { left: 92%; }
}

/* Folder */
.viz-folder .folder {
  position: absolute;
  inset: 24px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, #1e1f23 0%, #14161a 100%);
  border: 1px solid var(--border-bright);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.viz-folder .folder::before {
  content: "DaddyRecorder-2026-04-22.webm";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============== STEPS ============== */

.steps {
  padding: 100px 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at center top, rgba(1, 253, 72, 0.04), transparent 55%);
}

.step-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: step;
}

.step-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px dashed var(--border-bright);
  align-items: start;
}

.step-list li:first-child {
  border-top: none;
  padding-top: 10px;
}

.step-num {
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.1em;
}

.step-body h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.15;
}

.step-body p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .step-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============== SHORTCUTS ============== */

.shortcuts {
  padding: 100px 28px;
  border-top: 1px solid var(--border);
}

.shortcut-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.shortcut:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.shortcut .keys {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.shortcut-label {
  color: var(--text-dim);
  font-size: 15px;
}

@media (max-width: 720px) {
  .shortcut-grid { grid-template-columns: 1fr; }
}

/* ============== DOWNLOAD ============== */

.download {
  position: relative;
  padding: 120px 28px 140px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(1, 253, 72, 0.14), transparent 55%);
}

.download::before,
.download::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.download::before {
  top: -200px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(1, 253, 72, 0.2), transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
}

.download-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.download-title {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.download-sub {
  color: var(--text-dim);
  font-size: 17px;
}

.download-note {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ============== FOOTER ============== */

.foot {
  display: flex;
  justify-content: space-between;
  padding: 24px 28px 48px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

.foot-left,
.foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* ============== RESPONSIVE POLISH ============== */

@media (max-width: 900px) {
  .hud {
    padding: 14px 18px;
  }
  .hud-center { display: none; }
  .hero { padding: 48px 20px 80px; }
  .headline { font-size: clamp(44px, 11vw, 92px); }
  .hero-sub { font-size: 15px; }
  .cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .btn-xl { padding: 14px 18px; }
  .btn-sub { padding-left: 10px; font-size: 11px; }
  .demo { margin-top: 28px; }
  .window-body { aspect-ratio: 3 / 4; } /* taller on mobile for readability */
  .app-ui { inset: 18px 20px; gap: 12px; }
  .app-titles h3 { font-size: 16px; }
  .app-titles p { font-size: 11px; }
  .src-row { padding: 10px 12px; gap: 10px; }
  .src-icon { width: 28px; height: 28px; }
  .src-title { font-size: 12px; }
  .src-status { font-size: 10px; }
  .app-start { padding: 10px 14px; font-size: 13px; }
  .foot {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 18px 32px;
  }
  .section-head { margin-bottom: 36px; padding: 0 20px; }
  .reel, .steps, .shortcuts { padding-left: 20px; padding-right: 20px; padding-top: 64px; padding-bottom: 64px; }
  .takes { padding: 0; gap: 12px; }
  .take { padding: 20px; }
  .take h3 { font-size: 18px; }
  .download { padding: 80px 20px 100px; }
  .download-title { font-size: clamp(36px, 10vw, 56px); }
  .btn-xxl { padding: 18px 22px; font-size: 15px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .hud {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .hud-timer { display: none; }
  .headline { line-height: 1.0; }
  .eyebrow { font-size: 10px; padding: 5px 10px; }
  .step-list li { padding: 24px 0; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .shortcut { padding: 16px 18px; gap: 14px; }
  .shortcut .keys { min-width: auto; }
}

/* ------- Reveal-on-scroll ------- */
/* JS opts elements in by adding .reveal on load, then .is-visible when
   they cross the viewport threshold. Fallback if no JS / reduced
   motion: elements render statically. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------- Hero Image (App Screenshot) ------- */

.hero-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle at center, rgba(1, 253, 72, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);

  /* Premium 3D perspective - tilted like floating */
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transform-origin: right center;

  /* Depth & shadow */
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(1, 253, 72, 0.06),
    0 0 0 1px var(--border);

  /* Smooth transition for hover */
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 400ms ease;
}

.hero-screenshot:hover {
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) scale(1.02);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(1, 253, 72, 0.1),
    0 0 0 1px var(--green);
}

/* Hero Grid Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 0 28px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-features {
    justify-content: center;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    justify-content: center;
  }

  .hero-screenshot {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transform-origin: center center;
    max-width: 700px;
  }

  .hero-screenshot:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.02);
  }
}

@media (max-width: 640px) {
  .hero-features {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero-screenshot {
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .hero-screenshot:hover {
    transform: scale(1.01);
  }
}

/* ------- Hero Badge (Screen recording, reimagined) ------- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--green-soft);
  border: 1px solid rgba(1, 253, 72, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  width: fit-content;
  animation: fadeInUp 0.6s ease backwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

/* ------- Editor Section ------- */

.editor-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.editor-section .section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.6;
}

.editor-preview {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.editor-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow), 0 0 80px rgba(1, 253, 72, 0.05);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.editor-play {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17FEA0, #01FD48);
  color: #051a0c;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.editor-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(1, 253, 72, 0.4);
}

.editor-time {
  font-size: 13px;
  color: var(--text-dim);
  min-width: 100px;
}

.editor-progress {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
}

.editor-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 17%;
  background: var(--green);
  border-radius: 3px;
}

.editor-progress-handle {
  position: absolute;
  left: 17%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(1, 253, 72, 0.5);
}

.btn-editor {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 10px;
}

.editor-timeline {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-track {
  display: flex;
  gap: 4px;
  height: 56px;
}

.timeline-clip {
  flex: 1;
  background: linear-gradient(180deg, rgba(1, 253, 72, 0.3) 0%, rgba(1, 253, 72, 0.12) 100%);
  border: 1px solid rgba(1, 253, 72, 0.4);
  border-radius: 8px;
  transition: transform 150ms ease, border-color 150ms ease;
}

.timeline-clip:hover {
  border-color: var(--green);
  transform: scaleY(1.03);
}

.timeline-clip:nth-child(2) {
  flex: 0.7;
}

.timeline-clip:nth-child(4) {
  flex: 1.2;
}

.timeline-waveform {
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0px,
    var(--border) 2px,
    transparent 2px,
    transparent 6px
  );
  border-radius: 6px;
  opacity: 0.5;
}

.editor-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.tool-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 150ms ease;
}

.tool-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.tool-divider {
  color: var(--text-faint);
  margin: 0 4px;
}

/* Editor Section Responsive */
@media (max-width: 768px) {
  .editor-section {
    padding: 64px 0;
  }

  .editor-mockup {
    padding: 14px;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .editor-progress {
    order: 3;
    flex-basis: 100%;
  }

  .btn-editor {
    margin-left: auto;
  }

  .timeline-track {
    height: 48px;
  }

  .editor-tools {
    flex-wrap: wrap;
  }
}

/* ------- Reduced motion — opt out of every ambient loop. ------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}
