:root {
  --bg: #05070d;
  --bg-alt: #0b0f1a;
  --surface: #10152245;
  --surface-solid: #10152a;
  --border: #232a3d;
  --text: #eef1f8;
  --text-muted: #9aa4bb;
  --primary: #6c5ce7;
  --primary-light: #8b7ff5;
  --accent: #22d3ee;
  --radius: 14px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-muted); margin: 0 0 1em; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary-light); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #05070d;
  font-weight: 700;
  font-size: 0.85rem;
}
.logo-text strong { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 32px;
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(108, 92, 231, 0.25), transparent 60%),
    radial-gradient(500px circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 60%);
  z-index: -1;
}
.hero-inner { max-width: 760px; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(108,92,231,0.08), transparent);
}
.page-hero .hero-sub { max-width: 640px; }

/* Sections */
.section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-cta { margin-top: 40px; }

/* Stats */
.stats { padding: 60px 0; border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--primary-light); transform: translateY(-4px); }
.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.orbit-graphic {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #05070d;
  box-shadow: 0 0 60px rgba(108, 92, 231, 0.5);
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 60%; height: 60%; }
.ring-2 { width: 85%; height: 85%; border-style: dashed; }
.ring-3 { width: 100%; height: 100%; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(34,211,238,0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-band-inner .btn { margin-top: 12px; }

/* Two column / about / services */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.service-list { display: flex; flex-direction: column; gap: 48px; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; padding-bottom: 0; }
.service-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
}

/* Contact */
.contact-grid { align-items: start; }
.contact-info p { margin-bottom: 24px; color: var(--text); }
.contact-info p strong { display: block; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-form-wrap {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 0; background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { max-width: 280px; margin-top: 16px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4, .footer-contact h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: var(--text-muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Error page */
.error-page { min-height: 100vh; display: flex; align-items: center; }
.error-inner { text-align: center; }
.error-inner .btn { margin-top: 24px; }

/* Responsive */
@media (max-width: 860px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .why-grid, .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
}
