:root {
  --bg: #06080f;
  --bg-alt: #0a0e1a;
  --surface: #10152459;
  --surface-solid: #10152a;
  --border: #ffffff1a;
  --border-strong: #ffffff2e;
  --text: #eef1f9;
  --text-muted: #9aa3b8;
  --text-faint: #6b7288;
  --accent: #5b8cff;
  --accent-2: #9d5bff;
  --accent-3: #34e0c4;
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(91, 140, 255, 0.25);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.bg-glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: var(--accent);
}
.bg-glow-2 {
  width: 500px; height: 500px;
  top: 300px; right: -200px;
  background: var(--accent-2);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.5;
}

main, header, footer, section { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #060810;
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(157, 91, 255, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: #5b8cff14; }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: #06080fcc;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-mark {
  display: block;
  width: 34px; height: 34px;
  object-fit: contain;
}
.logo-accent { color: var(--accent); font-weight: 600; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 110px 0 70px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  background: #34e0c40d;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  max-width: 780px;
  margin: 0 auto 22px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-faint); }

/* Logos strip */
.logos-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-alt);
}
.logos-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.logos-row {
  display: flex;
  justify-content: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 620px;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: 48px;
}

/* Cards grid (services) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b8cff26, #9d5bff26);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--gradient);
}
.about-visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative;
  width: 280px; height: 280px;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.orbit-ring-1 { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.orbit-ring-1::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 16px 2px var(--accent-3);
}
.orbit-ring-2 { width: 70%; height: 70%; animation: spin 12s linear infinite reverse; }
.orbit-ring-2::before {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px 2px var(--accent-2);
}
.orbit-core {
  width: 110px; height: 110px;
  border-radius: 28px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  padding: 20px;
  object-fit: contain;
  box-shadow: 0 20px 60px -12px rgba(91, 140, 255, 0.55);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 32px;
}
.feature { border-top: 1px solid var(--border); padding-top: 20px; }
.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.feature h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.feature p { color: var(--text-muted); font-size: 0.94rem; }

/* CTA banner */
.cta-banner {
  margin: 0 24px;
  border-radius: 24px;
  background: linear-gradient(120deg, #5b8cff1f, #9d5bff1f);
  border: 1px solid var(--border-strong);
  padding: 4px;
}
.cta-banner-inner {
  max-width: 1112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px 40px;
}
.cta-banner-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.cta-banner-inner p { color: var(--text-muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; }
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--accent);
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-form {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: #0a0e1a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #5b8cff26;
}
.form-submit { margin-top: 6px; }
.form-status {
  font-size: 0.88rem;
  color: var(--accent-3);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-nav { display: flex; gap: 22px; font-size: 0.9rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.85rem; color: var(--text-faint); width: 100%; text-align: center; margin-top: 8px; }

/* Reveal on scroll — hidden state only applies once JS confirms it can reveal
   elements again, so content stays visible by default (no-JS, older browsers,
   reduced motion, or a script error never leaves a section permanently blank). */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

@media (max-width: 760px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.nav-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .header-inner.nav-open .nav {
    flex-direction: column;
    gap: 0;
  }
  .header-inner.nav-open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .header-inner.nav-open .nav-cta {
    margin-top: 14px;
    justify-content: center;
  }
  .hero { padding: 80px 0 50px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}
