@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --c-primary: #4CC9FF;
  --c-secondary: #6C63FF;
  --c-accent: #FF9D2E;
  --c-accent-gold: #FFD166;
  --c-accent-teal: #5FFFD2;

  --c-bg: #081221;
  --c-bg-mid: #102344;
  --c-bg-light: #152D55;

  --c-text: #F4F8FF;
  --c-text-dim: #AAB8D6;
  --c-text-dimmer: #7C89AC;

  --c-card-bg: rgba(255, 255, 255, 0.05);
  --c-card-border: rgba(255, 255, 255, 0.08);

  --grad-cta: linear-gradient(135deg, #FFB347, #FF8C2E);
  --grad-primary: linear-gradient(135deg, var(--c-primary), var(--c-secondary));

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --header-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; visibility: hidden; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p { line-height: 1.7; color: var(--c-text-dim); margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 26px;
  height: 26px;
  color: var(--c-primary);
  flex-shrink: 0;
}
.icon svg, .icon { stroke: currentColor; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#preloader img { width: 80px; height: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: #1A1002;
  box-shadow: 0 8px 24px rgba(255, 140, 46, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 140, 46, 0.55), 0 0 0 4px rgba(255, 157, 46, 0.15);
}

.btn-secondary {
  background: rgba(76, 201, 255, 0.08);
  color: var(--c-text);
  border: 1px solid rgba(76, 201, 255, 0.35);
}
.btn-secondary:hover {
  background: rgba(76, 201, 255, 0.16);
  border-color: var(--c-primary);
}

.btn-header { padding: 12px 24px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}

.site-header.scrolled {
  background: rgba(8, 18, 33, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  height: 72px;
}

body.fixed .site-header {
  background: rgba(8, 18, 33, 0.98);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { height: 32px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-desktop .nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-dim);
  transition: color .2s ease, background .2s ease;
}
.nav-desktop .nav-link:hover {
  color: var(--c-text);
  background: rgba(255,255,255,0.06);
}

.header-cta { display: flex; align-items: center; gap: 16px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 18, 33, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  transition: opacity .3s ease;
  overflow-y: auto;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 32px;
}
#mobile-menu .nav-link {
  font-size: 20px;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--c-text);
}
#mobile-menu .btn { margin-top: 20px; width: 100%; }

/* ---------- Decorative background layers ---------- */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(76, 201, 255, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.orbit-ring--deliveries { width: 600px; height: 600px; top: -200px; right: -200px; }
.orbit-ring--planets { width: 500px; height: 500px; bottom: -180px; left: -150px; }
.orbit-ring--ship { width: 560px; height: 560px; top: -180px; right: -180px; }
.orbit-ring--routes { width: 620px; height: 620px; bottom: -220px; right: -200px; }

.glow-blob--deliveries { width: 400px; height: 400px; background: var(--c-secondary); top: 10%; left: -100px; }
.glow-blob--planets { width: 380px; height: 380px; background: var(--c-primary); bottom: 0; right: -80px; }
.glow-blob--ship { width: 400px; height: 400px; background: var(--c-accent); top: 20%; left: -120px; opacity: 0.25; }
.glow-blob--routes { width: 420px; height: 420px; background: var(--c-accent-teal); bottom: 10%; left: -100px; opacity: 0.2; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.bg-a { background: linear-gradient(180deg, #081221, #0F1E38); }
.bg-b { background: linear-gradient(180deg, #0F1E38, #152D55); }
.bg-c { background: linear-gradient(180deg, #102344, #0B1830); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-teal);
  margin-bottom: 18px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #F4F8FF, #C9DAFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead p + p { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,33,0.2), rgba(8,18,33,0.95));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: 52px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ship {
  width: 100%;
  max-width: 420px;
  animation: shipFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(76, 201, 255, 0.25));
}

@keyframes shipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(-2deg); }
}

.btn-primary.hero-cta {
  animation: ctaLevitate 3s ease-in-out infinite;
}
.btn-primary.hero-cta:hover { animation-play-state: paused; }

@keyframes ctaLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Content sections (2-col) ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.content-grid.reverse .content-visual { order: 1; }
.content-grid.reverse .content-text { order: 2; }

.content-visual { position: relative; }

.visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-card-border);
  background: var(--c-card-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.visual-frame img { width: 100%; height: auto; display: block; }

.visual-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(76,201,255,0.4), rgba(108,99,255,0.15), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-inline { margin-top: 32px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-border);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 201, 255, 0.45);
  box-shadow: 0 16px 32px rgba(76, 201, 255, 0.12), 0 0 0 1px rgba(76,201,255,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(76, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card p { color: var(--c-text); font-size: 15px; line-height: 1.6; }

/* ---------- Final CTA (routes section) ---------- */
.final-cta {
  margin-top: 56px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(76,201,255,0.1), rgba(108,99,255,0.08));
  border: 1px solid var(--c-card-border);
  text-align: center;
}
.final-cta h3 {
  font-size: 30px;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 90px 0 32px;
  overflow: hidden;
}

.footer-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,33,0.4), #081221 70%);
  z-index: 0;
}

.footer-inner { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: 14px; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--c-text-dim); transition: color .2s ease; }
.footer-col a:hover { color: var(--c-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: var(--c-text-dimmer);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding: calc(var(--header-height) + 40px) 0 60px; min-height: auto; }
  .hero-title { font-size: 42px; }
  .section-title { font-size: 32px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid.reverse .content-visual { order: 1; }
  .content-grid.reverse .content-text { order: 2; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-cta .btn-header { display: none; }
  .burger-btn { display: flex; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-height) + 24px) 0 48px; }
  .hero-title { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 32px 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: calc(var(--header-height) + 32px) 0 40px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 26px; }
  .btn { padding: 14px 24px; font-size: 15px; }
  .final-cta h3 { font-size: 22px; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: calc(var(--header-height) + 60px) 0 100px;
}
.legal-content h1 {
  font-size: 40px;
  margin-bottom: 8px;
}
.legal-content .date {
  color: var(--c-text-dimmer);
  font-size: 14px;
  display: block;
  margin-bottom: 32px;
}
.legal-content section { margin-top: 36px; }
.legal-content h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--c-text);
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul { margin: 12px 0; padding-left: 20px; list-style: disc; }
.legal-content li { margin-bottom: 8px; color: var(--c-text-dim); }
.legal-content a { color: var(--c-primary); }
