:root {
  /* Palette: Future Elite / Classy Cinematic */
  --color-bg-deep: #020617;
  --color-bg-surface: #0f172a;
  /* Lighter, more distinct from deep bg */
  --color-bg-glass: rgba(15, 23, 42, 0.7);

  /* Primary: Electric Violet/Indigo (Tech/Future) */
  --color-accent-primary: #6366f1;
  --color-accent-glow: #818cf8;

  /* Secondary: Cinematic Gold/Amber (Elite/Premium) */
  --color-accent-secondary: #f59e0b;
  --color-accent-contrast: #fbbf24;

  /* Accents */
  --color-accent-cyan: #06b6d4;
  /* Keep for subtle tech details */

  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-invert: #020617;

  --color-border: rgba(148, 163, 184, 0.1);
  --color-border-glow: rgba(99, 102, 241, 0.4);
  /* Violet glow */

  /* Fonts */
  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Layout */
  --layout-max-width: 1400px;
  /* Wider for cinematic feel */
  --header-height: 80px;

  /* Effects */
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
  --backdrop-blur: blur(16px);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Gradients */
  --gradient-hero: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #020617 60%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.15));
  --gradient-text: linear-gradient(to right, #818cf8, #fbbf24);
  --gradient-nav: rgba(2, 6, 23, 0.8);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: var(--color-bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-glow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-bg-glass);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.nav__logo-media {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-glow);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.nav__logo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__tagline {
  display: none;
  /* Hidden on mobile/standard to keep nav clean */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav__link:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav__cta {
  margin-left: 1rem;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

/* --- Hero Section --- */
/* --- Hero Section (Redesigned) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 8rem;
  /* Increased bottom padding to 8rem */
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

.hero__container {
  width: 100%;
  max-width: var(--layout-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  /* Massive */
  line-height: 1.05;
  margin: 0 0 1.5rem;
  background: linear-gradient(to bottom, #ffffff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 680px;
  line-height: 1.6;
}

.hero__cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__visual {
  width: 100%;
  max-width: 1100px;
  position: relative;
  margin-top: 1rem;
}

.hero__media-inner {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  /* Restored to standard 16:9 */
  position: relative;
}

.hero__media-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
  /* Inner vignette */
  pointer-events: none;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__guarantee {
  position: absolute;
  bottom: -1rem;
  /* Pulled in */
  right: -0.5rem;
  /* Pulled in */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #fcd34d, #b45309);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: rotateBadge 20s linear infinite;
  z-index: 10;
}

.hero__guarantee-text {
  display: none;
}

.hero__stamp-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  padding: 0.75rem;
}

@keyframes rotateBadge {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  /* Slightly more compact */
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  /* Vibrant Gold */
  color: #0f172a;
  /* Dark text for contrast on gold */
  font-weight: 700;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn--primary:hover {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  /* Gold glow on hover */
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-muted);
}

/* --- Scroll Reveal Animations --- */
.section--reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Children Reveal - Premium */
.section--reveal .section__header,
.section--reveal .section__content,
.section--reveal .media,
.section--reveal .pillar-card,
.section--reveal .lead-form,
.section--reveal .faq-item {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section--visible .section__header,
.section--visible .section__content,
.section--visible .media,
.section--visible .pillar-card,
.section--visible .lead-form,
.section--visible .faq-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section--visible .section__header {
  transition-delay: 0.1s;
}

.section--visible .section__content {
  transition-delay: 0.2s;
}

.section--visible .media {
  transition-delay: 0.3s;
}

.section--visible .lead-form {
  transition-delay: 0.4s;
}

/* Stagger pillars/cards */
.section--visible .pillar-card:nth-child(1) {
  transition-delay: 0.2s;
}

.section--visible .pillar-card:nth-child(2) {
  transition-delay: 0.3s;
}

.section--visible .pillar-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* --- Sections --- */
.section {
  padding: 2rem 2rem;
  /* Further reduced from 3rem to minimize dead space */
  background: var(--color-bg-deep);
  position: relative;
  border-top: 1px solid var(--color-border);
  /* Add subtle separator */
}

/* .section:nth-child(even) rule removed to allow manual theme control */

.section--light {
  background: var(--color-bg-surface);
}

.section--dark {
  background: var(--color-bg-deep);
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
  /* Reduced from 4rem */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-text-main);
  margin-bottom: 0;
  /* Removed extra margin */
}

/* --- Content Sections (Grid) --- */
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.section__content {
  order: 1;
  /* Default text order */
}

.media {
  order: 2;
  /* Default media order */
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  /* max-height removed to allow full image */
}

.media img,
.media video {
  width: 100%;
  height: auto;
  /* Let height adjust naturally */
  object-fit: contain;
  /* Ensure full image is visible */
  background: var(--color-bg-deep);
  /* Fill gaps */
  display: block;
}

/* Alternate layout for variety */
.section:nth-child(odd) .section__grid .section__content {
  order: 2;
}

.section:nth-child(odd) .section__grid .media {
  order: 1;
}

/* --- Cards / Pillars --- */
.pillar,
.callout,
.feature {
  background: rgba(255, 255, 255, 0.03);
  /* Lighter glass for contrast */
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.pillar:hover,
.callout:hover,
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-card);
  background: rgba(255, 255, 255, 0.06);
}

.pillar h3,
.callout h3,
.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent-glow);
  margin-top: 0;
  margin-bottom: 1rem;
}

.pillar p,
.callout p,
.feature p {
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Pillars / Badge Strip --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  /* Add spacing below pillars */
}

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  /* Ensure spacing above badges */
}

/* --- Lead Form --- */
.section--lead {
  background: radial-gradient(circle at 0% 50%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, #0f172a 100%);
}

.section--lead .section__header {
  text-align: left;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  margin-bottom: 1rem;
  /* Reduced dead space */
}

.section--lead .section__header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0;
}

.section__grid--lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  /* Reduced dead space from 4rem */
  align-items: start;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  /* Adjusted padding */
}

