/* === DESIGN TOKENS === */
:root {
  --bg: #0a0e1a;
  --bg-elevated: #11172a;
  --text: #e6edf3;
  --text-muted: #8b95a7;
  --accent-1: #06b6d4;
  --accent-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --max-w: 1200px;
  --radius: 14px;
  --gap: clamp(16px, 2vw, 24px);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(6, 182, 212, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(139, 92, 246, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Dot grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}
section { padding: clamp(64px, 8vw, 120px) 0; position: relative; z-index: 1; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 12px;
}

/* === UTILITIES === */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #0a0e1a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.6); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.04); }

/* === GLASS CARD === */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 32px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); }

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

/* === HERO === */
.hero { padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }
.hero-inner { max-width: 880px; }
.hero .lead { max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* === SERVICES === */
.services h2 { margin-bottom: 16px; max-width: 720px; }
.services-intro { max-width: 760px; margin-bottom: 48px; }
.services-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15));
  color: var(--accent-1);
}
.service-body h3 { margin: 0 0 10px; }
.service-body > p { margin: 0 0 18px; }
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .service-list { grid-template-columns: 1fr 1fr; gap: 8px 32px; }
}
.service-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

/* === CTA === */
.cta { padding-bottom: clamp(80px, 10vw, 140px); }
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(139,92,246,0.08));
}
.cta-card h2 { margin: 0 0 8px; }
.cta-card p { margin: 0; }
@media (min-width: 768px) {
  .cta-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}

/* === PAGE HERO === */
.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 720px; }

/* === OUR STORY === */
.our-story { padding-top: clamp(40px, 6vw, 80px); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .story-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}
.story-side h2 { margin: 0; }
.story-body p:last-child { margin-bottom: 0; }

/* === VALUES === */
.values h2 { margin-bottom: 48px; max-width: 720px; }
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

