/* ============================================================
   DigitalVortex Tech — design system
   ============================================================ */
:root {
  --bg: #070b16;
  --bg-2: #0b1122;
  --surface: #0f1730;
  --surface-2: #131c39;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --muted: #9aa4c4;
  --muted-2: #6f7aa0;
  --accent: #22d3ee;
  --accent-2: #7c3aed;
  --accent-3: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
  --ring: 0 0 0 1px var(--border);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --space: clamp(64px, 9vw, 128px);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }
/* Prevent grid/flex children from blowing out their track (min-width:auto default) */
.hero__inner > *, .split > *, .work-card > *, .contact > *, .footer__grid > *, .stats > *, .grid > *, .steps > * { min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--accent); color: #06121a;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-weight: 600; font-size: 15.5px; line-height: 1; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--b);
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #05080f; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 58, 237, .7); }
.btn--ghost { --b: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 22, 0.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--border); background: rgba(7, 11, 22, 0.85); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand__mark { flex: none; }
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link { color: var(--muted); font-weight: 500; font-size: 15.5px; position: relative; transition: color .2s; }
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow::before { display: none; }
h2.section__title { font-size: clamp(30px, 4.4vw, 46px); }
.section__lead { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(70px, 10vw, 120px); padding-bottom: var(--space); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(60% 50% at 78% 12%, rgba(124, 58, 237, .28), transparent 70%),
    radial-gradient(50% 50% at 8% 8%, rgba(34, 211, 238, .20), transparent 70%),
    var(--bg); }
.hero__grid-overlay { position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 80%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); line-height: 1.04; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin-top: 24px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--muted-2); font-size: 14px; }
.hero__trust strong { color: var(--text); font-weight: 600; }

.orb { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin-inline: auto; }
.orb::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #6366f1, #a855f7, #f472b6, #22d3ee);
  filter: blur(2px); animation: spin 18s linear infinite;
  mask: radial-gradient(transparent 54%, #000 55%, #000 70%, transparent 72%);
  -webkit-mask: radial-gradient(transparent 54%, #000 55%, #000 70%, transparent 72%);
}
.orb::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(from 180deg, #a855f7, #22d3ee, #6366f1, #a855f7);
  opacity: .55; animation: spin 26s linear infinite reverse;
  mask: radial-gradient(transparent 60%, #000 62%); -webkit-mask: radial-gradient(transparent 60%, #000 62%);
}
.orb__core { position: absolute; inset: 33%; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 60px rgba(124, 58, 237, .6); display: grid; place-items: center; }
.orb__core svg { width: 46%; height: 46%; }
.orb__chip { position: absolute; background: rgba(15, 23, 48, .85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.orb__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.orb__chip--1 { top: 6%; left: -6%; } .orb__chip--2 { bottom: 14%; right: -8%; }
.orb__chip--3 { bottom: -2%; left: 16%; }
.orb__chip--2 i { background: var(--accent-3); } .orb__chip--3 i { background: var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- logos / stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__num { font-family: var(--display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- cards / services ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, border-color .25s, background .25s; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__icon { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border-strong);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); font-size: 16px; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.checklist span small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }

/* ---------- work / case study ---------- */
.work-card { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong);
  border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; box-shadow: var(--shadow); }
.work-card .tag { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.work-card h3 { font-size: clamp(24px, 3vw, 34px); }
.work-card p { color: var(--muted); margin-top: 14px; }
.work-card .work-meta { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.work-meta div span { display: block; }
.work-meta .k { font-family: var(--display); font-size: 22px; font-weight: 700; }
.work-meta .v { color: var(--muted); font-size: 13.5px; }
.window { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.window__bar { display: flex; gap: 7px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3556; }
.window__bar i:first-child { background: #ff5f57; } .window__bar i:nth-child(2) { background: #febc2e; } .window__bar i:nth-child(3) { background: #28c840; }
.window__body { padding: 22px; display: grid; gap: 12px; }
.window__row { height: 12px; border-radius: 6px; background: var(--surface-2); }
.window__row.g { background: var(--grad); opacity: .85; }
.window__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 6px; }
.window__cards div { height: 50px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- industries ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 500; transition: border-color .2s, transform .2s; }
.pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.pill svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; }
.step__n { font-family: var(--display); font-weight: 700; font-size: 15px; color: #05080f; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 11px; background: var(--grad); margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 26px; overflow: hidden; padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(34,211,238,.22), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(168,85,247,.28), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong); text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); max-width: 720px; margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 16px auto 0; max-width: 560px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 15.5px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.contact__info { display: grid; gap: 18px; }
.contact__row { display: flex; gap: 15px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact__row .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent); }
.contact__row .ic svg { width: 20px; height: 20px; }
.contact__row h3 { font-size: 16px; margin-bottom: 3px; }
.contact__row p, .contact__row a { color: var(--muted); font-size: 15px; }
.contact__row a:hover { color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(54px, 7vw, 86px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 80% 0%, rgba(124,58,237,.18), transparent 65%); }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 58px); }
.page-hero p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 640px; }

/* ---------- prose (about) ---------- */
.prose p { color: var(--muted); margin-bottom: 18px; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 64px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__blurb { color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer__legal { color: var(--muted-2); font-size: 13.5px; margin-top: 14px; }
.footer__col h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a, .footer__col li { color: var(--muted); font-size: 15px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 14px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 20px; }
.footer__social a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .orb { max-width: 340px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .work-card { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 14, 28, 0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 14px 22px 26px; transform: translateY(-130%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__link { display: block; padding: 16px 4px; font-size: 17px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .steps, .values, .footer__grid, .stats { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-band .btn { width: 100%; }
  .orb__chip { font-size: 11.5px; padding: 7px 11px; }
  .card { padding: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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