/* Orbit Landing Page */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090b14;
  --text: #e8e8ed;
  --muted: #8a8f9e;
  --dim: #494e5f;
  --accent: #00d897;
  --accent2: #6366f1;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scroll-Snap Pages ── */
.lp-page {
  scroll-snap-align: start;
}

/* ── Starfield ── */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star-layer {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-repeat: repeat;
}

.star-layer--1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 150px 60px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 200px 170px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 50px 180px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 270px 90px, rgba(255,255,255,0.5), transparent);
  background-size: 300px 220px;
  animation: star-drift 90s linear infinite, star-twinkle 4s ease-in-out infinite alternate;
}

.star-layer--2 {
  background-image:
    radial-gradient(1px 1px at 100px 50px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 220px 140px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40px 100px, rgba(255,255,255,0.25), transparent),
    radial-gradient(2px 2px at 180px 200px, rgba(255,255,255,0.45), transparent);
  background-size: 400px 300px;
  animation: star-drift 130s linear infinite, star-twinkle 6s ease-in-out 1s infinite alternate;
}

.star-layer--3 {
  background-image:
    radial-gradient(2px 2px at 60px 80px, rgba(0,216,151,0.15), transparent),
    radial-gradient(2px 2px at 200px 160px, rgba(99,102,241,0.12), transparent),
    radial-gradient(1.5px 1.5px at 130px 240px, rgba(255,255,255,0.2), transparent);
  background-size: 500px 350px;
  animation: star-drift 170s linear infinite, star-twinkle 8s ease-in-out 2s infinite alternate;
}

@keyframes star-drift {
  to { transform: translate(-60px, -40px); }
}

@keyframes star-twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Background ── */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,16,40,0.9), transparent),
    var(--bg);
}

.lp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.15;
}

.lp-glow--1 {
  width: 800px;
  height: 600px;
  background: var(--accent2);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.lp-glow--2 {
  width: 600px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  right: -200px;
  opacity: 0.08;
}

/* ── Hero Logo ── */
.lp-hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  margin: 0 auto 28px;
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.lp-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,216,151,0.08);
  border: 1px solid rgba(0,216,151,0.15);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.lp-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.lp-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
}

.lp-hero-actions {
  margin-bottom: 32px;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.25s;
}

.lp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,216,151,0.25);
}

.lp-btn-primary:active {
  transform: translateY(0);
}

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

.lp-hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.lp-hero-badges a { line-height: 0; }

.lp-hero-badges img {
  height: 44px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lp-hero-badges img:hover { opacity: 1; }

/* ── Showcase (each section is a full-page snap target) ── */
.lp-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 60px 24px;
}

.lp-showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
  width: 100%;

  /* Reveal animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.lp-showcase.is-visible .lp-showcase-content {
  opacity: 1;
  transform: none;
}

.lp-showcase-content--reverse {
  direction: rtl;
}

.lp-showcase-content--reverse > * {
  direction: ltr;
}

.lp-showcase-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lp-showcase-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.lp-showcase-img {
  position: relative;
}

.lp-showcase-img img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ── Waitlist ── */
.lp-waitlist {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 60px 24px;
}

.lp-waitlist-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;

  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.lp-waitlist-inner.is-visible {
  opacity: 1;
  transform: none;
}

.lp-waitlist h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lp-waitlist-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.lp-form {
  text-align: left;
}

.lp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-field {
  margin-bottom: 16px;
}

.lp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.lp-field input,
.lp-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lp-field input::placeholder,
.lp-field textarea::placeholder {
  color: var(--dim);
}

.lp-field input:focus,
.lp-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,216,151,0.1);
}

.lp-field textarea {
  resize: vertical;
  min-height: 72px;
}

.lp-field-err {
  display: block;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 4px;
}

.lp-field:has(.lp-field-err) input,
.lp-field:has(.lp-field-err) textarea {
  border-color: rgba(248,113,113,0.5);
}

.lp-error-banner {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.lp-legal {
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Success */
.lp-success { padding: 40px 0; }

.lp-success-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.lp-success h2 {
  margin-bottom: 8px;
}

.lp-success p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Footer ── */
.lp-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 20dvh;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  scroll-snap-align: end;
}

.lp-footer-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-footer-links {
  display: flex;
  gap: 24px;
}

.lp-footer-links a {
  font-size: 0.85rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-links a:hover {
  color: var(--muted);
}

.lp-footer p {
  font-size: 0.82rem;
  color: var(--dim);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .lp-hero {
    padding: 60px 20px;
  }

  .lp-showcase-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-showcase-content--reverse {
    direction: ltr;
  }

  .lp-showcase-img img {
    max-width: 240px;
  }

  .lp-form-row {
    grid-template-columns: 1fr;
  }

  .lp-footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  .lp-showcase-content,
  .lp-waitlist-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
