/* ============================================================
   Pitchmate — Intelligence Designed To Evolve
   ============================================================ */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open,
body.demo-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================ Background video ============================ */

.bg {
  position: absolute;
  inset: 0;
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ============================ Back to top (scroll-progress ring) ============================ */

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  color: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #323234;
  transform: translateY(-2px);
}

.back-to-top-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.back-to-top-ring-progress {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
  transition: stroke-dashoffset 0.08s linear;
}

.back-to-top-arrow {
  position: relative;
  z-index: 1;
}

/* ============================ Page / viewport one ============================ */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

.header,
.hero,
.stats,
.menu-overlay,
.menu-sheet {
  z-index: 1;
}

/* ============================ Header ============================ */

.header {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo -------------------------------------------------------------------- */

.logo {
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo svg {
  width: 72%;
  height: 72%;
}

.logo:hover {
  transform: scale(1.04);
}

/* Nav pill ---------------------------------------------------------------- */

.nav {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-link {
  position: relative;
  padding: 6px 4px 10px;
  background: none;
  border: 0;
  color: var(--nav-text);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

/* Sign in ----------------------------------------------------------------- */

/* Burger (mobile) --------------------------------------------------------- */

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  transition: background 0.28s ease;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease, background 0.28s ease;
}

.burger.is-open {
  background: #fff;
}

.burger.is-open span {
  background: #111;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================ Hero ============================ */

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(28px, 7vh, 84px);
  text-align: center;
}

/* Headline ---------------------------------------------------------------- */

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.75), 0 4px 28px rgba(0, 0, 0, 0.6);
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline .line-1 {
  animation-delay: 0.12s;
}

.headline .line-2 {
  animation-delay: 0.3s;
}

/* Subhead ----------------------------------------------------------------- */

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2vh, 22px) 0 0;
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* CTA --------------------------------------------------------------------- */

.cta-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(18px, 2.8vh, 30px);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-row.cta-row-center {
  margin-top: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Watch Demo (secondary) */
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(11px, 1.6vh, 13px) clamp(20px, 2.6vw, 25px);
  background: var(--pill-dark);
  color: #e9e9e9;
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-ghost:hover {
  background: #323234;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.cta-ghost-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.cta-ghost-icon::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 1.5px;
  border-left: 6px solid #111;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ============================ Stats ============================ */

.stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.1;
}

.stat-value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================ Below-fold content ============================ */

.content {
  position: relative;
  z-index: 2;
  background: #07070a;
  overflow: hidden;
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  inset: -10% -6%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient glow wash — soft blobs in the video's own violet/amber tones,
   loosely aligned with each section as the page scrolls. */
.content::before {
  background-image: radial-gradient(
      620px 480px at 16% 6%,
      rgba(132, 101, 255, 0.2),
      transparent 70%
    ),
    radial-gradient(560px 460px at 84% 30%, rgba(255, 150, 95, 0.13), transparent 70%),
    radial-gradient(640px 520px at 20% 58%, rgba(255, 120, 190, 0.1), transparent 70%),
    radial-gradient(560px 460px at 80% 84%, rgba(132, 101, 255, 0.16), transparent 70%),
    radial-gradient(620px 480px at 24% 108%, rgba(255, 150, 95, 0.12), transparent 70%);
  filter: blur(6px);
  animation: driftGlow 36s ease-in-out infinite alternate;
}

/* Faint dot-matrix texture, echoing the display font */
.content::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.55;
}

@keyframes driftGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 2%, 0) scale(1.04);
  }
}

.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(64px, 9vh, 110px) clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-transform: lowercase;
}

.sec-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.sec-sub {
  max-width: 620px;
  margin: 0;
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
}

