/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #000; color: #e5e7eb; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

/* Global variables for header sizing/positioning */
:root {
  --app-pad: 15px; /* uniform inset around content panel */
}

/* Full-screen looping video */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0; /* behind everything */
}

/* Simple black overlay on top of video */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, var(--scrim-opacity, 1));
  transition: background 500ms ease;
}

/* Centered hero with logo and chevron */
.hero {
  min-height: 100vh;
  display: grid;
  place-content: center;
  position: relative;
  z-index: 200;
  padding: clamp(1.5rem, 4vw, 4rem);
}
.hero-card {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  border-radius: 36px;
  background: rgba(7, 15, 32, 0.48);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 65px rgba(15,118,255,0.18);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-card-brand {
  display: flex;
  justify-content: flex-start;
}
.hero-brand {
  justify-items: flex-start;
  align-items: flex-start;
  gap: clamp(0.4rem, 0.9vw, 0.9rem);
}
.hero-brand .brand-logo {
  width: clamp(230px, 28vw, 420px);
}
.hero-brand .brand-text {
  width: clamp(200px, 26vw, 360px);
  text-align: left;
}
.hero-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}
.hero-copy {
  display: grid;
  gap: 0.75rem;
}
.hero-divider {
  width: 1.5px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.75), rgba(255,255,255,0));
  border-radius: 999px;
  align-self: stretch;
}
.hero-tagline-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-tagline-panel--floating {
  background: transparent;
  border: 0;
}
.hero-tagline-panel .tagline {
  margin: 0;
  text-align: center;
}

/* Brand block: logo centered initially; text appears to the right on expand */
.brand {
  display: grid;
  grid-auto-flow: row;
  place-items: center;
  gap: 1rem;
  transition: grid-auto-flow 400ms ease, gap 400ms ease, transform 500ms ease;
}
.brand-logo {
  width: clamp(320px, 50vw, 720px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
  transition: width 400ms ease, transform 400ms ease;
}
.brand-text {
  width: clamp(280px, 36vw, 640px);
  height: auto;
  opacity: 1;
  transform: translateX(0);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.35));
  transition: opacity 400ms ease, transform 400ms ease;
}
.brand-target {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 6px;
}
.brand.brand--section {
  grid-auto-flow: column;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  margin: 0;
  width: auto;
  justify-content: flex-start;
}
.brand.brand--section .brand-logo {
  width: clamp(120px, 18vw, 220px);
}
.brand.brand--section .brand-text {
  width: clamp(110px, 22vw, 200px);
}

/* Expanded layout: row, centered as a combined unit */
body.expanded .brand {
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
}
body.expanded .brand-logo {
  width: clamp(220px, 28vw, 420px);
}
body.expanded .brand-text {
  opacity: 1;
  transform: translateX(0);
}
body.revealed .hero {
  z-index: 5;
  pointer-events: none;
}
.value-prop {
  font-size: clamp(22px, 4.8vw, 44px);
  font-weight: 800;
  margin: 6px 0 8px;
  letter-spacing: 0.01em;
}
.value-prop {
  font-size: clamp(22px, 4.8vw, 44px);
  font-weight: 800;
  margin: 6px 0 8px;
  letter-spacing: 0.01em;
}
.subhead {
  max-width: 820px;
  margin: 0 auto 10px;
  color: #cbd5e1;
  line-height: 1.5;
  text-align: inherit;
}
.pilot-note {
  max-width: 680px;
  margin: 0.5rem auto 0.75rem;
  font-size: 16px;
  color: #f8fafc;
  line-height: 1.45;
}
.compliance-note {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  opacity: 0.9;
  text-align: inherit;
}
body.revealed .value-prop,
body.revealed .subhead,
body.revealed .pilot-note,
body.revealed .compliance-note {
  display: none;
}

/* After reveal adjustments */
body.revealed .tagline {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* Tagline with animated gradient clipped to text */
.tagline {
  height: 1em;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 72px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  position: relative;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
}
.tagline .word {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  filter: blur(4px);
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6, #f59e0b, #34d399, #38bdf8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-pan 8s linear infinite;
  transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
  will-change: opacity, transform, filter;
}
.tagline .word.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
  filter: blur(0);
}
@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Reveal tagline after expand */
body.expanded .tagline {
  opacity: 1;
  transform: translateY(0);
}

