/* ---------- tokens ---------- */
:root {
  --bg: #060a18;
  --bg-2: #0a1024;
  --surface: #0f1530;
  --surface-2: #131a3a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-muted: #8b95b7;
  --text-dim: #5b6489;

  --accent: #3FFFA5;
  --accent-soft: rgba(63, 255, 165, 0.15);
  --accent-glow: rgba(63, 255, 165, 0.35);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container: 1240px;

  --font-display: "Archivo Black", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -10px var(--accent-glow);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, button { font: inherit; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* radial glow */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}

h1.display {
  font-size: clamp(40px, 8vw, 88px);
}

.contact-title {
  font-size: clamp(36px, 6vw, 64px);
  text-align: center;
}

.outline {
  color: var(--text-muted);
}

.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(6, 10, 24, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 10, 24, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: var(--text); }

@media (min-width: 768px) {
  .nav-logo img { height: 80px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-primary {
  background: var(--accent);
  color: #051a10;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 80px -8px var(--accent-glow); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-light {
  background: #ffffff;
  color: #051a10;
}
.btn-light:hover { transform: translateY(-1px); background: #f3f4f6; }
.btn-block { width: 100%; justify-content: center; padding: 18px 24px; font-size: 16px; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- pill badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(63, 255, 165, 0.25);
}
.pill .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatars { display: flex; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.avatar + .avatar { margin-left: -10px; }
.avatar-lg { width: 44px; height: 44px; font-size: 14px; }
.social-proof-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbital {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: orbit-spin 40s linear infinite;
}
.orbital-lg {
  width: 520px;
  height: 520px;
  animation-duration: 60s;
}
.orbital-md {
  width: 380px;
  height: 380px;
  border-color: var(--border-strong);
  animation-duration: 35s;
  animation-direction: reverse;
}
.orbital-sm {
  width: 240px;
  height: 240px;
  border-color: rgba(63, 255, 165, 0.18);
  box-shadow: 0 0 80px -20px var(--accent-glow);
  animation: orbit-pulse 6s ease-in-out infinite;
}

/* satellites — small green dots traveling the ring */
.satellite {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
}
.orbital-md .satellite {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  top: -3px;
  opacity: 0.7;
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.03); opacity: 0.85; }
}

.mockup {
  position: relative;
  width: min(360px, 75%);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 2;
}
.floater {
  animation: float-y 7s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mockup-line { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.07); }
.mockup-line.w-30 { width: 30%; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.w-50 { width: 50%; }
.mockup-line.w-60 { width: 60%; }
.mockup-chart { height: 140px; margin: 6px -4px; }
.mockup-chart svg { width: 100%; height: 100%; }
.mockup-bar-row { display: flex; justify-content: space-between; align-items: center; }
.mockup-pill {
  width: 70px;
  height: 22px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(63, 255, 165, 0.3);
}

.stat-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  min-width: 130px;
}
.stat-float-a {
  bottom: 18%;
  left: 4%;
}
.stat-float-b {
  top: 14%;
  right: 4%;
}
.stat-float-value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.stat-float-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  white-space: nowrap;
}

.drifter {
  animation: drift 9s ease-in-out infinite;
}
.stat-float-b.drifter {
  animation-duration: 11s;
  animation-delay: -3s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50%      { transform: translate(4px, -8px) rotate(1deg); }
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0 128px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
  .stat-float-a { bottom: 18%; left: -4%; }
  .stat-float-b { top: 12%; right: -4%; }
  .stat-float-value { font-size: 32px; }
}

/* ---------- logos strip ---------- */
.logos {
  padding: 40px 0;
  background: #0c1230;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.logos-eyebrow {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 24px;
}
.logos-eyebrow span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 72px;
  animation: marquee-scroll 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 72px;
  flex-shrink: 0;
}
.logo-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}
.logo-row img {
  max-height: 100%;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.logo-row img:hover {
  opacity: 1;
  transform: scale(1.04);
}

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

@media (min-width: 768px) {
  .logos { padding: 72px 0; }
  .marquee-track { gap: 112px; }
  .logo-row { gap: 112px; }
  .logo-row li { height: 96px; }
  .logo-row img { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- case study ---------- */
.case {
  padding: 96px 0 48px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.case-quote { position: relative; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.7;
  color: var(--text);
  opacity: 0.18;
  display: block;
  margin-bottom: -8px;
}
.quote-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.quote-text strong { color: var(--text); font-weight: 900; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-name { font-weight: 700; font-size: 16px; }
.quote-role { color: var(--accent); font-size: 14px; }

.case-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.cta-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: linear-gradient(160deg, var(--surface), rgba(63, 255, 165, 0.05));
}
.cta-card-title { font-weight: 700; font-size: 17px; }
.cta-card-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.cta-card-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-card:hover .cta-card-arrow {
  background: var(--accent);
  color: #051a10;
  transform: translateX(3px);
}

@media (min-width: 1024px) {
  .case { padding: 128px 0 64px; }
  .case-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}

/* ---------- contact ---------- */
.contact {
  padding: 48px 0 96px;
  position: relative;
}
@media (min-width: 1024px) {
  .contact { padding: 64px 0 128px; }
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-sub {
  margin: 20px auto 40px;
  text-align: center;
}
.contact-cta {
  max-width: 360px;
  margin: 0 auto 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 0 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus { border-bottom-color: var(--accent); }
.field input::placeholder { color: var(--text-dim); }
.field.error input { border-bottom-color: #ff6b6b; }

.form-error {
  margin: 0;
  font-size: 14px;
  color: #ff8b8b;
}
.scarcity {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-check svg { width: 28px; height: 28px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}
.form-success p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 52px; width: auto; }
.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

@media (min-width: 768px) {
  .footer-logo img { height: 68px; }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .orbital, .satellite, .floater, .drifter { animation: none !important; }
}
