/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:    #050d1a;
  --deep:    #071325;
  --mid:     #0a1f3d;
  --panel:   #0d2347;
  --border:  rgba(0,140,255,0.12);
  --blue:    #0088ff;
  --electric:#38bfff;
  --glow:    #00d4ff;
  --white:   #f0f8ff;
  --muted:   #7aa5cc;
  --gold:    #f0c060;
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ── Canvas Background ── */
#canvas-bg {
  position: fixed; top:0; left:0; width:100%; height:100%;
  z-index: 0; pointer-events: none;
}

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  background: rgba(5,13,26,0.85);
  border-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white); text-decoration: none;
}
.nav-logo img {
  width: auto;
  height: 16px;
  max-width: 46px;
  display: block;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 9px 22px; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: var(--blue); color: #fff; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(0,136,255,0.3);
}
.nav-cta:hover { background: var(--electric); box-shadow: 0 0 30px rgba(0,136,255,0.5); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,136,255,0.1); border: 1px solid rgba(0,136,255,0.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--electric); margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--glow); box-shadow:0 0 8px var(--glow); }
.hero-h1 {
  font-size: clamp(44px, 7vw, 88px); font-weight: 700;
  line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s 0.35s ease forwards;
}
.hero-h1 .line2 { color: transparent; -webkit-text-stroke: 1px rgba(0,212,255,0.5); }
.hero-h1 .accent { color: var(--electric); position: relative; display: inline-block; }
.hero-h1 .accent::after {
  content: ''; position: absolute; left:0; bottom:-4px; width:100%; height:2px;
  background: linear-gradient(90deg, var(--blue), var(--glow));
  border-radius: 2px;
}
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.5s ease forwards;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.65s ease forwards;
}
.btn-primary {
  padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--blue), #0060cc);
  color: #fff; text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 30px rgba(0,136,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,136,255,0.5); }
.btn-outline {
  padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--electric); background: rgba(56,191,255,0.05); }

/* Hero logo decoration */
.hero-bridge {
  position: absolute; right: -60px; bottom: 24px; width: min(54vw, 760px);
  pointer-events: none;
  opacity: 0; transform: translateX(40px);
  animation: fadeLeft 1.2s 0.8s ease forwards;
}

/* Stats row */
.hero-stats {
  display: flex; gap: 48px; margin-top: 72px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.85s ease forwards;
}
.stat-item .num {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  color: var(--white); line-height: 1; display: block;
}
.stat-item .num span { color: var(--electric); }
.stat-item .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── SECTION GENERIC ── */
section { position: relative; z-index: 2; }
.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--electric); margin-bottom: 14px; display: block;
}
.section-h2 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-lead {
  font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7;
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SERVICES ── */
#services { padding: 120px 0; }
.services-header { margin-bottom: 72px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--deep);
  padding: 48px 44px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: radial-gradient(ellipse at 30% 30%, rgba(0,136,255,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--mid); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(0,136,255,0.1); border: 1px solid rgba(0,136,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-num {
  position: absolute; top: 32px; right: 36px;
  font-size: 64px; font-weight: 800; font-family: var(--font-display);
  color: rgba(0,136,255,0.06); line-height: 1; user-select: none;
}
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-pill {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(0,136,255,0.1); color: var(--electric);
  border: 1px solid rgba(0,136,255,0.18);
}

/* ── BRIDGE SECTION ── */
#bridge-visual {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(7,19,37,0.8) 20%, rgba(7,19,37,0.8) 80%, transparent);
}
.bridge-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.bridge-copy .section-h2 { margin-bottom: 24px; }
.bridge-copy p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.bridge-diagram { position: relative; }
.bridge-svg-wrap { width: 100%; }
.bridge-steps { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.bridge-step {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.bridge-step:last-child { border-bottom: none; }
.step-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,136,255,0.1); border: 1px solid rgba(0,136,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--electric);
  margin-top: 2px;
}
.step-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-text p { font-size: 13px; color: var(--muted); }

/* ── TEAM ── */
#team { padding: 120px 0; }
.team-header { text-align: center; margin-bottom: 72px; }
.team-header .section-lead { margin: 0 auto; }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.team-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 24px;
  text-align: center; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: rgba(0,136,255,0.35); transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; position: relative;
}
.team-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.team-card .role {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--electric); margin-bottom: 14px;
}
.team-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.team-skills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 16px; }
.skill-chip {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(255,255,255,0.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── WHY US ── */
#why { padding: 120px 0; background: linear-gradient(180deg, transparent, rgba(13,35,71,0.4) 50%, transparent); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 64px; }
.why-card {
  padding: 36px 32px; border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(13,35,71,0.3);
  position: relative;
}
.why-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── CTA ── */
#cta {
  padding: 140px 0; text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,136,255,0.12), transparent 70%);
  pointer-events: none;
}
#cta .section-h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 20px; }
#cta p { font-size: 17px; color: var(--muted); margin-bottom: 44px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative; z-index: 2;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-logo img {
  width: auto;
  height: 14px;
  max-width: 54px;
  display: block;
  flex-shrink: 0;
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(122,165,204,0.5); }

/* ── Animations ── */
@keyframes fadeUp { to { opacity:1; transform: none; } }
@keyframes fadeLeft { to { opacity: 0.18; transform: none; } }

/* ── Divider ── */
.section-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  position: relative; z-index: 2;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-bridge { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .bridge-wrap { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .container { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
