/* ============================================
   LIGHTHOUSE SVS — Styles
   Extends Orbital Lab design system.
   Overrides accent color to Lighthouse blue.
   ============================================ */

/* Import base styles */
@import url('styles.css');

/* ============================================
   Lighthouse Accent Override
   ============================================ */
:root {
  --color-accent: #4DA8FF;
  --color-accent-soft: rgba(77, 168, 255, 0.10);
  --color-accent-glow: rgba(77, 168, 255, 0.22);
  --color-accent-glow-strong: rgba(77, 168, 255, 0.35);
  --color-lighthouse: #4DA8FF;
  --color-lighthouse-deep: #1B6FD1;
}


/* ============================================
   Lighthouse Hero
   ============================================ */
.lh-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.lh-hero__inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lh-hero__content {
  position: relative;
  z-index: 1;
}

.lh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(77, 168, 255, 0.25);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 32px;
  background: rgba(77, 168, 255, 0.05);
}

.lh-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: lh-pulse-dot 2s ease-in-out infinite;
}

@keyframes lh-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.lh-hero__badge-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.lh-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.lh-hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-accent);
}

.lh-hero__subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 440px;
  margin-bottom: 40px;
}

.lh-hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lh-hero__space-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.lh-hero__space-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-right: 4px;
}

.lh-hero__space-tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 10px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lh-hero__space-tag:hover {
  border-color: rgba(77, 168, 255, 0.3);
  color: var(--color-accent);
}

/* Hero visual — audience detection */
.lh-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lh-detect-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.lh-detect-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(77, 168, 255, 0.06));
}

/* Scanning line animation */
.lh-scan-line {
  animation: lh-scan-sweep 3s ease-in-out infinite;
}

@keyframes lh-scan-sweep {
  0%   { transform: translateY(0px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(310px); opacity: 0; }
}

/* Bounding boxes fade in staggered */
.lh-bbox {
  opacity: 0;
  animation: lh-bbox-appear 0.5s ease-out forwards;
}
.lh-bbox--1 { animation-delay: 0.4s; }
.lh-bbox--2 { animation-delay: 0.7s; }
.lh-bbox--3 { animation-delay: 0.5s; }
.lh-bbox--4 { animation-delay: 0.9s; }

@keyframes lh-bbox-appear {
  from { opacity: 0; }
  to   { opacity: 0.7; }
}

/* Person silhouettes subtle pulse */
.lh-person {
  animation: lh-person-breathe 4s ease-in-out infinite;
}
.lh-person--1 { animation-delay: 0s; }
.lh-person--2 { animation-delay: 0.6s; }
.lh-person--3 { animation-delay: 0.3s; }
.lh-person--4 { animation-delay: 0.9s; }

@keyframes lh-person-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Tags slide in from top */
.lh-tag {
  opacity: 0;
  animation: lh-tag-slide 0.4s ease-out forwards;
}
.lh-tag--1 { animation-delay: 0.8s; }
.lh-tag--2 { animation-delay: 1.1s; }
.lh-tag--3 { animation-delay: 0.9s; }
.lh-tag--4 { animation-delay: 1.3s; }

@keyframes lh-tag-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats panel fade in */
.lh-stats-panel {
  opacity: 0;
  animation: lh-panel-fade 0.6s ease-out 1.6s forwards;
}

/* Detection badge */
.lh-detect-badge {
  opacity: 0;
  animation: lh-panel-fade 0.6s ease-out 0.3s forwards;
}

@keyframes lh-panel-fade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Detection pulse ring */
.lh-detect-pulse {
  animation: lh-detect-pulse-expand 2s ease-out infinite;
}

@keyframes lh-detect-pulse-expand {
  0%   { r: 4; opacity: 0.8; }
  100% { r: 14; opacity: 0; }
}


/* ============================================
   Metrics Strip
   ============================================ */
.lh-metrics {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px var(--section-pad-x);
  background: var(--color-surface);
}

.lh-metrics__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.lh-metric {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--color-border);
}

.lh-metric:last-child {
  border-right: none;
}

.lh-metric__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 6px;
}

.lh-metric__value span {
  color: var(--color-accent);
}

.lh-metric__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ============================================
   Benefits Section
   ============================================ */
.lh-benefits {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 140px) var(--section-pad-x);
}

.lh-benefits__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.lh-benefits__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.lh-benefits__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 64px;
  max-width: 600px;
}

.lh-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lh-benefit-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  cursor: default;
}

.lh-benefit-card:hover {
  border-color: rgba(77, 168, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(77, 168, 255, 0.06);
}

.lh-benefit-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.lh-benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.lh-benefit-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-secondary);
}


/* ============================================
   Technology Section
   ============================================ */
.lh-tech {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 140px) var(--section-pad-x);
  background: var(--color-surface);
}

.lh-tech__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.lh-tech__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.lh-tech__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.lh-tech__subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: 64px;
}

/* Philosophy pills */
.lh-tech__philosophy {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.lh-tech__pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 24px;
  transition: border-color 0.3s ease;
}

