:root {
  --bg: #020813; /* Deepened to match reference image background */
  --bg2: #050d1f;
  --panel: rgba(13, 27, 58, 0.55);
  --panel-border: rgba(96, 165, 250, 0.22);
  --ink: #EAF2FF;
  --muted: #93A6C7;
  --blue: #1B6DF9; /* Updated to brand blue */
  --blue-deep: #0D47A1;
  --cyan: #00D2FF; /* Updated to bright cyan */
  --glow: rgba(0, 210, 255, 0.55);
  --radius: 16px;
  --max: 1200px;
  --head: "Space Grotesk", sans-serif;
  --body: "Inter", -apple-system, sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 16px 0 18px; }
.accent { color: var(--blue); }
.accent-cyan { color: var(--cyan); }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
section { padding: 110px 0; position: relative; }
a { color: inherit; }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: linear-gradient(90deg, var(--cyan), transparent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; font-family: var(--body);
  padding: 14px 26px; border-radius: 10px; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff;
  box-shadow: 0 8px 30px var(--glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--glow); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(147,166,199,.4); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
header {
  position: sticky; top: 0; z-index: 60;
  height: 90px;
  background: rgba(2, 8, 19, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(96,165,250,.12);
  display: flex; align-items: center;
}
header .wrap { width: 100%; }
nav { display: flex; align-items: center; justify-content: space-between; height: 90px; padding: 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 68px !important; width: auto !important; object-fit: contain; }
.nav-links { display: flex; gap: 18px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 13.5px; color: var(--muted); font-weight: 500; transition: color .2s, opacity .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-cta { font-size: 13.5px; padding: 10px 18px; flex-shrink: 0; white-space: nowrap; }
@media(max-width: 1100px) { 
  .nav-links { display: none; } 
  .logo img { height: 50px !important; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding: 80px 0 60px; overflow: hidden; position: relative;
}
#wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 18% 40%, rgba(2,8,19,.88), transparent 70%),
    linear-gradient(to bottom, rgba(2,8,19,.35), transparent 30%, transparent 70%, var(--bg) 98%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 600px; }
h1 { font-size: clamp(44px, 6vw, 76px); margin: 20px 0 22px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* floating glass metric cards */
.float-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fcard {
  position: absolute; pointer-events: auto;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius);
  padding: 20px 22px; min-width: 170px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  animation: floaty 7s ease-in-out infinite;
}
.fcard .num { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 210, 255, 0.45); }
.fcard.blue .num { color: #6FA8FF; text-shadow: 0 0 18px var(--glow); }
.fcard p { font-size: 13px; color: var(--ink); margin-top: 8px; line-height: 1.45; opacity: .9; }
.fcard:nth-child(1) { left: 38%; top: 14%; }
.fcard:nth-child(2) { left: 56%; top: 32%; animation-delay: 1.6s; }
.fcard:nth-child(3) { left: 71%; top: 8%; animation-delay: 3.1s; }
.fcard:nth-child(4) { left: 85%; top: 36%; animation-delay: 4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

@media(max-width: 1100px) {
  .float-cards { display: none; }
  .hero-metrics-mobile { display: grid !important; }
}

.hero-metrics-mobile {
  display: none; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px;
}
.hero-metrics-mobile .fcard { position: static; animation: none; min-width: 0; }

/* glowing arrows */
.arrow-glow { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.8)); }
.arrow-glow path { stroke: var(--cyan); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s ease 1s forwards; }
.arrow-glow .head { fill: var(--cyan); opacity: 0; animation: fade .5s ease 3s forwards; }
.a1 { left: 60%; top: 38%; width: 150px; }
.a2 { right: 4%; top: 6%; width: 180px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media(max-width: 1100px) { .arrow-glow { display: none; } }

/* ---------- section shells ---------- */
.sec-dark2 { background: linear-gradient(var(--bg2), var(--bg)); }
.divider-wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.divider-wave path { fill: none; stroke: url(#divGrad); stroke-width: 1.6; opacity: .65; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 32px 28px; backdrop-filter: blur(8px);
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(0, 210, 255, 0.45); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.card .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.card h3 { font-size: 21px; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
@media(max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- solutions ---------- */
.sol-list { margin-top: 20px; border-top: 1px solid rgba(96,165,250,.15); }
.sol {
  display: grid; grid-template-columns: 190px 1fr 300px; gap: 34px; align-items: center;
  padding: 38px 0; border-bottom: 1px solid rgba(96,165,250,.15); transition: background .3s;
}
.sol:hover { background: linear-gradient(90deg, transparent, rgba(46,124,255,.06) 40%, transparent); }
.sol .idx { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); letter-spacing: .12em; text-transform: uppercase; }
.sol h3 { font-size: 26px; margin-bottom: 8px; }
.sol p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.sol .outcome {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink); line-height: 1.6;
  background: rgba(46,124,255,.08); border: 1px solid var(--panel-border); border-radius: 10px; padding: 14px 16px;
}
.sol .outcome b { color: var(--cyan); font-weight: 500; }
@media(max-width: 1000px) { .sol { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.ind {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.ind:hover { border-color: rgba(0, 210, 255, 0.5); transform: translateY(-4px); }
.ind h3 { font-size: 19px; margin-bottom: 8px; }
.ind p { font-size: 14px; color: var(--muted); }
.ind .wavelet { position: absolute; bottom: 0; left: 0; right: 0; height: 24px; opacity: .65; }
.ind .wavelet path { stroke: var(--cyan); stroke-width: 1.3; fill: none; filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.6)); }
@media(max-width: 1000px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- case studies ---------- */
.case .big { font-family: var(--head); font-weight: 700; font-size: 42px; line-height: 1; color: var(--cyan); text-shadow: 0 0 22px rgba(0, 210, 255, 0.35); margin: 14px 0 6px; }
.case .big .u { color: #6FA8FF; text-shadow: 0 0 22px var(--glow); }
.case h3 { font-size: 17px; margin-bottom: 10px; }
.case .rule { height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); margin: 16px 0; opacity: .5; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 140px 0 130px; overflow: hidden; }
#wave2 { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.contact .wrap { position: relative; z-index: 2; }
.contact h2 { font-size: clamp(36px, 5vw, 58px); }
.contact .lede { margin: 0 auto 38px; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::before { display: none; }
.contact-note { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }

footer { padding: 32px 0; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--cyan); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 19, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 500px;
  position: relative; transform: translateY(20px) scale(0.95); transition: transform 0.3s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-box h3 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.modal-box p { font-size: 14.5px; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 13.5px; margin-bottom: 6px; color: var(--muted); font-weight: 500; }
.form-group label .req { color: var(--cyan); }
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--panel-border);
  color: #fff; padding: 12px 16px; border-radius: 8px; font-family: var(--body); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(147, 166, 199, 0.4); }
.form-submit { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- FAQ Accordion ---------- */
.faq-grid { max-width: 800px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.faq-item {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(0, 210, 255, 0.4); }
.faq-question {
  width: 100%; padding: 22px 26px; background: none; border: none; color: #fff;
  font-family: var(--head); font-size: 18px; font-weight: 600; text-align: left;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-question .icon { color: var(--cyan); font-size: 22px; transition: transform 0.3s ease; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px; color: var(--muted); font-size: 15.5px; line-height: 1.65;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 26px 22px; }

/* ---------- Subpage Banners & Process Flow ---------- */
.page-hero { padding: 150px 0 80px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(var(--bg2), var(--bg)); }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); max-width: 22ch; margin: 16px auto; }
.page-hero .lede { margin: 0 auto 32px; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 52px; }
.process-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 32px 26px; position: relative;
}
.process-num {
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cyan);
  background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 12px; border-radius: 6px; display: inline-block; margin-bottom: 16px;
}

/* ---------- Dropdown Navigation ---------- */
.nav-links li {
  position: relative;
}
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(5, 13, 31, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.22);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.nav-links .dropdown-menu li {
  width: 100%;
}
.nav-links .dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.nav-links .dropdown-menu a:hover {
  background: rgba(96, 165, 250, 0.08);
  color: var(--cyan);
}
.nav-links li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-links .arrow {
  font-size: 9px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-links li.dropdown:hover .arrow {
  transform: rotate(180deg);
}