/* ═══════════════════════════════════════════
   ARRIVAL TECH — STYLESHEET
   Dark / AI-focused design system
═══════════════════════════════════════════ */

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

:root {
  --bg:           #050c1a;
  --bg-2:         #0a1628;
  --bg-card:      rgba(14, 25, 50, 0.7);
  --border:       rgba(59, 130, 246, 0.18);
  --blue:         #3b82f6;
  --blue-light:   #60a5fa;
  --blue-glow:    rgba(59, 130, 246, 0.25);
  --white:        #f1f5f9;
  --muted:        #64748b;
  --muted-light:  #94a3b8;
  --font:         'Inter', system-ui, sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

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

/* ─── Typography ────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.08);
}

.btn--full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ─── Section Headers ───────────────────── */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section__sub {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-bracket { color: var(--blue); }

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

.nav__links a {
  color: var(--muted-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 100%) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.88rem !important;
}
.nav__cta:hover { opacity: 0.9; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* Animated dot-grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPan 30s linear infinite;
  opacity: 0.6;
}

@keyframes gridPan {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  bottom: 0;
  left: -100px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.hero__headline {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   AUTOMATE STRIP
═══════════════════════════════════════════ */
.automate-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.automate-strip::before,
.automate-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.automate-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2), transparent);
}
.automate-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-2), transparent);
}

.strip__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.strip__track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.strip__items {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  flex-shrink: 0;
}

.strip__items li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.strip__items svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.strip__divider {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

.services__secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.card--primary {
  background: linear-gradient(135deg, rgba(14, 25, 50, 0.95) 0%, rgba(20, 30, 70, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card--primary::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.card__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue-light);
}
.card__icon--sm { width: 42px; height: 42px; border-radius: 10px; }
.card__icon--sm svg { width: 20px; height: 20px; }

.card__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card--secondary .card__title { font-size: 1.3rem; }

.card__desc {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted-light);
}
.card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.card__btn { align-self: flex-start; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how { background: var(--bg); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 24px;
}

.step__number {
  font-size: 3.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(59, 130, 246, 0.35);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.step__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.step__content p {
  color: var(--muted-light);
  font-size: 0.93rem;
  line-height: 1.65;
}

.step__connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  flex-shrink: 0;
  margin-top: 52px;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   STACK
═══════════════════════════════════════════ */
.stack {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stack__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.stack__item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.stack__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stack__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { background: var(--bg); }

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

.about__text .section__tag { display: block; margin-bottom: 12px; }

.about__text .section__title {
  text-align: left;
  margin-bottom: 24px;
}

.about__text p {
  color: var(--muted-light);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.stat:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-light), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.contact__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.contact__form {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-light);
}

.form__group input,
.form__group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.93rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--muted); }
.form__group input:focus,
.form__group textarea:focus { border-color: var(--blue); }

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}
.form__note a {
  color: var(--blue-light);
  text-decoration: none;
}
.form__note a:hover { text-decoration: underline; }

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

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 260px;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step { max-width: 480px; }

  .step__connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--blue), transparent);
    margin: 0;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__text .section__title {
    text-align: center;
  }
  .about__text .section__tag { text-align: center; }
  .about__text { text-align: center; }
  .about__text p { text-align: left; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: #050c1a;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 24px;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; }

  .nav__hamburger { display: flex; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

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

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

  .contact__form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 400px) {
  .stack__grid { grid-template-columns: 1fr; }
}