.section__grid--lead .section__content {
  padding-right: 2rem;
  max-width: 600px;
  justify-self: end;
  padding-top: 0.5rem;
}

.lead-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.lead-benefits {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.lead-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.lead-benefits li::before {
  content: "✦";
  /* Custom bullet */
  position: absolute;
  left: 0;
  color: var(--color-accent-glow);
  font-size: 0.8rem;
  top: 0.2rem;
}

.lead-form {
  max-width: 500px;
  /* Constrain form width */
  justify-self: start;
  /* Align form to the left of its column */
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  /* Lighter, more visible background */
  border: 1px solid rgba(96, 165, 250, 0.3);
  /* Stronger border */
  border-radius: 2rem;
  padding: 2.5rem;
  /* Slightly tighter padding */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
  /* Enhanced shadow/glow */
  backdrop-filter: blur(20px);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.6);
  /* Darker, deeper background */
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  color: var(--color-text-main);
  font-family: var(--font-body);
  transition: all var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Inner depth */
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: rgba(2, 6, 23, 0.8);
}

.form-field label span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- CTA Section --- */
.section--cta {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 2rem;
  margin-top: 0;
  /* Removed dead space strip */
  border-top: 1px solid var(--color-border-glow);
  border-bottom: 1px solid var(--color-border-glow);
}

.section--cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.cta {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: #000000;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  color: var(--color-text-muted);
}

/* --- Utilities --- */
.badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-accent-glow);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .nav__links {
    display: none;
    /* Mobile menu to be implemented if needed, for now hidden */
  }

  .section__grid,
  .section__grid--lead {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 3rem;
  }

  .section__grid .media {
    order: -1 !important;
    /* Media first on mobile usually looks better, or keep text first */
    max-height: 300px;
  }

  .section__grid--lead .section__content {
    padding-right: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 4rem;
    /* Reduced padding */
  }

  .hero__container {
    gap: 1.5rem;
    /* Tighter gap */
  }

  .hero__headline {
    font-size: 2.75rem;
    /* Smaller headline */
    margin-bottom: 1rem;
  }

  .hero__sub {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero__visual {
    margin-top: 0;
  }

  .hero__guarantee {
    width: 90px;
    height: 90px;
    bottom: -0.75rem;
    right: -0.25rem;
  }
}