/* Chevron button */
.chevron-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline-offset: 4px;
  display: grid;
  place-items: center;
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vh, 32px);
  transform: translateX(-50%);
  z-index: 500; /* ensure above everything on intro */
}
.chevron {
  width: clamp(44px, 5vw, 72px);
  height: auto;
  display: block;
  animation: chevron-bounce 1.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

body.revealed .chevron-btn {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}

@media (max-width: 640px) {
  .hero { gap: 0.75rem; }
}

/* Large frosted content placeholder */
.glass-content {
  position: fixed;
  left: 50%;
  top: var(--app-pad);
  z-index: 30; /* above hero background */
  width: calc(100vw - (var(--app-pad) * 2));
  height: calc(100vh - (var(--app-pad) * 2));
  border-radius: 24px;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none; /* do not intercept intro clicks */
}
.glass-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--group-border, rgba(255, 255, 255, 0.22));
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08) inset, 0 0 28px var(--group-glow, rgba(0,0,0,0));
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
}
body.revealed .glass-content {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto; /* enable interactions after reveal */
}

/* Content layout inside glass */
.glass-content-inner { position: relative; z-index: 1; height: 100%; padding: 14px 18px; display: grid; grid-template-rows: 1fr auto; }
.pricing-btn { position: absolute; top: 16px; right: 16px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--group-border, rgba(255,255,255,0.22)); background: rgba(255,255,255,0.06); color: #e5e7eb; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pricing-btn:hover { background: rgba(255,255,255,0.1); }
.section { opacity: 1; transition: opacity 280ms ease; }
.section.is-fading { opacity: 0; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 28px); align-items: center; height: 100%; }
.section-media { height: 100%; display: grid; place-items: center; }
.media-frame { width: 100%; height: 100%; border-radius: 17px; padding: 5px; position: relative; background: rgba(255,255,255,0.16); border: 1px solid var(--group-border, rgba(255,255,255,0.32)); -webkit-backdrop-filter: blur(16px) saturate(1.08); backdrop-filter: blur(16px) saturate(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.32), 0 0 18px var(--group-glow, rgba(0,0,0,0)), inset 0 0 0 1px rgba(255,255,255,0.10); }
.media-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.02)); pointer-events: none; z-index: 0; }
.feature-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px;
  transition: opacity 300ms ease;
}
.feature-img.is-placeholder {
  border-style: dashed;
  opacity: 0.45;
}

.section-copy h2.section-title { margin: 4px 0 10px; font-size: clamp(20px, 3.4vw, 34px); letter-spacing: 0.02em; }
.section-copy p { margin: 0; color: #e5e7eb; line-height: 1.55; }
.section-copy p.lead { font-weight: 600; color: #f3f4f6; margin-bottom: 8px; }
.section-copy p.body { color: #e5e7eb; opacity: 0.95; }

/* CTAs */
.cta-row { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 9999px; padding: 10px 16px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease; display: inline-flex; align-items: center; justify-content: center; }
.cta-primary { background: var(--group-accent, #38bdf8); color: #0b1220; box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 16px var(--group-glow, rgba(0,0,0,0)); }
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.30), 0 0 20px var(--group-glow, rgba(0,0,0,0)); }
.cta-secondary { background: rgba(255,255,255,0.06); color: #e5e7eb; border-color: var(--group-border, rgba(255,255,255,0.22)); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.cta-secondary:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }

/* Group chip */
.chip {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

/* Group tints for chip */
.chip--support { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.45); }
.chip--engage { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.45); }
.chip--nurture { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.45); }
.chip--deliver { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.45); }
.chip--relentless { background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.45); }

.content-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; position: relative; z-index: 3; }
.nav-btn { background: transparent; border: 0; cursor: pointer; border-radius: 999px; width: 48px; height: 48px; display: grid; place-items: center; outline-offset: 4px; animation: chevron-bounce-x 1.4s ease-in-out infinite; z-index: 3; }
.nav-btn svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
/* Left for previous, right for next */
.prev-section svg { transform: rotate(90deg); }
.next-section svg { transform: rotate(-90deg); }

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.progress-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
}
.progress-dots button.is-active {
  background: var(--group-accent, #38bdf8);
  box-shadow: 0 0 8px var(--group-glow, rgba(0,0,0,0.4));
}

@keyframes chevron-bounce-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .section-media { order: -1; height: 34vh; }
}

