/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #050814;
  --bg-2:       #080d1f;
  --surface:    #0c1230;
  --surface-2:  #111a3a;
  --border:     rgba(99,102,241,0.15);
  --text:       #f0f2ff;
  --muted:      #8892b0;
  --accent-1:   #6366f1;
  --accent-2:   #06b6d4;
  --grad:       linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --font:       'Inter', system-ui, sans-serif;
  --radius:     16px;
  --radius-sm:  10px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

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

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

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

/* ─── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.section { padding: 120px 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent-2);
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(99,102,241,0.3), 0 4px 20px rgba(0,0,0,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 50px rgba(99,102,241,0.5), 0 8px 30px rgba(0,0,0,0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(99,102,241,0.4);
}
.btn--ghost:hover {
  border-color: var(--accent-1);
  background: rgba(99,102,241,0.08);
  transform: translateY(-2px);
}

.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,8,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav__logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  padding: 10px 22px !important;
  border-radius: 100px;
  background: rgba(99,102,241,0.15) !important;
  border: 1.5px solid rgba(99,102,241,0.35) !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.25s !important;
}
.nav__cta:hover {
  background: rgba(99,102,241,0.25) !important;
  border-color: var(--accent-1) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
}
.hero__glow {
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__glow--2 {
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  bottom: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__title-line { display: block; }
.hero__title-line--accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  animation: fade-bob 3s ease-in-out infinite;
}

.hero__scroll-arrow {
  animation: bob 2s ease-in-out infinite;
}

@keyframes fade-bob {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── SERVICES / CARDS ──────────────────────────────────────── */
.services { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99,102,241,0.08); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.card:hover .card__line { transform: scaleX(1); }

/* ─── RESULTS ───────────────────────────────────────────────── */
.results {
  background: var(--bg-2);
  padding: 120px 0;
}

.results__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6,182,212,0.05) 0%, transparent 70%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 64px;
}

.stat {
  background: var(--surface);
  padding: 48px 36px;
  position: relative;
  transition: background 0.3s;
}
.stat:hover { background: var(--surface-2); }

.stat__number {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.stat__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(99,102,241,0.1);
  overflow: hidden;
}
.stat__bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.stat.counted .stat__bar-fill { width: 100%; }

/* ─── APPROACH ──────────────────────────────────────────────── */
.approach { background: var(--bg); }

.approach__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 40px;
}

.approach__pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(99,102,241,0.04);
  transition: all 0.25s;
}
.pillar:hover { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.08); transform: translateX(4px); }

.pillar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact {
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(99,102,241,0.1) 0%, transparent 70%);
}

.contact__inner { position: relative; }

.contact__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.contact__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact__sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer__logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.footer__tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer__copy {
  font-size: 13px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .approach__inner { grid-template-columns: 1fr; gap: 48px; }
  .nav__links { gap: 20px; }
  .hero__title { font-size: clamp(40px, 12vw, 80px); }
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .stat { padding: 36px 24px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}
