/* Orbit static landing — design tokens aligned with @orbit/ui */

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  --emerald-500: #10b981;
  --emerald-600: #059669;

  --amber-500: #f59e0b;

  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --header-h: 4rem;
  --container: min(1120px, 100% - 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--slate-900);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Glass panel — mirrors @orbit/ui */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
}

.premium-gradient {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-950) 100%);
  color: white;
}

.text-gradient {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500) 50%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
}

.btn-lg {
  min-height: 3rem;
  padding-inline: 1.5rem;
}

.btn-primary {
  background: var(--slate-900);
  color: white;
}

.btn-primary:hover {
  background: var(--slate-800);
}

.btn-outline {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  background: white;
  border-color: var(--slate-400);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  min-height: 2.5rem;
}

.btn-ghost:hover {
  color: var(--slate-900);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.logo-mark {
  color: var(--indigo-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--slate-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--slate-800);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(16, 185, 129, 0.08), transparent),
    linear-gradient(180deg, white 0%, var(--slate-50) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* Hero visual / dashboard mock */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.dashboard-card {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}
.dot-amber {
  background: var(--amber-500);
}
.dot-green {
  background: var(--emerald-500);
}

.dashboard-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-pill {
  padding: 0.75rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.stat-pill-accent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  border-color: rgba(99, 102, 241, 0.2);
}

.stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
}

.dashboard-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 5rem;
  padding: 0.75rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--indigo-500), var(--indigo-700));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  opacity: 0.85;
  animation: bar-grow 1.2s ease-out backwards;
}

.bar:nth-child(odd) {
  animation-delay: 0.1s;
}
.bar:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
}

.list-row strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-900);
}

.list-row span:not(.badge):not(.avatar) {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.avatar {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  background: var(--indigo-600);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.avatar-alt {
  background: var(--emerald-600);
}

.badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring-1 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  animation: orbit-spin 24s linear infinite;
}

.orbit-ring-2 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  border-style: dashed;
  opacity: 0.5;
  animation: orbit-spin 36s linear infinite reverse;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Logos strip */
.logos {
  padding: 2rem 0;
  border-block: 1px solid var(--slate-200);
  background: white;
}

.logos-inner p {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: white;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header p:last-child {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--slate-600);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: var(--slate-100);
  color: var(--slate-800);
}

.feature-icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-600);
}

.feature-icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--indigo-600);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* Platform */
.platform-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.platform-copy p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--slate-600);
}

.platform-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.platform-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--indigo-600);
}

.platform-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--slate-900);
}

.platform-list span {
  display: block;
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.platform-list a {
  color: var(--indigo-600);
  font-weight: 600;
  transition: color 0.3s ease;
}

.platform-list a:hover {
  color: var(--indigo-700);
}

.platform-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.metrics-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.metric {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  opacity: 0.75;
}

/* CTA */
.cta-section {
  padding: 5rem 0 6rem;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner > div > p {
  margin-top: 0.75rem;
  color: var(--slate-600);
}

.cta-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cta-form input {
  min-width: 16rem;
  min-height: 3rem;
  padding: 0 1rem;
  font: inherit;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  background: white;
}

.cta-form input:focus {
  outline: 2px solid var(--indigo-600);
  outline-offset: 0;
  border-color: var(--indigo-600);
}

.cta-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  background: var(--slate-900);
  color: var(--slate-400);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.footer-nav a {
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-800);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

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

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--slate-100);
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}
