/* ── BRAND TOKENS ────────────────────────────────── */
:root {
  --navy-950: #050d1e;
  --navy-900: #0A1A3A;
  --navy-800: #0f2045;
  --navy-700: #1F3160;
  --navy-600: #2a4070;

  --blue:       #2E7DFF;
  --blue-light: #5b9eff;
  --blue-glow:  rgba(46,125,255,0.18);
  --blue-glow-s:rgba(46,125,255,0.42);

  --cyan:      #22D3EE;
  --cyan-soft: rgba(34,211,238,0.12);

  --text-primary:   #FFFFFF;
  --text-secondary: #B8C5DD;
  --text-muted:     #7E8FB0;
  --text-faint:     #5B6B86;

  --glass:           rgba(255,255,255,0.05);
  --glass-b:         rgba(255,255,255,0.08);
  --glass-b-blue:    rgba(46,125,255,0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --t:    220ms;
  --ts:   420ms;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--navy-900);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── LAYOUT ──────────────────────────────────────── */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.sec  { padding: 96px 0; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 600;
  transition: all var(--t) var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 0 28px var(--blue-glow-s), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.btn-ghost { border: 1px solid var(--glass-b); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-light); background: var(--blue-glow); }
.btn .arw { transition: transform var(--t) var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── SECTION BACKGROUNDS ─────────────────────────── */
.sec-a { background: var(--navy-900); }
.sec-b { background: var(--navy-950); }
.sec-c { background: var(--navy-800); }

/* ── SECTION HEADER ──────────────────────────────── */
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.14;
  margin-top: 16px;
}
.sec-head p { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.75; margin-top: 14px; max-width: 60ch; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px;
  background: currentColor; display: inline-block;
}
.accent { color: var(--blue-light); }

/* ── NAVBAR ──────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 70px; display: flex; align-items: center;
  transition: background var(--ts) var(--ease), border-color var(--ts) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5,13,30,0.93);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-color: var(--glass-b);
}
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: inline-flex; align-items: center;
  user-select: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 36px; width: auto;
  display: block; object-fit: contain;
}
.foot-logo {
  display: inline-flex; align-items: center;
  user-select: none;
}
.foot-logo-img {
  height: 30px; width: auto;
  display: block; object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { list-style: none; position: relative; }
.nav-links > li > a, .nav-links > li > .navdd-trigger,
.nav-links > a, .navdd > .navdd-trigger {
  padding: 8px 13px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-links > li > a:hover,
.nav-links > li:hover > .navdd-trigger,
.nav-links > li:focus-within > .navdd-trigger,
.nav-links > a:hover, .navdd:hover > .navdd-trigger { color: var(--text-primary); background: var(--glass); }

.navdd { position: relative; display: flex; align-items: center; }
.navdd-trigger .cv { transition: transform 0.25s var(--ease); opacity: 0.7; }
.navdd:hover .navdd-trigger .cv, .navdd:focus-within .navdd-trigger .cv,
.nav-links > li:hover .cv, .nav-links > li:focus-within .cv { transform: rotate(180deg); }
.navdd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: rgba(5,13,30,0.97);
  backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); z-index: 120;
}
.navdd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.navdd:hover .navdd-menu, .navdd:focus-within .navdd-menu,
.nav-links > li:hover .navdd-menu, .nav-links > li:focus-within .navdd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.navdd-menu a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); padding: 11px 16px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap; width: 100%; display: block;
}
.navdd-menu a:hover { background: rgba(46,125,255,0.14); color: #fff; }
.navdd-menu a.cur { color: var(--blue-light); background: rgba(46,125,255,0.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: var(--radius-sm); cursor: pointer;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(5,13,30,0.98);
  backdrop-filter: blur(24px);
  z-index: 99; flex-direction: column;
  padding: 24px 28px;
  border-top: 1px solid var(--glass-b);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav > a {
  font-size: 1.1rem; font-weight: 600;
  padding: 15px 0; border-bottom: 1px solid var(--glass-b);
  color: var(--text-secondary); transition: color var(--t);
}
.mobile-nav > a:hover { color: var(--cyan); }
.m-acc { border-bottom: 1px solid var(--glass-b); }
.m-acc-h {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer;
  color: var(--text-primary); font-family: inherit; font-weight: 600;
  font-size: 1.1rem; padding: 15px 0;
}
.m-acc-h svg { transition: transform 0.25s var(--ease); opacity: 0.65; }
.m-acc-h.open svg { transform: rotate(180deg); }
.m-acc-body { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.m-acc-body a {
  display: block; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  padding: 10px 0 10px 16px;
}
.m-acc-body a:hover { color: #fff; }
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

/* ── SERVICE HERO ─────────────────────────────────── */
.shero {
  background: var(--navy-950); color: #fff;
  padding: 150px 0 90px; overflow: hidden; position: relative;
  min-height: 80dvh; display: flex; align-items: center;
}
.shero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.shero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.orb-a { width: 560px; height: 560px; background: radial-gradient(circle, #2E7DFF, transparent 70%); top: -180px; right: -120px; opacity: 0.35; }
.orb-b { width: 440px; height: 440px; background: radial-gradient(circle, #1F3160, transparent 70%); bottom: -200px; left: -120px; opacity: 0.5; }
.shero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
}
.shero-inner {
  position: relative; z-index: 1;
  max-width: 860px;
}
.shero-inner.has-art {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 50px; align-items: center; max-width: 1140px;
}
.shero-art { width: 100%; max-width: 400px; justify-self: end; height: auto; }

.crumb {
  display: flex; gap: 8px; align-items: center;
  color: var(--text-muted); font-size: 0.84rem; margin-bottom: 22px;
}
.crumb a { color: var(--text-muted); transition: color var(--t); }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: 0.4; }
.crumb .cur { color: var(--blue-light); }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--cyan); font-size: 0.8rem; font-weight: 600;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 14px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

.shero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin: 14px 0 22px;
}
.shero h1 .accent {
  background: linear-gradient(100deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary); max-width: 60ch; margin-bottom: 32px;
  line-height: 1.75;
}

/* ── CAPABILITY CARDS ────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.cap {
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.cap:hover {
  border-color: var(--glass-b-blue);
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.cap .ic {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(46,125,255,0.1); border: 1px solid var(--glass-b);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light); margin-bottom: 18px; flex-shrink: 0;
}
.cap h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.cap p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* ── FLOW STEPS ──────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.fstep {
  padding: 0 28px;
  border-left: 1px solid var(--glass-b);
  position: relative;
}
.fstep:first-child { padding-left: 0; border-left: 0; }
.fstep .n {
  font-weight: 900; font-size: 2.2rem;
  color: rgba(46,125,255,0.25); display: block;
  margin-bottom: 14px; transition: color var(--t);
  line-height: 1;
}
.fstep:hover .n { color: var(--blue); }
.fstep h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.fstep p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ── OUTCOME SPLIT ───────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.14;
  margin-top: 14px;
}
.split-copy p { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.75; margin-top: 14px; max-width: 50ch; }
.outcome {
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  border: 1px solid var(--glass-b-blue);
  border-radius: var(--radius-xl); padding: 44px 40px;
}
.outcome h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.outcome > p { color: var(--text-secondary); line-height: 1.7; }
.metric-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.metric {
  flex: 1; min-width: 110px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-md); padding: 18px 16px;
}
.metric b { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); display: block; }
.metric span {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 5px; display: block;
}

/* ── TECH STACK ──────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.stack {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-md); padding: 24px;
  transition: border-color var(--t), transform var(--t);
}
.stack:hover { border-color: var(--blue); transform: translateY(-3px); }
.stack b {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-light); display: block; margin-bottom: 10px;
}
.stack p { color: var(--text-secondary); font-size: 0.94rem; font-weight: 500; line-height: 1.5; }

/* ── END CTA ─────────────────────────────────────── */
.endcta {
  background: var(--navy-950); color: #fff;
  padding: 104px 0; text-align: center; position: relative; overflow: hidden;
}
.endcta-orb {
  width: 600px; height: 600px; filter: blur(90px);
  background: radial-gradient(circle, #2E7DFF, transparent 70%);
  opacity: 0.25; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; border-radius: 50%;
}
.endcta-in { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.endcta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; margin: 20px 0;
}
.endcta .lead {
  font-size: 1.0625rem; color: var(--text-secondary);
  line-height: 1.75; max-width: 52ch; margin: 0 auto;
}
.endcta .acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.other {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--glass-b);
}
.other a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); padding: 8px 18px;
  border: 1px solid var(--glass-b); border-radius: 100px;
  transition: all var(--t);
}
.other a:hover { color: #fff; border-color: var(--blue); background: var(--blue-glow); }

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: var(--navy-950); padding: 64px 0 28px; border-top: 1px solid var(--glass-b); }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--glass-b); margin-bottom: 28px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin-top: 14px; max-width: 260px; line-height: 1.65; }
.footer-col-hd { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--t); }
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8125rem; color: var(--text-faint); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8125rem; color: var(--text-faint); transition: color var(--t); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .shero-inner.has-art { grid-template-columns: 1fr; gap: 32px; }
  .shero-art { max-width: 280px; justify-self: start; order: 2; }
  .shero-copy { order: 1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .fstep { border-left: 0; padding: 0 20px; }
  .fstep:nth-child(odd) { padding-left: 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .fstep { padding: 0 !important; }
  .sec { padding: 72px 0; }
  .shero { padding: 130px 0 72px; }
  .metric-row { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
