/* ==========================================================================
   Volts AI Technologies: shared custom styles (complements Tailwind CDN)
   Palette v2: slightly brighter dark mode
   ========================================================================== */

:root {
  --void: #0b1220;      /* page background (lifted from #090D16) */
  --void-2: #0f1729;    /* alternate section band */
  --surface: #141d30;   /* cards */
  --surface-2: #1a2540; /* raised / hover */
  --line: #26324a;      /* borders */
  --ink: #f9fafb;
  --muted: #a7b0c0;
  --cyan: #06b6d4;
  --indigo: #6366f1;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background-color: var(--void);
  background-image: radial-gradient(1200px 600px at 50% -200px, rgba(99, 102, 241, .10), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Gradient text (large headings only → AA large-text compliant) */
.text-gradient {
  background: linear-gradient(90deg, #22d3ee 0%, #60a5fa 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Primary CTA: dark label on bright gradient keeps ≥ 4.5:1 across the whole gradient */
.btn-primary {
  background-image: linear-gradient(90deg, #22d3ee 0%, #818cf8 100%);
  color: #050a14;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .35), 0 10px 30px -10px rgba(34, 211, 238, .6);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(129, 140, 248, .5), 0 14px 40px -10px rgba(129, 140, 248, .7); transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid #334161;
  background-color: rgba(26, 37, 64, .7);
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.btn-secondary:hover { border-color: rgba(34, 211, 238, .7); background-color: var(--surface-2); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
  border-radius: .5rem;
}

/* Glassmorphic sticky header */
.glass {
  background-color: rgba(11, 18, 32, .75);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
}

/* Cards: subtle top sheen + gradient hover glow */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 40%), var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.card:hover, .card:focus-within {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .18), 0 24px 60px -24px rgba(34, 211, 238, .45);
}
a.card:hover { transform: translateY(-3px); }

/* Featured card: gradient border */
.card-feature {
  position: relative;
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(6, 182, 212, .22), transparent 60%),
    var(--surface);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.card-feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, .8), rgba(129, 140, 248, .8) 50%, rgba(38, 50, 74, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-feature > * { position: relative; z-index: 1; }

/* Icon chip */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .8rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(129, 140, 248, .22));
  border: 1px solid rgba(129, 140, 248, .4);
  color: #a5f3fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* Tech chips */
.chip {
  display: inline-flex; align-items: center; border-radius: 9999px;
  border: 1px solid #334161; background-color: rgba(11, 18, 32, .6);
  padding: .3rem .7rem; font-size: .75rem; font-weight: 500; color: #d1d9e6;
}

/* Hero mesh + grid background */
.hero-bg { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 22% 25%, rgba(34, 211, 238, .30), transparent 70%),
    radial-gradient(38% 42% at 78% 18%, rgba(129, 140, 248, .34), transparent 70%),
    radial-gradient(30% 30% at 50% 72%, rgba(59, 130, 246, .16), transparent 70%);
  filter: blur(24px);
  animation: meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -3%, 0) scale(1.06); }
}

.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), rgba(129, 140, 248, .55), transparent); }

/* Active top-nav state */
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
}

/* ---------- Services: practice navigator ---------- */
/* Desktop: vertical rail with progress line */
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 1.5rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.rail-link { position: relative; color: #b4bdcc; transition: color .2s ease, background-color .2s ease, border-color .2s ease; border: 1px solid transparent; }
.rail-link .rail-dot {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0; border-radius: .6rem; background: var(--void); border: 1px solid var(--line); color: #94a3b8;
  transition: all .2s ease;
}
.rail-link:hover { color: var(--ink); background-color: rgba(26, 37, 64, .6); }
.rail-link.is-active { color: var(--ink); background: linear-gradient(90deg, rgba(34, 211, 238, .14), rgba(129, 140, 248, .08)); border-color: rgba(34, 211, 238, .35); }
.rail-link.is-active .rail-dot { background: linear-gradient(135deg, #22d3ee, #818cf8); border-color: transparent; color: #050a14; box-shadow: 0 0 18px -2px rgba(34, 211, 238, .6); }

/* Mobile: segmented scroller */
.seg { scrollbar-width: none; scroll-snap-type: x proximity; }
.seg::-webkit-scrollbar { display: none; }
.seg a { scroll-snap-align: center; }
.seg-link.is-active { color: #050a14; background-image: linear-gradient(90deg, #22d3ee, #818cf8); border-color: transparent; }

/* ---------- Forms ---------- */
.field-input { background-color: #0d1526; border: 1px solid #334161; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field-input::placeholder { color: #8d97a8; }
.field-input:hover { border-color: #46557a; }
.field-input:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); outline: none; }
.field-input[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }
.field-input.is-valid { border-color: rgba(52, 211, 153, .65); }
.field-error { color: #fca5a5; }

select.field-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A7B0C0' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; padding-right: 2.5rem;
}
select.field-input option { background-color: var(--surface); color: var(--ink); }

/* Mobile menu */
#mobile-menu { transition: max-height .3s ease, opacity .25s ease; }
#mobile-menu[data-open="false"] { max-height: 0; opacity: 0; pointer-events: none; }
#mobile-menu[data-open="true"]  { max-height: 24rem; opacity: 1; }
