:root {
  --bg: #0a0f1a;
  --bg-2: #0e1420;
  --surface: #0e1420;
  --border: #1b2737;
  --border-hover: rgba(34, 211, 238, 0.35);
  --text: #e6edf6;
  --text-dim: #8595a8;
  --text-mute: #5d6b7e;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-grad: linear-gradient(90deg, #22d3ee, #67e8f9);
  --maxw: 1400px;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sp-section: clamp(56px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--sp-section) 0; position: relative; scroll-margin-top: 80px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 10px; }
.lead { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: #06121a; box-shadow: 0 0 0 rgba(34, 211, 238, 0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35); }
.btn-ghost { border-color: #2a3a4f; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #06121a; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10, 15, 26, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.nav__a { color: var(--accent); }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.nav__cta { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.nav__links a { font-size: 14px; color: var(--text-dim); position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; display: block; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px;
  background: var(--bg);
}
.nav__mobile a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 14px 0;
}
.nav__mobile a:hover { color: var(--accent); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile:not([hidden]) { display: flex; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(120px, 14vw, 180px) 0 clamp(56px, 9vw, 110px); text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero__bg .b1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 70%);
  top: -180px; left: 50%; transform: translateX(-60%);
  animation: drift1 16s ease-in-out infinite;
}
.hero__bg .b2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  top: -60px; left: 50%; transform: translateX(10%);
  animation: drift2 20s ease-in-out infinite;
}
.hero__bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 75%);
  animation: gridmove 30s linear infinite;
}
@keyframes drift1 { 50% { transform: translate(-45%, 40px); } }
@keyframes drift2 { 50% { transform: translate(20%, 60px); } }
@keyframes gridmove { to { background-position: 48px 48px; } }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(38px, 7vw, 76px); margin: 18px 0; }
.hero__lead { max-width: 540px; margin: 0 auto 32px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Services ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-rows: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 12px 40px rgba(34, 211, 238, 0.12); }
.card__ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  margin-bottom: 16px;
  transition: transform .25s ease;
}
.card:hover .card__ic { transform: translateY(-3px); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.card--cta {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.02));
  border-color: rgba(34, 211, 238, 0.28);
  display: flex; flex-direction: column; justify-content: center;
}
.card--cta h3 { color: var(--accent); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; grid-auto-rows: auto; } }

/* ---- Expertise ---- */
.expertise__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.expertise__title { font-size: clamp(26px, 3.6vw, 40px); margin: 10px 0 16px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.12); border: 1px solid var(--accent);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px;
  width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.stats { display: grid; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat__label { color: var(--text-dim); font-size: 14px; }
@media (max-width: 820px) { .expertise__grid { grid-template-columns: 1fr; } }

/* ---- Stack marquee ---- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  flex: none;
  font-family: var(--font-mono); font-size: 14px;
  color: #c3cedd; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 20px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Contact CTA + footer ---- */
.cta {
  position: relative; text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.22); border-radius: 20px;
  padding: clamp(40px, 7vw, 72px) 24px; overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta__title { font-size: clamp(28px, 4.5vw, 48px); margin-bottom: 12px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer__tag { color: var(--text-dim); font-size: 14px; margin: 0; }
.footer__copy { color: var(--text-mute); font-size: 13px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
