/* ==========================================================================
   Vocl — Stealth Product Landing Page
   Pure OLED Black (#000000) · Crisp White (#FFFFFF) · Zinc (#71717A)
   Whisper Live-Signal Green (#28D763)
   ========================================================================== */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --ink: #ffffff;
  --ink-soft: #e4e4e7;
  --ink-secondary: #a1a1aa;
  --muted: #71717a;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --signal: #28d763;
  --signal-glow: rgba(40, 215, 99, 0.35);

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

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.5;
}

::selection {
  background-color: rgba(255, 255, 255, 0.92);
  color: #000000;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO — 100svh, Centered, Hypnotic & Minimal
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: heroFadeIn 0.65s var(--ease-out-expo) both;
}

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

/* Brand Lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.25rem;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Whisper Live-Signal Indicator */
.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.78rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.signal-pill .mono-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
  flex-shrink: 0;
  animation: signalBreath 3.2s ease-in-out infinite;
}

.signal-dot--sm {
  width: 5px;
  height: 5px;
}

@keyframes signalBreath {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
    box-shadow: 0 0 4px var(--signal-glow);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--signal-glow);
  }
}

/* Headline & Subline */
.hero-headline {
  font-size: clamp(2.75rem, 8.2vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.hero-subline {
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin-bottom: 2.75rem;
}

/* Primary CTA */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 50px;
  padding: 0 1.65rem;
  border-radius: 999px;
  background-color: var(--ink);
  color: #000000;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition:
    transform 0.28s var(--ease-out-expo),
    background-color 0.2s ease,
    box-shadow 0.28s var(--ease-out-expo);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cta-button:hover {
  transform: translateY(-1.5px);
  background-color: #f4f4f5;
  box-shadow: 0 10px 34px rgba(255, 255, 255, 0.14);
}

.cta-button:active {
  transform: translateY(0) scale(0.985);
}

.cta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cta-meta {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: none;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-arrow {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  display: inline-block;
  animation: scrollFloat 2.8s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(5px);
    opacity: 0.95;
  }
}

/* ==========================================================================
   BELOW THE FOLD — Mysterious 3-Beat Reveal
   ========================================================================== */

.beats {
  position: relative;
  padding: clamp(5.5rem, 13vh, 9.5rem) 1.5rem clamp(6rem, 14vh, 10rem);
}

.beats-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(5.5rem, 13vh, 9rem);
}

.beat {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}

/* Scroll-triggered reveal (enabled progressively when JS adds .js-reveal) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.beat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.beat-index {
  color: var(--ink);
  font-weight: 500;
}

.beat-slash {
  color: rgba(113, 113, 122, 0.45);
}

.beat-title {
  color: var(--muted);
}

.beat-copy {
  font-size: clamp(1.375rem, 3.6vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.38;
  color: var(--ink-soft);
}

/* Quiet Closing Whisper */
.closing-cta {
  border-top: 1px solid var(--hairline);
  padding-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.closing-link:hover {
  opacity: 0.78;
}

.closing-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--signal);
  transition: transform 0.25s var(--ease-out-expo);
}

.closing-link:hover .closing-arrow {
  transform: translate(2px, -2px);
}

.closing-note {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem 2.75rem;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--ink-soft);
  font-weight: 400;
}

.footer-sep {
  opacity: 0.4;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  color: var(--muted);
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   DARK LEGAL MODAL (<dialog>)
   ========================================================================== */

.legal-modal {
  margin: auto;
  padding: 0;
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  background: transparent;
  border: none;
  color: var(--ink);
  overflow: visible;
}

.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-surface {
  background-color: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 1.5rem 1.65rem 1.75rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.modal-title {
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.modal-body strong {
  color: var(--ink);
  font-weight: 500;
}

.modal-body .modal-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ==========================================================================
   RESPONSIVE & REDUCED MOTION
   ========================================================================== */

@media (max-width: 540px) {
  .hero {
    padding: 2.5rem 1.25rem 4rem;
  }

  .brand-lockup {
    margin-bottom: 1.85rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-wordmark {
    font-size: 1.25rem;
  }

  .hero-subline {
    margin-bottom: 2.25rem;
  }

  .cta-button {
    width: 100%;
    max-width: 290px;
  }

  .beats {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner,
  .signal-dot,
  .scroll-arrow {
    animation: none;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
