/* ============ Reset & tokens ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --accent: #5B21B6;

  --bg-page: oklch(99% 0.004 290);
  --bg-alt: oklch(97.5% 0.008 290);
  --bg-surface: oklch(100% 0 0);
  --text-primary: oklch(18% 0.02 290);
  --text-secondary: oklch(42% 0.015 290);
  --text-tertiary: oklch(56% 0.012 290);
  --border: oklch(90% 0.012 290);
  --border-strong: oklch(85% 0.015 290);
  --shadow-color: rgba(30, 10, 60, 0.18);
  --header-bg: oklch(99% 0.004 290 / 0.9);
  --link: oklch(48% 0.19 300);
  --link-hover: oklch(38% 0.18 300);
}

html[data-theme="dark"] {
  --bg-page: oklch(16% 0.02 290);
  --bg-alt: oklch(20% 0.02 290);
  --bg-surface: oklch(23% 0.02 290);
  --text-primary: oklch(95% 0.006 290);
  --text-secondary: oklch(78% 0.012 290);
  --text-tertiary: oklch(62% 0.012 290);
  --border: oklch(32% 0.02 290);
  --border-strong: oklch(38% 0.02 290);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --header-bg: oklch(16% 0.02 290 / 0.85);
  --link: oklch(72% 0.16 300);
  --link-hover: oklch(80% 0.14 300);
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  transition: background .2s ease, color .2s ease;
}
#page { width: 100%; overflow-x: hidden; background: var(--bg-page); }

h1, h2, h3, .brand-text { font-family: 'Space Grotesk', system-ui, sans-serif; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 9px;
  transition: filter .15s ease, transform .15s ease;
}
.btn-primary:hover { filter: brightness(0.88); color: white; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 9px;
  background: var(--bg-surface);
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary:hover { background: var(--bg-alt); color: var(--text-primary); }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}
.icon-btn:hover { background: var(--bg-alt); }

/* ============ Layout helpers ============ */
.section { padding: 88px 24px; scroll-margin-top: 88px; }
.section-inner, .hero-grid, .about-grid, .footer-grid, .stats-grid {
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-head { max-width: 560px; margin: 0 0 48px; }
.section-h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 10px 0 0;
  color: var(--text-primary);
}
.body-text { font-size: 16.5px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 24px; }
.card-title { font-size: 17.5px; font-weight: 600; margin: 0 0 8px; color: var(--text-primary); }
.card-text { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ============ Header / nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 26px; width: auto; flex-shrink: 0; display: block; }
.brand-text { font-weight: 600; font-size: 18px; line-height: 26px; color: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); padding: 10px 0; transition: color .15s ease; }
.nav-cta { font-size: 14px; padding: 10px 20px; border-radius: 8px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-sun, .icon-moon, .icon-close, .icon-hamburger { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: block; }
.menu-btn.is-open .icon-close { display: block; }
.menu-btn:not(.is-open) .icon-hamburger { display: block; }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .menu-btn { display: flex !important; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch !important;
    background: var(--bg-surface);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px var(--shadow-color);
    gap: 4px !important;
  }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .process-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .hero-ctas { flex-direction: column !important; align-items: stretch !important; }
  .hero-ctas a { text-align: center; }
}

/* ============ Hero ============ */
.hero { padding: 88px 24px 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.eyebrow-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 14%, var(--bg-alt));
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.hero-sub { font-size: 17.5px; line-height: 1.6; color: var(--text-secondary); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; }

/* ---- animated tech panel ---- */
.hero-visual { position: relative; }
.tech-panel {
  position: relative;
  background: oklch(13% 0.035 293);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 60px -24px var(--shadow-color);
}
.tech-panel-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 20%, color-mix(in oklch, var(--accent) 38%, transparent), transparent 60%);
}
.tech-panel-topbar {
  position: absolute;
  top: 18px; left: 20px; right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: oklch(38% 0.02 293); display: block; }
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: color-mix(in oklch, var(--accent) 55%, white);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 55%, white);
  display: inline-block;
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.tech-svg { position: relative; width: 100%; height: 100%; display: block; }
.grid-dot { fill: oklch(30% 0.02 293); }
.circuit-lines { stroke: color-mix(in oklch, var(--accent) 45%, transparent); stroke-width: 1.2px; fill: none; }
.circuit-nodes { fill: var(--accent); }

.binary-digit {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  fill: var(--accent);
  animation: digitBlink 2.8s ease-in-out infinite;
  transform-box: fill-box;
}
@keyframes digitBlink { 0%, 100% { opacity: .14; } 50% { opacity: .8; } }

.core-node {
  fill: color-mix(in oklch, var(--accent) 60%, white);
  animation: coreGlow 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes coreGlow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

.pulse {
  fill: color-mix(in oklch, var(--accent) 40%, white);
  offset-rotate: 0deg;
  animation: pulseTravel 2.8s linear infinite;
}
@keyframes pulseTravel {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.hero-visual-accent {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 16px;
  background: color-mix(in oklch, var(--accent) 16%, var(--bg-alt));
  top: -20px; right: -20px;
  z-index: -1;
}

/* ============ About ============ */
.about-section { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text-primary); }
.check-icon { flex-shrink: 0; margin-top: 2px; stroke: var(--accent); }

.team-strip { display: flex; align-items: center; gap: 14px; }
.avatar-stack { display: flex; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.avatar-circle + .avatar-circle { margin-left: -12px; }
.avatar-1 { background: color-mix(in oklch, var(--accent) 22%, var(--bg-surface)); }
.avatar-2 { background: color-mix(in oklch, var(--accent) 35%, var(--bg-surface)); }
.avatar-3 { background: color-mix(in oklch, var(--accent) 48%, var(--bg-surface)); }
.team-strip-label { font-size: 14px; color: var(--text-tertiary); }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.service-card:hover { transform: translateY(-3px); }
.service-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: color-mix(in oklch, var(--accent) 14%, var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.service-icon svg { stroke: currentColor; }

/* ============ Stats ============ */
.stats-section { padding: 56px 24px; background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; color: white; }
.stat-label { font-size: 14px; color: color-mix(in oklch, white 78%, transparent); margin-top: 6px; }

/* ============ Process ============ */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.process-step { position: relative; padding-top: 8px; }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }

/* ============ Contact ============ */
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-lead { font-size: 15.5px; color: var(--text-secondary); margin: 0 0 40px; }
.contact-success {
  background: color-mix(in oklch, var(--accent) 12%, var(--bg-alt));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--bg-alt));
  border-radius: 14px;
  padding: 36px 28px;
}
.contact-success svg { stroke: var(--accent); margin-bottom: 12px; }
.contact-form { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.field {
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14.5px;
  background: var(--bg-surface);
  color: var(--text-primary);
}
textarea.field { resize: vertical; }
.field:focus {
  outline: none;
  border-color: var(--link) !important;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--link) 18%, transparent);
}
.submit-btn { border: none; margin-top: 4px; }

/* ============ Footer ============ */
.site-footer { padding: 56px 24px 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-mark { height: 23px; width: auto; display: block; }
.footer-brand-text { font-weight: 600; font-size: 16px; line-height: 23px; color: var(--text-primary); }
.footer-blurb { font-size: 14px; line-height: 1.6; color: var(--text-tertiary); max-width: 280px; margin: 0; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-tertiary); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-tertiary);
}
