/* ═══════════════════════════════════════════════════════════
   FIRST WAVE AUTOMATION — styles.css
   Dark mode · SpaceX-inspired · Space Grotesk
═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #0ea5e9;
  --accent-dim: rgba(14, 165, 233, 0.15);
  --accent-glow: rgba(14, 165, 233, 0.3);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utility ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.section-header {
  margin-bottom: 64px;
}

/* ── Scroll-reveal ── */
.service-card,
.process__step,
.why__card,
.about__text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.process__step.visible,
.why__card.visible,
.about__text.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.1s; }
.service-card:nth-child(5) { transition-delay: 0.2s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }
.process__step:nth-child(3) { transition-delay: 0.15s; }
.process__step:nth-child(5) { transition-delay: 0.3s; }
.why__card:nth-child(2) { transition-delay: 0.1s; }
.why__card:nth-child(3) { transition-delay: 0.2s; }
.why__card:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 40px;
  width: auto;
  filter: invert(1);
  transition: opacity var(--transition);
}

.nav__logo:hover img {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: #38bdf8 !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  background: var(--bg-0);
  overflow: hidden;
  text-align: center;
}

/* Subtle grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Hero logo — inverted, centered above headline */
.hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero__logo {
  height: 100px;
  width: auto;
  filter: invert(1);
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 48px;
}

.br-desktop {
  display: inline;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ═══════════════════════════════════════════════════════════
   INTRO STRIP
═══════════════════════════════════════════════════════════ */
.strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.strip__item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.strip__item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.strip__divider {
  width: 1px;
  height: 40px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services {
  padding: 120px 0;
  background: var(--bg-1);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-1);
  padding: 40px 36px;
  transition: background var(--transition), opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover {
  background: var(--bg-2);
}

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

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════ */
.process {
  padding: 120px 0;
  background: var(--bg-0);
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process__step {
  flex: 1;
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  position: relative;
}

.process__connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 48px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.5;
}

.process__connector svg {
  width: 24px;
  height: 24px;
}

.process__number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.process__step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process__step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about {
  position: relative;
  padding: 120px 0;
  background: var(--bg-1);
  overflow: hidden;
}

.about__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.2;
  filter: saturate(0.6);
}

.about__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.about__content {
  position: relative;
  z-index: 1;
}

.about__inner {
  display: flex;
}

.about__text {
  max-width: 580px;
}

.about__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__values {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about__value-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   WHY
═══════════════════════════════════════════════════════════ */
.why {
  padding: 120px 0;
  background: var(--bg-0);
}

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

.why__card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition), opacity 0.6s ease;
}

.why__card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.why__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.why__card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.why__card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text .section-title {
  margin-bottom: 24px;
}

.contact__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.contact__location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer__logo img {
  height: 32px;
  width: auto;
  filter: invert(1);
  opacity: 0.7;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process__steps {
    flex-direction: column;
    gap: 16px;
  }

  .process__connector {
    transform: rotate(90deg);
    padding: 0;
    align-self: center;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-0);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: -1;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.25rem;
    color: var(--text-primary);
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .hero__logo {
    height: 72px;
  }

  .hero__headline {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .br-desktop {
    display: none;
  }

  .strip__divider {
    display: none;
  }

  .strip__items {
    flex-direction: column;
    gap: 20px;
  }

  .services {
    padding: 80px 0;
  }

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

  .process {
    padding: 80px 0;
  }

  .about {
    padding: 80px 0;
  }

  .about__image-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .why {
    padding: 80px 0;
  }

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

  .contact {
    padding: 80px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__tagline {
    flex: none;
  }
}

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

  .btn {
    justify-content: center;
  }
}