.wrap-narrow .sec-sub {
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(32px, 5vh, 52px);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-tabs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards ------------------------------------------------------------------- */

.card {
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--trust-border);
  background: #2f2f31;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon i {
  color: #111;
  font-size: 15px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: clamp(15px, 1.5vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.card p {
  margin: 0;
  color: var(--trust-text);
  font-size: 13.5px;
  line-height: 1.65;
}

.step-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
  color: #fff;
}

/* Workspace tabs ---------------------------------------------------------- */

.tab {
  padding: 18px 20px;
  background: rgba(40, 40, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, background 0.3s ease;
}

.tab:hover {
  transform: translateY(-3px);
  background: var(--pill-dark);
  border-color: var(--trust-border);
}

.tab i {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.tab b {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.tab span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Deliverable pills ------------------------------------------------------- */

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(32px, 5vh, 52px) 0 0;
  padding: 0;
}

.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  color: var(--trust-text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.pill-list li:hover {
  transform: translateY(-2px);
  color: #fff;
}

.pill-list i {
  color: #fff;
  font-size: 13px;
}

/* Contact form -------------------------------------------------------------- */

.contact-form {
  width: 100%;
  max-width: 480px;
  margin: clamp(28px, 4vh, 40px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--trust-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #75757a;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--trust-border);
  background: #303032;
}

.contact-submit {
  align-self: center;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
  min-width: 160px;
  justify-content: center;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
}

.form-status {
  min-height: 18px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.form-status.is-success {
  color: #7ee2a8;
}

.form-status.is-error {
  color: #ff9d9d;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* CTA section + footer ---------------------------------------------------- */

.section-cta {
  padding-bottom: clamp(40px, 5vh, 60px);
}

.site-footer {
  padding: 22px clamp(16px, 4vw, 32px) 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.05em;
  color: #fff;
}

.footer-note {
  color: var(--muted);
  font-size: 12.5px;
}

/* ============================ Demo modal ============================ */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
}

.demo-modal[hidden] {
  display: none;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.28s ease both;
}

.demo-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: 90vh;
  max-height: 90svh;
  overflow: auto;
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.demo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.demo-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.demo-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.demo-meta {
  padding: 20px clamp(18px, 3vw, 28px) 26px;
}

.demo-meta h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.demo-meta p {
  margin: 0;
  color: var(--trust-text);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ============================ Mobile menu ============================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.menu-overlay[hidden],
.menu-sheet[hidden] {
  display: none;
}

.menu-sheet {
  position: fixed;
  z-index: 41;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 28px));
  padding: 22px 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link {
  position: relative;
  width: 100%;
  padding: 13px 8px 17px;
  background: none;
  border: 0;
  text-align: center;
  color: var(--nav-text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.55;
  cursor: pointer;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-link:nth-child(1) {
  animation-delay: 0.06s;
}
.menu-link:nth-child(2) {
  animation-delay: 0.12s;
}
.menu-link:nth-child(3) {
  animation-delay: 0.18s;
}
.menu-link:nth-child(4) {
  animation-delay: 0.24s;
}

.menu-link.is-active {
  opacity: 1;
}

.menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

/* ============================ Animations ============================ */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.headline.anim {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.cta-row.anim {
  animation-name: revealPulse;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.demo-panel {
  animation-name: modalIn;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll reveal for below-fold sections */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================ Responsive ============================ */

@media (max-width: 900px) {
  .demo-video {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  /* On a narrow phone, a width-driven 16:9 box is quite short. Switch to
     a height-driven box so the embedded player gets real room regardless
     of screen width. */
  .demo-video {
    aspect-ratio: auto;
    height: min(58svh, 420px);
  }
}

@media (max-width: 720px) {
  .bg-video {
    /* A narrow portrait crop shows a much thinner vertical slice of the
       same footage than desktop's wide crop — needs its own offset to
       keep the dark band under the headline. Tune this value to taste. */
    object-position: center 78%;
  }

  .header {
    max-width: 100%;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .hero {
    /* Enough to clear the video's light band for contrast, but capped
       low enough that header + hero + stats still fit inside the
       single-viewport .page (overflow: hidden) without the stats row
       getting clipped and the next section appearing to overlap it. */
    padding-top: clamp(40px, 12vh, 110px);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .section {
    padding: clamp(36px, 8vw, 56px) clamp(16px, 4vw, 32px);
  }

  .grid {
    margin-top: clamp(24px, 6vw, 36px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 22px);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 700px) and (max-height: 760px) {
  .subhead {
    margin-top: 12px;
  }

  .cta-row {
    margin-top: 16px;
  }
}

@media (max-width: 420px) {
  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .cta,
  .cta-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ============================ Reduced motion ============================ */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline .line {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .headline {
    color: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