.lh-tech__pill:hover {
  border-color: rgba(77, 168, 255, 0.25);
}

.lh-tech__pill-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.lh-tech__pill-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.lh-tech__pill-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--color-text-tertiary);
}

/* Pipeline steps */
.lh-tech__pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lh-tech__pipe-step {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.lh-tech__pipe-step:hover {
  border-color: rgba(77, 168, 255, 0.25);
  transform: translateY(-2px);
}

.lh-tech__pipe-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.lh-tech__pipe-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.lh-tech__pipe-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
}


/* ============================================
   Features Section (Spatial)
   Uses same .features classes from styles.css
   ============================================ */

/* Row wrapper: bullet + content */
.features__item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}


/* Override headline for features section */
.lh-features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: 48px;
}

/* Heatmap zone pulse */
.lh-heat-zone {
  animation: lh-heat-pulse 3s ease-in-out infinite;
}

.lh-heat-zone:nth-child(1) { animation-delay: 0s; }
.lh-heat-zone:nth-child(2) { animation-delay: 0.5s; }
.lh-heat-zone:nth-child(3) { animation-delay: 1s; }

@keyframes lh-heat-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Detection scan animation */
.lh-detect-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.features__visual--active .lh-detect-path {
  animation: lh-detect-draw 1.8s var(--ease-out-expo) 0.2s forwards;
}

@keyframes lh-detect-draw {
  to { stroke-dashoffset: 0; }
}

/* Flow line draw */
.lh-flow-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.features__visual--active .lh-flow-path {
  animation: lh-flow-draw 1.5s var(--ease-out-expo) 0.3s forwards;
}

@keyframes lh-flow-draw {
  to { stroke-dashoffset: 0; }
}

/* Alert ring fill */
.lh-alert-ring {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.features__visual--active .lh-alert-ring {
  animation: lh-ring-fill 1.4s var(--ease-out-expo) 0.6s forwards;
}

@keyframes lh-ring-fill {
  to { stroke-dashoffset: 20; }
}


/* ============================================
   Use Cases Grid
   ============================================ */
.lh-usecases {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vw, 120px) var(--section-pad-x);
  background: var(--color-surface);
}

.lh-usecases__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.lh-usecases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.lh-usecases__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.lh-usecases__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.lh-usecases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lh-usecase-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  cursor: default;
}

.lh-usecase-card:hover {
  border-color: rgba(77, 168, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(77, 168, 255, 0.06);
}

.lh-usecase-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.lh-usecase-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.lh-usecase-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-secondary);
}


/* ============================================
   CTA Block (Lighthouse)
   ============================================ */
.lh-cta {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 140px) var(--section-pad-x);
  overflow: hidden;
}

.lh-cta__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lh-cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.lh-cta__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(77, 168, 255, 0.07);
  top: -100px;
  right: -100px;
}

.lh-cta__orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(77, 168, 255, 0.04);
  bottom: -80px;
  left: 10%;
}

.lh-cta__inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.lh-cta__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(77, 168, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.lh-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  max-width: 800px;
}

.lh-cta__subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 8px 0 24px;
}

.lh-cta__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(77, 168, 255, 0.4), transparent);
  margin: 8px 0;
}


/* ============================================
   Buttons (Lighthouse overrides)
   ============================================ */
.btn--lh-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #050505;
  background: var(--color-accent);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn--lh-primary:hover {
  background: #6dbdff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 168, 255, 0.25);
}

.btn--lh-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.btn--lh-ghost:hover {
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ============================================
   Section Divider
   ============================================ */
.lh-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
  margin: 0 var(--section-pad-x);
  position: relative;
  z-index: 2;
}


/* ============================================
   Scroll Reveal
   ============================================ */
.lh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.lh-reveal--delay-1 { transition-delay: 0.1s; }
.lh-reveal--delay-2 { transition-delay: 0.2s; }
.lh-reveal--delay-3 { transition-delay: 0.3s; }
.lh-reveal--delay-4 { transition-delay: 0.4s; }


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .lh-usecases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lh-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lh-tech__pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lh-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lh-hero__visual {
    order: 1;
  }

  .lh-hero__headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .lh-metrics__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lh-metric {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
  }

  .lh-metric:last-child {
    border-bottom: none;
  }

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

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

  .lh-tech__philosophy {
    flex-direction: column;
    align-items: flex-start;
  }

  .lh-tech__pill-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

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

  .lh-usecases__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .features__item {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .features__item-row {
    width: 100%;
  }

  .features__visual {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none !important;
    margin-top: 24px;
    height: 280px;
    width: 100%;
  }

  .features__inner {
    display: flex;
    flex-direction: column;
  }

  .features__left {
    width: 100%;
    max-width: 100%;
  }

  .features__runway {
    height: auto;
  }

  .features__sticky {
    position: relative;
    height: auto;
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .lh-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lh-primary,
  .btn--lh-ghost {
    text-align: center;
    justify-content: center;
  }
}