/* Group tints applied to content border and chevrons */
.glass-content.group-support { --group-border: rgba(52, 211, 153, 0.45); --group-glow: rgba(52, 211, 153, 0.28); --group-accent: #34d399; }
.glass-content.group-engage  { --group-border: rgba(99, 102, 241, 0.45); --group-glow: rgba(99, 102, 241, 0.28); --group-accent: #6366f1; }
.glass-content.group-nurture { --group-border: rgba(56, 189, 248, 0.45); --group-glow: rgba(56, 189, 248, 0.28); --group-accent: #38bdf8; }
.glass-content.group-deliver { --group-border: rgba(245, 158, 11, 0.45); --group-glow: rgba(245, 158, 11, 0.28); --group-accent: #f59e0b; }
.glass-content.group-relentless { --group-border: rgba(148, 163, 184, 0.45); --group-glow: rgba(148, 163, 184, 0.28); --group-accent: #94a3b8; }

.glass-content.group-support .nav-btn svg path { stroke: #34d399; }
.glass-content.group-engage  .nav-btn svg path { stroke: #6366f1; }
.glass-content.group-nurture .nav-btn svg path { stroke: #38bdf8; }
.glass-content.group-deliver .nav-btn svg path { stroke: #f59e0b; }
.glass-content.group-relentless .nav-btn svg path { stroke: #94a3b8; }

/* Tinted glow on chevrons per group */
.glass-content.group-support .nav-btn svg { filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.45)); }
.glass-content.group-engage  .nav-btn svg { filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.45)); }
.glass-content.group-nurture .nav-btn svg { filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.45)); }
.glass-content.group-deliver .nav-btn svg { filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45)); }
.glass-content.group-relentless .nav-btn svg { filter: drop-shadow(0 2px 8px rgba(148, 163, 184, 0.45)); }

/* Pricing modal */
.pricing-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 400; }
.pricing-modal::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.pricing-panel { position: relative; width: min(96vw, 960px); max-height: 84vh; border-radius: 18px; padding: 16px; background: rgba(255,255,255,0.12); border: 1px solid var(--group-border, rgba(255,255,255,0.28)); -webkit-backdrop-filter: blur(18px) saturate(1.08); backdrop-filter: blur(18px) saturate(1.08); box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 28px var(--group-glow, rgba(0,0,0,0)); color: #e5e7eb; overflow: auto; }
.pricing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pricing-header h3 { margin: 0; font-size: 20px; letter-spacing: 0.02em; }
.pricing-close { background: transparent; border: 0; color: #e5e7eb; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.pricing-close:hover { background: rgba(255,255,255,0.08); }
.pricing-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 2px 2px; }
.pricing-item { background: rgba(255,255,255,0.08); border: 1px solid var(--group-border, rgba(255,255,255,0.18)); border-radius: 14px; padding: 14px; }
.pricing-item h4 { margin: 0 0 6px; font-size: 16px; }
.pricing-item p { margin: 0 0 8px; color: #cbd5e1; }
.pricing-item ul { margin: 0; padding-left: 18px; }
.pricing-item li { margin: 4px 0; }
.cta-btn.cta-primary { text-transform: none; }

.pricing-modal[aria-hidden="false"] { display: flex; }

.lead-form {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  gap: 14px;
}
.lead-form h3 {
  margin: 0;
}
.lead-form .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  color: #f8fafc;
  font: inherit;
}
.lead-form button {
  width: fit-content;
}
.lead-form__status {
  margin: 0;
  font-size: 14px;
}
.lead-form__status--success { color: #34d399; }
.lead-form__status--error { color: #fca5a5; }
.pilot-sheet-close {
  display: none;
}
.pilot-sheet-mask {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .chevron { animation: none; }
  .tagline .word { animation: none; }
}

@media (max-width: 768px), (max-height: 640px) {
  .hero-card {
    border-radius: 28px;
    padding: clamp(1.25rem, 6vw, 2.2rem);
    text-align: center;
  }
  .hero-card-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.65), rgba(255,255,255,0));
  }
  .hero-tagline-panel {
    text-align: center;
  }
  .glass-content {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 0;
    transform: none;
  }
  body.revealed .glass-content {
    transform: none;
  }
  .glass-content-inner {
    padding: 12px 16px 90px;
    grid-template-rows: auto auto;
  }
  .section-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 45vh) auto;
    gap: 14px;
  }
  .section-media {
    height: min(45vh, 360px);
    order: -1;
  }
  .section-copy {
    padding-bottom: 10px;
  }
  .lead-form {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 320ms ease;
    max-height: 85vh;
    overflow: auto;
    padding: 18px 18px 24px;
    z-index: 120;
  }
  .lead-form .grid {
    grid-template-columns: 1fr;
  }
  .pilot-sheet-close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.08);
    border: 0;
    border-radius: 999px;
    padding: 6px;
    color: #e5e7eb;
  }
  .pilot-sheet-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    z-index: 110;
  }
  body.show-pilot-sheet .lead-form {
    transform: translateY(0);
  }
  body.show-pilot-sheet .pilot-sheet-mask {
    opacity: 1;
    pointer-events: auto;
  }
}
