:root {
  --bg: #030712;
  --bg-soft: #050b17;
  --bg-card: #0b1222;
  --text: #f9fbff;
  --muted: #9da9d6;
  --accent-sky: #82d3ff;
  --accent-neon: #32c5ff;
  --accent-strong: #54f0ff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --border-subtle: rgba(255,255,255,0.06);
  --shadow-soft: 0 24px 70px rgba(0,0,0,0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #050b1e 0, #030712 45%, #000 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.page-width {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

#bg-orbits {
  position: fixed;
  inset: 0;
  z-index: -2;
}

/* FOCUS STATES */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(84,240,255,0.7);
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(to bottom, rgba(3,5,18,0.96), rgba(3,5,18,0.7));
  backdrop-filter: blur(24px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.logo-main {
  color: #fff;
}

.logo-glow {
  margin-left: .3rem;
  color: var(--accent-strong);
  text-shadow: 0 0 14px rgba(84,240,255,0.9);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-sky), var(--accent-strong));
  box-shadow: 0 0 10px rgba(84,240,255,0.8);
  transition: width .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* BUTTONS */

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: radial-gradient(circle at top, var(--accent-strong), var(--accent-neon));
  border-color: rgba(84,240,255,0.9);
  color: #02030a;
  box-shadow: 0 0 26px rgba(84,240,255,0.8);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* HERO */

.hero {
  padding-block: 84px 96px;
}

.hero-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-left {
  max-width: 820px;
  position: relative;
}

.pill {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(144,163,255,0.8);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-sky);
  background: radial-gradient(circle at top left, rgba(88,170,255,0.35), rgba(5,7,18,0.96));
}

.hero-heading-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}

.hero-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3.1rem, 4.8vw, 4.1rem);
  line-height: 1.03;
}

.gradient {
  background: linear-gradient(90deg,#f9fbff,var(--accent-sky),var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(84,240,255,0.6);
}

.hero-sub {
  margin-top: 20px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.hero-social-proof {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(130,150,220,0.6);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(6,9,25,0.9);
}

.hero-rows {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.hero-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.row-label {
  color: var(--muted);
}

.row-value {
  color: var(--accent-sky);
}

.hero-metrics {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.metric {
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(109,132,240,0.55);
  background: linear-gradient(135deg,rgba(16,28,71,0.93),rgba(3,6,22,0.96));
  box-shadow: 0 0 25px rgba(22,130,255,0.4);
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.metric-text {
  font-size: 0.78rem;
  color: var(--muted);
}

/* FLOW MAP */

.flow-map {
  width: 150px;
  height: 90px;
  position: relative;
}

.fm-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 16px rgba(84,240,255,0.9);
}

.fm-node-1 { top: 10px; left: 20px; }
.fm-node-2 { top: 35px; right: 20px; }
.fm-node-3 { bottom: 10px; left: 30px; }
.fm-node-4 { bottom: 26px; right: 55px; }

.fm-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-sky), transparent);
  opacity: 0.7;
}

.fm-line-1 { top: 18px; left: 26px; right: 32px; }
.fm-line-2 { top: 40px; left: 28px; right: 40px; transform: rotate(18deg); transform-origin: left; }
.fm-line-3 { bottom: 20px; left: 40px; right: 44px; transform: rotate(-14deg); transform-origin: left; }

/* HERO DOODLES */

.hero-doodle {
  position: absolute;
  pointer-events: none;
}

.hero-doodle-arc {
  width: 180px;
  height: 90px;
  border-radius: 80px;
  border: 1px dashed rgba(120,190,255,0.6);
  border-bottom: none;
  right: 10px;
  top: 10px;
  box-shadow: 0 0 18px rgba(84,240,255,0.4);
}

.hero-doodle-curve {
  width: 140px;
  height: 60px;
  border-radius: 60% 40% 70% 30%;
  border: 1px dashed rgba(120,190,255,0.5);
  bottom: -18px;
  left: 16%;
}

.hero-doodle-dots {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 16px rgba(84,240,255,0.8);
  left: -8px;
  top: 120px;
}

.hero-doodle-arrow {
  width: 70px;
  height: 30px;
  border-radius: 40px;
  border: 1px dashed rgba(140,200,255,0.7);
  border-right: none;
  transform: rotate(-18deg);
  right: 24%;
  bottom: 46px;
}

/* SECTION GENERIC */

.section {
  padding-block: 40px 80px;
}

.section .page-width {
  position: relative;
}

.section-header {
  max-width: 46rem;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* TESTIMONIALS */

.testimonials {
  padding-top: 10px;
}

.testimonials-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonials-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.testimonials-doodle-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 14px rgba(84,240,255,0.9);
}

.testimonial-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(60,80,140,0.5);
  border-bottom: 1px solid rgba(60,80,140,0.5);
  margin-top: 14px;
}

.marquee-track {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
}

.testimonial-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card {
  min-width: 260px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(7,11,28,0.9);
  border: 1px solid rgba(90,120,200,0.5);
}

.testimonial-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.testimonial-name {
  font-size: 0.8rem;
  color: var(--accent-sky);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  position: relative;
}

