/* ORBIT marketing site — static landing */
:root {
  --bg-deep: #030712;
  --bg-panel: #0a1628;
  --stroke: rgba(34, 211, 238, 0.22);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --magenta: #e879f9;
  --magenta-dim: rgba(232, 121, 249, 0.14);
  --amber: #fbbf24;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --radius-lg: 20px;
  --radius: 12px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --section-max: min(94vw, 1320px);
  --shadow-glow: 0 0 80px rgba(34, 211, 238, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit-ring,
  .hero-glow {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--cyan);
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

/* Match App.jsx shell header wordmark: ORBIT. · system-ui · letter-spacing */
.brand-mark {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.8vw, 1.9rem);
  letter-spacing: 1.5px;
  line-height: 1;
  color: inherit;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-desktop a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #06b6d4);
  color: #030712;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.45);
  text-decoration: none;
  color: #030712;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.4);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(3, 7, 18, 0.98);
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile a {
  color: var(--muted);
  padding: 0.5rem 0;
  font-weight: 500;
}
.nav-mobile .btn {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem clamp(4rem, 10vw, 6rem);
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(232, 121, 249, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.1), transparent);
}

.hero-glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 65%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

.orbit-visual {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  margin: 0 auto 2rem;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 50%;
  inset: 0;
}
.orbit-ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(232, 121, 249, 0.25);
  animation: spin 48s linear infinite;
}
.orbit-ring:nth-child(3) {
  inset: 26%;
  border-color: rgba(251, 191, 36, 0.15);
  animation: spin-reverse 64s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), #0891b2);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hero-meta {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--dim);
}

/* Sections */
.section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head.wide {
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 3rem;
  }
  .feature-row.reverse {
    grid-template-columns: 0.82fr 1.18fr;
  }
  .feature-row.reverse .feature-shot {
    order: 2;
  }
  .feature-row.reverse .feature-copy {
    order: 1;
  }

  /* Portrait screenshots (taller): narrower media column */
  .feature-row--narrow-media {
    grid-template-columns: minmax(240px, 400px) 1fr;
  }
  .feature-row--narrow-media.reverse {
    grid-template-columns: 1fr minmax(240px, 400px);
  }

  /* Landscape screenshots: give media more horizontal room */
  .feature-row--wide-media {
    grid-template-columns: 1.48fr 0.52fr;
  }
  .feature-row--wide-media.reverse {
    grid-template-columns: 0.52fr 1.48fr;
  }
}

.feature-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.35);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.feature-shot img {
  width: 100%;
  height: auto;
  min-height: clamp(240px, 38vw, 560px);
  max-height: min(78vh, 720px);
  object-fit: contain;
  object-position: center top;
  background: rgba(15, 23, 42, 0.55);
}

.feature-shot--hero img {
  min-height: clamp(300px, 46vw, 680px);
  max-height: min(85vh, 820px);
}

/* Measured assets: portrait (~533×549); keep a readable tall frame */
.feature-shot--portrait img {
  min-height: clamp(280px, 50vw, 620px);
  max-height: min(88vh, 760px);
  object-fit: contain;
}

/* Landscape tour shots (~1.7–2.0 aspect): emphasize width */
.feature-shot--landscape img {
  min-height: clamp(260px, 34vw, 520px);
  max-height: min(72vh, 640px);
}

.feature-shot-grid .feature-shot img {
  min-height: clamp(220px, 32vw, 480px);
  max-height: min(65vh, 560px);
}

.feature-shot-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.feature-shot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .feature-shot-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-shot-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot-figure {
  margin: 0;
}

.shot-caption {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--dim);
  text-align: center;
  line-height: 1.45;
}

.shot-caption--below {
  margin: 0;
  padding: 0.9rem 1.1rem 1.05rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.45);
}

.feature-copy .lead {
  font-size: 1.02rem;
  color: var(--text);
  opacity: 0.95;
}

/* Concepts: projects vs tracks vs lanes */
.concepts-section {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.35), transparent);
}

.concept-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .concept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.concept-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 22, 40, 0.45);
}

.concept-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.concept-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.concept-card .feature-list {
  margin: 0;
  font-size: 0.95rem;
}

.mode-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.mode-card li {
  margin-bottom: 0.35rem;
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.feature-list li {
  margin-bottom: 0.4rem;
}

.feature-copy--tight p {
  margin-bottom: 0.65rem;
}

.feature-copy--tight .feature-list {
  margin-top: 0.5rem;
}

/* Image carousel (multiple landscape captures per section) */
.carousel {
  width: 100%;
  min-width: 0;
}

.carousel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none !important;
  }
}

.carousel-slide {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.carousel-slide figure {
  margin: 0;
}

.carousel-slide .feature-shot {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.carousel-slide .feature-shot img {
  min-height: clamp(260px, 34vw, 540px);
  max-height: min(70vh, 620px);
}

.carousel-caption {
  margin: 0;
  padding: 0.75rem 1rem 0.95rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.45);
}

.carousel-slide-inner--portrait {
  max-width: min(100%, 380px);
  margin: 0 auto;
}

.carousel-slide-inner--portrait img {
  max-height: min(85vh, 720px);
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.carousel[data-slides="1"] .carousel-toolbar {
  display: none;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(10, 22, 40, 0.8);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-display);
}

.carousel-btn:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--cyan);
  transform: scale(1.25);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Workflow */
.workflow-wrap {
  background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.5) 30%, transparent);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps.steps-dense {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 3.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 22, 40, 0.6);
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Modes */
.mode-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .mode-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mode-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.06), transparent 40%);
}

.mode-card.alt {
  background: linear-gradient(165deg, rgba(232, 121, 249, 0.07), transparent 40%);
}

.mode-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.mode-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.mode-card.alt .mode-tag {
  background: var(--magenta-dim);
  color: var(--magenta);
}

/* Footer */
.site-footer {
  padding: 3rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 1rem;
  color: var(--dim);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}
