/* ============================================
   ORBITAL LAB — Main Page Styles
   Imports base design system
   ============================================ */
@import url('styles.css');


/* ============================================
   Main Hero
   ============================================ */
.main-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) var(--section-pad-x) 80px;
  text-align: center;
}

.main-hero__inner {
  max-width: 840px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.main-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 48px;
  cursor: default;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.main-hero__badge:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-elevated);
}

.main-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.main-hero__badge-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

.main-hero__badge svg {
  color: var(--color-text-tertiary);
  transition: transform 0.25s ease;
}

.main-hero__badge:hover svg {
  transform: translateX(3px);
}

/* Headline */
.main-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out-expo) 0.35s forwards;
}

.main-hero__headline em {
  font-style: normal;
  font-weight: 600;
}

/* Subtext */
.main-hero__subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s var(--ease-out-expo) 0.5s forwards;
}

/* CTAs */
.main-hero__ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.65s forwards;
}

.btn--main-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-bg);
  background: var(--color-text-primary);
  padding: 14px 32px;
  border-radius: 8px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--main-primary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn--main-primary--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--main-primary--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-arrow {
  font-size: 1.1em;
  transition: transform 0.25s ease;
}

.btn--main-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn--main-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-primary);
  background: transparent;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--main-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}


/* ============================================
   Mission Statement
   ============================================ */
.mission {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 140px) var(--section-pad-x);
}

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

.mission__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  color: #b59191;
  margin-bottom: 12px;
}

.mission__text {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.36px;
  color: var(--color-text-tertiary);
}

.mission__word {
  display: inline;
  transition: color 0.35s var(--ease-out-expo);
  color: var(--color-text-tertiary);
}

.mission__word--lit {
  color: #ffffff;
}


/* ============================================
   Product Cards
   ============================================ */
.products {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) var(--section-pad-x);
}

.products__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  max-width: var(--content-max);
  margin: 0 auto clamp(36px, 5vw, 56px);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.product-card__visual {
  width: 100%;
  aspect-ratio: 384 / 280;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  padding: 16px;
}

.product-card__svg {
  width: 100%;
  height: 100%;
}

.product-card__info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-card__label--red {
  color: var(--color-accent);
}

.product-card__label--green {
  color: #45FC95;
}

.product-card__label--blue {
  color: #4DA8FF;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}


/* ============================================
   SVG Animations for Product Cards
   ============================================ */

/* Axis flow dot */
.flow-dot {
  filter: drop-shadow(0 0 4px rgba(237, 32, 36, 0.5));
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mova field node float — matches hero page multi-direction movement */
.field-node {
  animation: node-float 4s ease-in-out infinite;
}

.field-node:nth-child(1)  { animation-delay: 0s; }
.field-node:nth-child(2)  { animation-delay: 0.4s; }
.field-node:nth-child(3)  { animation-delay: 0.8s; }
.field-node:nth-child(4)  { animation-delay: 1.2s; }
.field-node:nth-child(5)  { animation-delay: 1.6s; }
.field-node:nth-child(6)  { animation-delay: 2.0s; }
.field-node:nth-child(7)  { animation-delay: 0.2s; }
.field-node:nth-child(8)  { animation-delay: 0.6s; }
.field-node:nth-child(9)  { animation-delay: 1.0s; }
.field-node:nth-child(10) { animation-delay: 1.4s; }

@keyframes node-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -3px); }
  50% { transform: translate(-1px, 2px); }
  75% { transform: translate(3px, 1px); }
}

/* Lighthouse scan line — matches hero page sweep */
.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; }
}

/* Lighthouse person breathing — matches hero page */
.lh-person {
  animation: lh-person-breathe 4s ease-in-out infinite;
}

.lh-person:nth-child(1) { animation-delay: 0s; }
.lh-person:nth-child(2) { animation-delay: 0.6s; }
.lh-person:nth-child(3) { animation-delay: 0.3s; }
.lh-person:nth-child(4) { animation-delay: 0.9s; }

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

/* Lighthouse detection pulse — matches hero page */
.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; }
}


/* ============================================
   Workflow Section
   ============================================ */
.workflow {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 120px) var(--section-pad-x);
  border-top: 1px solid var(--color-border);
}

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

.workflow__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* Timeline */
.workflow__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow__line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 32px;
  position: relative;
}

/* Red progress bar that fills on scroll */
.workflow__progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.workflow__step-marker {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

.workflow__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.workflow__step-marker.active .workflow__dot {
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  transform: scale(1.15);
}

.workflow__connector {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.workflow__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.workflow__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow__step-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.workflow__step-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.workflow__step-time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-top: 8px;
}


/* ============================================
   Main CTA Section
   ============================================ */
.main-cta {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 160px) var(--section-pad-x);
  text-align: center;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.main-cta::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 32, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.main-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.main-cta__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.main-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.main-cta__body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
}


/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1000px) {
  .products__inner {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* --- Vertical timeline layout --- */
  .workflow__timeline {
    position: relative;
    padding-left: 40px;
  }

  /* Hide horizontal dot row */
  .workflow__line {
    display: none;
  }

  /* Vertical gray line */
  .workflow__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
  }

  /* Vertical red progress bar */
  .workflow__progress--vertical {
    position: absolute;
    top: 0;
    left: 5px;
    width: 2px;
    height: 0%;
    background: var(--color-accent);
    transform: translateX(-0.5px);
    z-index: 1;
    pointer-events: none;
    transition: height 0.15s ease-out;
    box-shadow: 0 0 8px var(--color-accent-glow);
  }

  /* Content as single column */
  .workflow__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  /* Each step gets a dot on the left */
  .workflow__step {
    position: relative;
  }

  .workflow__step::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-text-tertiary);
    transform: translateX(-0.5px);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    z-index: 2;
  }

  .workflow__step.active::before {
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
    transform: translateX(-0.5px) scale(1.15);
  }
}


/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  .main-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    min-height: 100svh;
  }

  .main-hero__headline {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .main-hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn--main-primary,
  .btn--main-ghost {
    width: 100%;
    justify-content: center;
  }

  .products__inner {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .workflow__headline {
    margin-bottom: 40px;
  }

  .workflow__content {
    gap: 40px;
  }

  .main-cta__headline br,
  .main-hero__headline br {
    display: none;
  }
}