.services-timeline-spine {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 180px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, rgba(130,195,255,0.5) 40%, transparent 0);
  background-size: 2px 14px;
  background-repeat: repeat-y;
  opacity: 0.45;
  pointer-events: none;
}

.service-card {
  position: relative;
  padding: 18px 18px 22px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(64,105,214,0.25), var(--bg-card));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(144,163,255,0.7);
  font-size: 0.78rem;
  color: var(--accent-sky);
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-list {
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.service-list li {
  margin-bottom: 4px;
}

.service-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--accent-sky);
}

.service-doodle {
  position: absolute;
  pointer-events: none;
}

.service-doodle-curve {
  width: 90px;
  height: 40px;
  border-radius: 999px;
  border: 1px dashed rgba(130,195,255,0.7);
  right: -20px;
  bottom: 10px;
}

.service-doodle-loop {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 1px dashed rgba(130,195,255,0.7);
  left: -24px;
  top: -24px;
}

.service-doodle-dash {
  width: 100px;
  height: 30px;
  border-radius: 999px;
  border: 1px dashed rgba(130,195,255,0.7);
  bottom: -10px;
  left: 30%;
}

/* Example flow */

.mini-flow {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.flow-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(9,14,34,0.96);
  border: 1px solid rgba(134,170,240,0.7);
  font-size: 0.82rem;
}

.flow-arrow {
  position: relative;
  width: 60px;
  height: 2px;
  background: rgba(90,120,200,0.6);
  border-radius: 999px;
}

.flow-dots {
  position: absolute;
  inset: -2px;
  background-image: radial-gradient(circle, var(--accent-strong) 1px, transparent 0);
  background-size: 10px 2px;
  animation: flowDots 1.6s linear infinite;
}

@keyframes flowDots {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}

.banner {
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at left,rgba(53,240,255,0.16),rgba(3,5,18,0.98));
  border: 1px solid rgba(130,195,255,0.7);
  box-shadow: 0 0 26px rgba(37,204,255,0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.banner-doodle {
  position: absolute;
  pointer-events: none;
}

.banner-doodle-loop {
  width: 140px;
  height: 70px;
  border-radius: 999px;
  border: 1px dashed rgba(130,195,255,0.7);
  bottom: -20px;
  left: 16%;
}

.banner-doodle-spark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  right: 18px;
  top: 18px;
  box-shadow: 0 0 18px rgba(84,240,255,0.9);
}

/* WHY STRIP */

.why-strip {
  padding-top: 10px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.why-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7,11,28,0.95);
  border: 1px solid rgba(120,150,230,0.6);
  text-align: center;
}

.why-number {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.4rem;
}

.why-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 30px;
  align-items: flex-start;
}

.about-bullets,
.about-list {
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.about-bullets li,
.about-list li {
  margin-bottom: 8px;
}

.about-card {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top,rgba(53,240,255,0.16),rgba(5,8,21,0.98));
  border: 1px solid rgba(135,195,255,0.8);
  box-shadow: 0 18px 52px rgba(0,0,0,0.9);
}

.about-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-bottom: 8px;
}

.quote-bubbles {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.quote-bubble {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(9,14,34,0.96);
  border: 1px solid rgba(150,190,255,0.7);
}

.quote-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 28px;
  height: 16px;
  border-radius: 0 0 70% 30%;
  border-bottom: 1px dashed rgba(150,190,255,0.7);
}

.quote-bubble p {
  font-size: 0.84rem;
  color: var(--muted);
}

.quote-name {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--accent-sky);
}

.quote-stars {
  display: block;
  font-size: 0.7rem;
  color: #ffd27f;
}

.doodle-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(135,205,255,0.8);
  box-shadow: 0 0 16px rgba(53,240,255,0.7);
  right: -18px;
  top: 30px;
  border-radius: 999px;
}

.doodle-wave {
  position: absolute;
  width: 120px;
  height: 50px;
  border-radius: 70% 30% 70% 30%;
  border: 1px dashed rgba(135,205,255,0.7);
  left: -26px;
  bottom: -10px;
}

.doodle-arrow-small {
  position: absolute;
  width: 60px;
  height: 26px;
  border-radius: 40px;
  border: 1px dashed rgba(135,205,255,0.7);
  border-left: none;
  right: 40%;
  top: -16px;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 18px 26px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-sky);
}

/* MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1,3,9,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 420px;
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(84,240,255,0.2), #050815);
  border: 1px solid rgba(133,196,255,0.9);
  box-shadow: 0 30px 80px rgba(0,0,0,0.95);
  position: relative;
}

.modal h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-bottom: 6px;
}

.modal p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--muted);
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(133,150,220,0.7);
  background: rgba(5,7,20,0.9);
  color: var(--text);
  font-size: 0.86rem;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 14px rgba(84,240,255,0.6);
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .hero-heading-row {
    flex-direction: column;
    align-items: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .services-timeline-spine {
    display: none;
  }
  .why-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-block: 72px 80px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading-row {
    gap: 12px;
  }
}
