/* ==========================================================================
   iTech Solutions PR — "Sentinel" Design System
   Cyber-security premium UI · vanilla CSS · zero dependencies
   --------------------------------------------------------------------------
   1.  Tokens & Reset
   2.  Base typography & utilities
   3.  Atmosphere (aurora, grain, grid, cursor, scroll progress)
   4.  Header / navigation
   5.  Hero
   6.  Marquee
   7.  Buttons
   8.  Section scaffolding & headings
   9.  Cards (glass, tilt, spotlight, gradient border)
   10. Bento pillars
   11. About split
   12. Framework (sticky scroll + wheel)
   13. Services
   14. Approach (accordion + radar)
   15. IT feature cards
   16. Contact
   17. Footer & floating actions
   18. Reveal / motion primitives
   19. Responsive
   20. Reduced motion & print
   ========================================================================== */

/* ============================ 1. TOKENS & RESET ========================== */

:root {
  /* — Ink / surfaces ——————————————————————————————— */
  --ink-950: #03050c;
  --ink-900: #05080f;
  --ink-850: #070c18;
  --ink-800: #0a1020;
  --ink-700: #0e1528;
  --ink-600: #141d36;
  --ink-500: #1b2745;

  /* — Brand (derived from the iTech logo indigo) ————— */
  --brand-700: #2c3a8f;
  --brand-600: #3a4bb0;
  --brand-500: #4f5fe0;
  --brand-400: #6d7cff;
  --brand-300: #98a3ff;

  /* — Accents ————————————————————————————————————— */
  --cyan-500: #12c8f0;
  --cyan-400: #24dcff;
  --cyan-300: #7ceaff;
  --violet-500: #7c3aed;
  --violet-400: #a172ff;
  --mint-500: #17c98b;
  --mint-400: #2ee6a8;
  --amber-400: #ffc247;

  /* — Text ——————————————————————————————————————— */
  --text: #eaeefb;
  --text-soft: #c3cbe4;
  --muted: #8d99b8;
  --muted-dim: #7c8aa0;

  /* — Lines & glass ——————————————————————————————— */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);

  /* — Radii ——————————————————————————————————————— */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;

  /* — Shadows & glows ————————————————————————————— */
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --sh-md: 0 18px 44px -18px rgba(0, 0, 0, 0.75);
  --sh-lg: 0 40px 90px -34px rgba(0, 0, 0, 0.9);
  --glow-brand: 0 0 0 1px rgba(109, 124, 255, 0.35), 0 20px 60px -22px rgba(79, 95, 224, 0.75);
  --glow-cyan: 0 0 44px -8px rgba(36, 220, 255, 0.55);

  /* — Layout ————————————————————————————————————— */
  --maxw: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --sec-y: clamp(84px, 11vw, 160px);

  /* — Type ——————————————————————————————————————— */
  --font-display: "Sora", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* — Motion ————————————————————————————————————— */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.22s;
  --dur: 0.42s;
  --dur-slow: 0.9s;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Author `display` declarations beat the UA stylesheet's [hidden] rule, so any
   component that sets `display` must not silently un-hide `hidden` elements. */
[hidden] {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.68;
  color: var(--text-soft);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(109, 124, 255, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--ink-900);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  border-radius: var(--r-full);
  border: 2px solid var(--ink-900);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
}

/* Focus ring — visible, on-brand, never removed */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ==================== 2. BASE TYPOGRAPHY & UTILITIES ===================== */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.95rem, 4.1vw, 3.15rem);
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}
h4 {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  letter-spacing: -0.012em;
  line-height: 1.32;
}

p {
  color: var(--muted);
}

strong,
b {
  color: var(--text);
  font-weight: 600;
}

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

.container--narrow {
  max-width: 880px;
}

.section {
  position: relative;
  padding-block: var(--sec-y);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(104deg, #fff 6%, var(--brand-300) 38%, var(--cyan-400) 68%, var(--violet-400) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400));
}

.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}

.lead {
  font-size: clamp(1.02rem, 1.32vw, 1.16rem);
  line-height: 1.72;
  color: var(--text-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--brand-500);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: 16px;
}

/* =========================== 3. ATMOSPHERE ============================== */

/* --- Fixed background stack --- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #0d1730 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 10%, rgba(79, 95, 224, 0.16) 0%, transparent 60%),
    var(--ink-950);
}

/* Aurora blobs — slow-drifting gradient light */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
}

.aurora--a {
  width: 52vw;
  height: 52vw;
  top: -16vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(79, 95, 224, 0.75) 0%, transparent 68%);
  animation: drift-a 26s var(--ease-in-out) infinite alternate;
}
.aurora--b {
  width: 44vw;
  height: 44vw;
  top: 8vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(36, 220, 255, 0.4) 0%, transparent 68%);
  animation: drift-b 32s var(--ease-in-out) infinite alternate;
}
.aurora--c {
  width: 40vw;
  height: 40vw;
  bottom: -14vw;
  left: 26vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  animation: drift-c 38s var(--ease-in-out) infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(12vw, 8vw, 0) scale(1.16);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-14vw, 12vw, 0) scale(1.1);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(10vw, -10vw, 0) scale(1.2);
  }
}

/* Technical grid, fades toward the bottom */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(115% 85% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 0%, transparent 78%);
}

/* Film grain — kills gradient banding, adds tactile depth */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
}

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400) 55%, var(--violet-400));
  box-shadow: 0 0 14px rgba(36, 220, 255, 0.7);
}

/* --- Cursor glow (desktop pointer only) --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(79, 95, 224, 0.13) 0%, rgba(36, 220, 255, 0.05) 38%, transparent 68%);
  transition: opacity 0.5s ease;
}

body.has-cursor .cursor-glow {
  opacity: 1;
}

/* ======================= 4. HEADER / NAVIGATION ========================= */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: background var(--dur) var(--ease-out), backdrop-filter var(--dur), border-color var(--dur),
    padding var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
  padding-block: 14px;
}

.nav.is-stuck {
  padding-block: 10px;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo {
  height: 56px;
  width: auto;
  transition: height var(--dur) var(--ease-out), filter var(--dur);
  /* the source logo is dark indigo drawn for a white page: brighten + glow */
  filter: brightness(2.05) saturate(1.3) contrast(1.05) drop-shadow(0 0 16px rgba(109, 124, 255, 0.6));
}

.nav.is-stuck .nav__logo {
  height: 44px;
}

.nav__brand:hover .nav__logo {
  filter: brightness(1.95) saturate(1.3) drop-shadow(0 0 24px rgba(36, 220, 255, 0.75));
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-full);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan-400), var(--brand-400));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  place-items: center;
  flex-shrink: 0;
}

.burger span {
  position: relative;
  display: block;
  width: 19px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}

.burger span + span {
  margin-top: 5px;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 100px var(--gutter) 40px;
  background: rgba(4, 6, 15, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.55s var(--ease-out), color var(--dur-fast);
}

.drawer.is-open .drawer__link {
  transform: none;
  opacity: 1;
}

.drawer__link:hover {
  color: var(--cyan-300);
}

.drawer__link i {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--brand-400);
}

.drawer__foot {
  margin-top: 34px;
  display: grid;
  gap: 10px;
}

/* ============================== 5. HERO ================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 70px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 16px 7px 8px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: rgba(14, 21, 40, 0.72);
  font-size: 0.79rem;
  color: var(--text-soft);
}

.hero__badge b {
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: 24px;
}

/* Word-reveal spans injected by JS */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
}

.reveal-word > span {
  display: inline-block;
  transform: translateY(112%) rotate(4deg);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
}

.is-ready .reveal-word > span,
.reveal.is-in .reveal-word > span {
  transform: none;
  opacity: 1;
}

.hero__text {
  max-width: 56ch;
  margin-bottom: 36px;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text-soft);
}

.hero__text em {
  font-style: normal;
  color: var(--cyan-300);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__microtrust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.microtrust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted);
}

.microtrust svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--mint-400);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

/* soft bloom behind the mascot so its baked-in disc has no hard edge */
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 95, 224, 0.5) 0%, rgba(36, 220, 255, 0.14) 46%, transparent 70%);
  filter: blur(46px);
  pointer-events: none;
}

.hero__orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(109, 124, 255, 0.22);
  border-radius: 50%;
  animation: spin-slow linear infinite;
}

.orbit-ring--1 {
  width: 74%;
  aspect-ratio: 1;
  animation-duration: 34s;
}
.orbit-ring--2 {
  width: 92%;
  aspect-ratio: 1;
  animation-duration: 52s;
  animation-direction: reverse;
  border-color: rgba(36, 220, 255, 0.16);
}
.orbit-ring--3 {
  width: 58%;
  aspect-ratio: 1;
  animation-duration: 24s;
  border-style: solid;
  border-color: rgba(124, 58, 237, 0.13);
}

.orbit-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 18px 3px rgba(36, 220, 255, 0.85);
}

.orbit-ring--2::after {
  background: var(--violet-400);
  box-shadow: 0 0 18px 3px rgba(161, 114, 255, 0.8);
}

.orbit-ring--3::after {
  background: var(--mint-400);
  box-shadow: 0 0 18px 3px rgba(46, 230, 168, 0.8);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero__mascot {
  position: relative;
  z-index: 3;
  width: min(100%, 430px);
  filter: drop-shadow(0 40px 70px rgba(9, 14, 40, 0.95)) drop-shadow(0 0 60px rgba(79, 95, 224, 0.4));
  animation: float-y 7s var(--ease-in-out) infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(-11px);
  }
  50% {
    transform: translateY(11px);
  }
}

/* Floating HUD chips over the mascot */
.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: rgba(8, 12, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sh-md);
  font-size: 0.79rem;
  color: var(--text-soft);
  white-space: nowrap;
  animation: float-y 6s var(--ease-in-out) infinite;
}

.chip b {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}

.chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chip--1 {
  top: 8%;
  left: -4%;
  animation-delay: -1.2s;
}
.chip--2 {
  bottom: 16%;
  right: -6%;
  animation-delay: -3.4s;
}
.chip--3 {
  bottom: 4%;
  left: 2%;
  animation-delay: -2.1s;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.6);
  animation: ping 2s var(--ease-out) infinite;
  flex-shrink: 0;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 9px rgba(46, 230, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 230, 168, 0);
  }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.scroll-cue__bar {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--brand-400), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan-400);
  animation: cue 2.1s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ============================= 6. MARQUEE =============================== */

.marquee {
  position: relative;
  padding-block: 30px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 30px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-fast);
}

.marquee__item:hover {
  color: var(--text);
}

.marquee__item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-400);
  flex-shrink: 0;
}

.marquee__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-600);
  flex-shrink: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============================= 7. BUTTONS =============================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur), color var(--dur);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.975);
}

/* Primary — gradient with a sweeping sheen */
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500) 48%, var(--cyan-500));
  background-size: 180% 100%;
  box-shadow: 0 14px 38px -14px rgba(79, 95, 224, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), background-position 0.7s var(--ease-out);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.42) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 52px -14px rgba(36, 220, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn--primary:hover::before {
  transform: translateX(130%);
}

/* Ghost — glass with animated gradient border */
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: rgba(109, 124, 255, 0.6);
  background: var(--glass-2);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(79, 95, 224, 0.85);
}

/* Quiet — text link with arrow */
.btn--quiet {
  padding-inline: 6px;
  color: var(--cyan-300);
  font-weight: 500;
}

.btn--quiet:hover {
  color: var(--text);
}

.btn--sm {
  padding: 10px 19px;
  font-size: 0.865rem;
}

.btn--lg {
  padding: 17px 32px;
  font-size: 1rem;
}

/* Link-style CTA with animated underline (replaces Divi "Aprende Más") */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cyan-300);
  padding-block: 4px;
  transition: color var(--dur-fast), gap var(--dur) var(--ease-out);
}

.link-cta::after {
  content: "";
  position: absolute;
}

.link-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur) var(--ease-out);
}

.link-cta:hover {
  color: var(--text);
  gap: 13px;
}

.link-cta:hover svg {
  transform: translateX(3px);
}

/* ================== 8. SECTION SCAFFOLDING & HEADINGS =================== */

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(46px, 5.5vw, 74px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

.sec-head p {
  margin-top: 20px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.72;
}

.sec-head__rule {
  width: 62px;
  height: 2px;
  margin-top: 26px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--cyan-400), var(--brand-500), transparent);
}

.sec-head--center .sec-head__rule {
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--brand-500), transparent);
}

/* Section number tag */
.sec-tag {
  position: absolute;
  top: clamp(60px, 8vw, 110px);
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

/* Hairline separator between sections */
.hr-glow {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(109, 124, 255, 0.4), transparent);
  max-width: var(--maxw);
  margin-inline: auto;
}

/* ============================== 9. CARDS ================================ */

.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur),
    background var(--dur);
}

/* Cursor-tracked spotlight (—px set by JS) */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 124, 255, 0.2), transparent 62%);
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* Top gradient hairline that ignites on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-400), var(--cyan-400), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.card:hover::after {
  opacity: 0.95;
}

.card:hover {
  border-color: rgba(109, 124, 255, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: var(--sh-lg);
}

.card h3,
.card h4 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.945rem;
  line-height: 1.68;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.3), rgba(36, 220, 255, 0.11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}

.card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--cyan-300);
  transition: transform var(--dur) var(--ease-out);
}

.card:hover .card__icon svg {
  color: var(--text);
}

.card:hover .card__icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 34px -16px rgba(36, 220, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Big translucent index numeral */
.card__num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  transition: color var(--dur), transform var(--dur) var(--ease-out);
}

.card:hover .card__num {
  color: rgba(109, 124, 255, 0.16);
  transform: translateY(-3px);
}

/* Animated 1px conic-gradient border.
   Built with two background layers clipped to padding-box / border-box, so the
   gradient paints ONLY the 1px rim. (A pseudo-element would need to be masked
   to a ring, and it would collide with the spotlight layer.) */
.card--conic {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)) padding-box,
    linear-gradient(160deg, #0c1226, #080d1c) padding-box,
    conic-gradient(
        from var(--angle, 0deg),
        rgba(109, 124, 255, 0.08) 0%,
        rgba(36, 220, 255, 0.95) 10%,
        rgba(109, 124, 255, 1) 20%,
        rgba(109, 124, 255, 0.08) 36%,
        rgba(109, 124, 255, 0.08) 100%
      )
      border-box;
  animation: conic-spin 7s linear infinite;
}

.card--conic:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)) padding-box,
    linear-gradient(160deg, #101832, #0a1024) padding-box,
    conic-gradient(
        from var(--angle, 0deg),
        rgba(36, 220, 255, 0.4) 0%,
        rgba(36, 220, 255, 1) 12%,
        rgba(109, 124, 255, 1) 24%,
        rgba(109, 124, 255, 0.35) 44%,
        rgba(109, 124, 255, 0.35) 100%
      )
      border-box;
  border-color: transparent;
}

@keyframes conic-spin {
  to {
    --angle: 360deg;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ========================= 10. BENTO PILLARS ============================ */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.pillar {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.pillar__glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 95, 224, 0.26), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
  transition: transform 0.75s var(--ease-out), opacity var(--dur);
}

.pillar:nth-child(2) .pillar__glow {
  background: radial-gradient(circle, rgba(36, 220, 255, 0.2), transparent 70%);
}

.pillar:nth-child(3) .pillar__glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 70%);
}

.pillar:hover .pillar__glow {
  transform: translate(-22px, -18px) scale(1.25);
}

.pillar__foot {
  margin-top: auto;
  padding-top: 24px;
}

/* ============================ 11. ABOUT ================================= */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__photo {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.about__media:hover .about__photo img {
  transform: scale(1.055);
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(79, 95, 224, 0.12), rgba(5, 8, 15, 0.72));
  pointer-events: none;
}

/* Animated scan line sweeping the photo */
.about__photo .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 26%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(36, 220, 255, 0.16), transparent);
  border-top: 1px solid rgba(36, 220, 255, 0.5);
  animation: scan-move 5.5s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes scan-move {
  0% {
    top: -26%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Overlapping "Reparamos Computadoras" inset card */
.about__inset {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  margin-inline-start: clamp(0px, 4vw, 46px);
  margin-inline-end: clamp(20px, 6vw, 70px);
  box-shadow: var(--sh-lg);
}

.about__body h3 {
  margin-bottom: 8px;
}

.about__body h2 {
  margin-bottom: 22px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, #fff 20%, var(--brand-300) 70%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat__label {
  margin-top: 9px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--muted);
}

/* ========================== 12. FRAMEWORK =============================== */

.framework {
  position: relative;
  overflow: hidden;
}

.framework__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

/* Sticky wheel column */
.framework__stage {
  position: sticky;
  top: 120px;
  display: grid;
  place-items: center;
}

.wheel {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel__img {
  width: 82%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
  animation: spin-slow 68s linear infinite;
}

.wheel__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(109, 124, 255, 0.2);
  pointer-events: none;
}

.wheel__ring--2 {
  inset: -7%;
  border-style: dashed;
  border-color: rgba(36, 220, 255, 0.16);
  animation: spin-slow 40s linear infinite reverse;
}

/* Radar sweep behind the wheel */
.wheel__radar {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(36, 220, 255, 0.16) 42deg, transparent 76deg);
  animation: spin-slow 6.5s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}

/* Steps list — each step highlights as it enters view */
.steps {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease-out), border-color var(--dur), transform var(--dur) var(--ease-out);
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--cyan-400), var(--brand-500));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease-out);
}

.step.is-active {
  background: linear-gradient(100deg, rgba(79, 95, 224, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(109, 124, 255, 0.26);
  transform: translateX(6px);
}

.step.is-active::before {
  transform: scaleY(1);
}

.step__idx {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-300);
  transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur);
}

.step.is-active .step__idx {
  background: linear-gradient(140deg, var(--brand-500), var(--cyan-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(36, 220, 255, 0.9);
}

.step h4 {
  margin-bottom: 5px;
  transition: color var(--dur);
}

.step.is-active h4 {
  color: var(--text);
}

.step p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================ 13. SERVICES ============================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, rgba(79, 95, 224, 0.2), transparent 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.service__art img {
  width: 46%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.7s var(--ease-out);
}

.service:hover .service__art img {
  transform: translateY(-7px) scale(1.07);
}

.service__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 15, 0.65));
  pointer-events: none;
}

.service h4 {
  font-size: 1.1rem;
}

/* ============================ 14. APPROACH ============================== */

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}

/* Accordion of the brand qualities */
.acc {
  border-top: 1px solid var(--line);
}

.acc__item {
  border-bottom: 1px solid var(--line);
}

.acc__btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur-fast), padding-inline var(--dur) var(--ease-out);
}

.acc__btn:hover {
  color: var(--text);
  padding-inline-start: 12px;
}

.acc__item.is-open .acc__btn {
  color: var(--cyan-300);
}

.acc__bullet {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brand-400);
  border-radius: 50%;
  transition: background var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-spring);
}

.acc__item.is-open .acc__bullet {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(36, 220, 255, 0.9);
}

.acc__plus {
  margin-inline-start: auto;
  flex-shrink: 0;
  position: relative;
  width: 15px;
  height: 15px;
}

.acc__plus::before,
.acc__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}

.acc__plus::after {
  transform: rotate(90deg);
}

.acc__item.is-open .acc__plus::after {
  transform: rotate(0deg);
}

.acc__item.is-open .acc__plus::before,
.acc__item.is-open .acc__plus::after {
  background: var(--cyan-400);
}

.acc__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease-out);
}

.acc__panel p {
  padding: 0 40px 24px 31px;
  font-size: 0.945rem;
  line-height: 1.7;
}

/* Numbered commitment list (the five brand qualities) */
.qualities {
  display: grid;
  gap: 10px;
  counter-reset: q;
}

.quality {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur),
    box-shadow var(--dur);
}

.quality::before {
  counter-increment: q;
  content: "0" counter(q);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-300);
  transition: background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
}

.quality:hover {
  transform: translateX(7px);
  border-color: rgba(109, 124, 255, 0.38);
  background: linear-gradient(100deg, rgba(79, 95, 224, 0.17), rgba(255, 255, 255, 0.02));
  box-shadow: var(--sh-md);
}

.quality:hover::before {
  background: linear-gradient(140deg, var(--brand-500), var(--cyan-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(36, 220, 255, 0.9);
}

.quality__txt {
  font-size: 0.955rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.quality--lead .quality__txt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.quality__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 11px;
  border-radius: var(--r-full);
  border: 1px solid rgba(46, 230, 168, 0.32);
  background: rgba(46, 230, 168, 0.1);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-400);
}

/* Radar visual panel */
.radar-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: radial-gradient(110% 100% at 50% 0%, rgba(79, 95, 224, 0.13), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.radar {
  width: min(100%, 330px);
  aspect-ratio: 1;
  position: relative;
}

.radar svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar__sweep {
  transform-origin: 50% 50%;
  animation: spin-slow 4.5s linear infinite;
}

.radar__blip {
  animation: blip 2.8s var(--ease-out) infinite;
  transform-origin: center;
}

.radar__blip:nth-of-type(2) {
  animation-delay: 0.9s;
}
.radar__blip:nth-of-type(3) {
  animation-delay: 1.8s;
}

@keyframes blip {
  0%,
  70%,
  100% {
    opacity: 0.12;
    transform: scale(0.6);
  }
  12% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.radar__grid {
  fill: none;
  stroke: rgba(109, 124, 255, 0.24);
  stroke-width: 1;
}

.radar-panel__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--mint {
  background: var(--mint-400);
  box-shadow: 0 0 9px rgba(46, 230, 168, 0.85);
}
.legend-dot--cyan {
  background: var(--cyan-400);
  box-shadow: 0 0 9px rgba(36, 220, 255, 0.85);
}
.legend-dot--violet {
  background: var(--violet-400);
  box-shadow: 0 0 9px rgba(161, 114, 255, 0.85);
}

/* =========================== 15. IT FEATURES ============================ */

.it-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.it-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  min-height: 300px;
}

.it-card__art {
  position: relative;
  display: grid;
  place-items: center;
}

.it-card__art img {
  width: 100%;
  max-width: 240px;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.65));
  animation: float-y 8s var(--ease-in-out) infinite;
}

.it-card:nth-child(2) .it-card__art img {
  animation-delay: -4s;
}

.it-card__list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.it-card__list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.it-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan-400), var(--brand-500));
  border-radius: 2px;
}

/* ============================ 16. CONTACT =============================== */

.contact {
  position: relative;
}

.contact__panel {
  position: relative;
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.16), rgba(255, 255, 255, 0.025) 46%, rgba(36, 220, 255, 0.07));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

/* Slow-drifting grid inside the panel */
.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 90% at 100% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 90% at 100% 0%, #000, transparent 72%);
  pointer-events: none;
}

/* Light bloom */
.contact__panel::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 220, 255, 0.28), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(34px, 4vw, 52px);
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur);
}

.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 124, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.contact__ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(79, 95, 224, 0.42), rgba(36, 220, 255, 0.16));
  border: 1px solid var(--line-strong);
  color: var(--cyan-300);
}

.contact__ico svg {
  width: 21px;
  height: 21px;
}

.contact__card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 4px;
}

.contact__card b {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 600;
  color: var(--text);
}

.contact__card span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact__cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: clamp(34px, 4vw, 50px);
  padding-top: clamp(30px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
}

.contact__cta-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact__cta-note b {
  color: var(--mint-400);
}

/* ========================= 17. FOOTER & FABS ============================ */

.footer {
  position: relative;
  padding-block: clamp(56px, 6vw, 84px) 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(79, 95, 224, 0.07));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: clamp(28px, 3.6vw, 56px);
}

.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(2.05) saturate(1.3) drop-shadow(0 0 18px rgba(109, 124, 255, 0.55));
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 20px;
}

.footer__links {
  display: grid;
  gap: 12px;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color var(--dur-fast), transform var(--dur) var(--ease-out);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--cyan-300);
  transform: translateX(4px);
}

.footer__contact {
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.footer__contact a:hover {
  color: var(--cyan-300);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 62px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--muted-dim);
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Floating actions */
.fabs {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 880;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.fab {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(8, 12, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: var(--sh-md);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), background var(--dur);
}

.fab svg {
  width: 23px;
  height: 23px;
}

.fab:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--sh-lg);
}

.fab--wa {
  background: linear-gradient(145deg, #25d366, #12a94f);
  border-color: transparent;
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.85);
}

.fab--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: fab-ping 2.6s var(--ease-out) infinite;
}

@keyframes fab-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.fab--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur), visibility var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur);
}

.fab--top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ====================== 18. REVEAL / MOTION PRIMITIVES ================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-38px);
}
[data-reveal="right"] {
  transform: translateX(38px);
}
[data-reveal="scale"] {
  transform: scale(0.93);
}
[data-reveal="blur"] {
  transform: translateY(24px);
  filter: blur(12px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* will-change is applied by JS only while the element is on screen */
[data-parallax].is-moving {
  will-change: transform;
}

.is-ready [data-hero-reveal] {
  opacity: 1;
  transform: none;
}

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* Decorative network line art */
.deco-net {
  position: absolute;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: screen;
}

.deco-net--a {
  top: 4%;
  right: -6%;
  width: min(46vw, 620px);
}

.deco-net--b {
  bottom: -6%;
  left: -10%;
  width: min(34vw, 440px);
  transform: rotate(180deg);
  opacity: 0.16;
}

/* ============================ 19. RESPONSIVE ============================ */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 54px;
  }
  .hero__text {
    margin-inline: auto;
  }
  .hero__cta,
  .hero__microtrust {
    justify-content: center;
  }
  .hero__visual {
    order: -1;
    min-height: auto;
    max-width: 480px;
    margin-inline: auto;
  }
  .chip--1 {
    left: 0;
  }
  .chip--2 {
    right: 0;
  }

  .about__grid,
  .framework__grid,
  .approach__grid {
    grid-template-columns: 1fr;
  }

  .framework__stage {
    position: relative;
    top: 0;
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }

  .bento,
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .it-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sec-tag,
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav__menu {
    display: none;
  }
  .burger {
    display: grid;
  }
  .nav__actions .btn {
    display: none;
  }
  .nav__inner {
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  :root {
    --sec-y: clamp(64px, 12vw, 92px);
  }

  html {
    scroll-padding-top: 78px;
  }

  .bento,
  .services,
  .contact__grid,
  .about__stats {
    grid-template-columns: 1fr;
  }

  .about__inset {
    margin-inline: 0;
    margin-top: -34px;
  }

  .it-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .it-card__art {
    order: -1;
  }

  .it-card__list li {
    text-align: left;
    max-width: 34ch;
    margin-inline: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .contact__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__cta .btn {
    width: 100%;
  }

  .hero__microtrust {
    gap: 14px;
  }

  .grain,
  .vignette {
    display: none;
  }
}

@media (max-width: 480px) {
  .chip {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
}

/* ================= 20. REDUCED MOTION & PRINT =========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-hero-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal-word > span {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__canvas,
  .cursor-glow,
  .wheel__radar {
    display: none;
  }
}

@media print {
  .nav,
  .fabs,
  .grain,
  .vignette,
  .cursor-glow,
  .scroll-progress,
  .atmos,
  .scroll-cue {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  [data-reveal],
  [data-hero-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   21. LIGHT THEME — same token set, one stylesheet
   Security buying committees often read on a bright screen or print the page.
   The accent shifts from cyan (great on dark, 2.14:1 on white) to a deep
   ocean blue that clears AA on light surfaces.
   ========================================================================== */

[data-theme="light"] {
  color-scheme: light;

  --ink-950: #f2f5fa;
  --ink-900: #eaeff7;
  --ink-850: #e3e9f3;
  --ink-800: #ffffff;
  --ink-700: #ffffff;
  --ink-600: #e8edf5;
  --ink-500: #dde4ef;

  --text: #0a1220;
  --text-soft: #2a3752;
  --muted: #4d5a75;
  --muted-dim: #5f6b86;

  /* Accents used as *text* must darken on light surfaces */
  --cyan-300: #0369a1;
  --cyan-400: #0284c7;
  --cyan-500: #0369a1;
  --brand-300: #3a4bb0;
  --brand-400: #4f5fe0;
  --mint-400: #0f8f63;
  --amber-400: #a16207;

  --line: rgba(10, 18, 32, 0.11);
  --line-strong: rgba(10, 18, 32, 0.18);
  --glass: rgba(10, 18, 32, 0.025);
  --glass-2: rgba(10, 18, 32, 0.05);

  --sh-sm: 0 2px 8px rgba(16, 30, 60, 0.07);
  --sh-md: 0 16px 38px -20px rgba(16, 30, 60, 0.3);
  --sh-lg: 0 34px 70px -34px rgba(16, 30, 60, 0.34);
}

[data-theme="light"] .atmos {
  background:
    radial-gradient(120% 80% at 50% -12%, #ffffff 0%, transparent 52%),
    radial-gradient(90% 60% at 100% 6%, rgba(79, 95, 224, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, #f7f9fd, #eef2f8);
}

[data-theme="light"] .aurora {
  opacity: 0.3;
  filter: blur(110px);
}

[data-theme="light"] .grid-lines {
  background-image:
    linear-gradient(rgba(10, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 18, 32, 0.045) 1px, transparent 1px);
}

[data-theme="light"] .vignette {
  background: radial-gradient(135% 100% at 50% 40%, transparent 62%, rgba(16, 30, 60, 0.07) 100%);
}

/* On light surfaces a multiply blend is both invisible and disproportionately
   expensive (it forces a full-viewport blend pass every frame). Plain alpha
   reads the same and costs nothing. */
[data-theme="light"] .grain {
  opacity: 0.03;
  mix-blend-mode: normal;
}

/* The source logo is dark indigo — it needs no lift on a light page */
[data-theme="light"] .nav__logo,
[data-theme="light"] .footer__brand img {
  filter: drop-shadow(0 3px 12px rgba(79, 95, 224, 0.22));
}

[data-theme="light"] .nav__brand:hover .nav__logo {
  filter: drop-shadow(0 4px 18px rgba(79, 95, 224, 0.35));
}

[data-theme="light"] .nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .drawer {
  background: rgba(247, 249, 253, 0.97);
}

[data-theme="light"] .hero__canvas {
  opacity: 0.5;
}

[data-theme="light"] .hero__badge {
  background: rgba(255, 255, 255, 0.8);
}

/* The mascot artwork has a dark navy disc baked in. On a light page that
   reads as a hole, so we frame it deliberately: a deep stage the robot sits
   on. Intentional beats accidental. */
[data-theme="light"] .hero__visual::before {
  background: radial-gradient(circle, rgba(79, 95, 224, 0.22) 0%, rgba(36, 220, 255, 0.08) 46%, transparent 70%);
}

[data-theme="light"] .hero__visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #16224a 0%, #0b1230 58%, rgba(11, 18, 48, 0.28) 80%, transparent 94%);
  box-shadow: 0 46px 90px -40px rgba(16, 30, 60, 0.55);
  pointer-events: none;
}

[data-theme="light"] .hero__mascot {
  z-index: 3;
}

[data-theme="light"] .hero__mascot {
  filter: drop-shadow(0 24px 44px rgba(6, 12, 30, 0.5));
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(104deg, #1a2b6b 4%, var(--brand-500) 42%, var(--cyan-500) 74%, var(--violet-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .stat__num {
  background: linear-gradient(150deg, #16224a 15%, var(--brand-500) 62%, var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .card {
  background: #ffffff;
  box-shadow: var(--sh-sm);
}

[data-theme="light"] .card:hover {
  background: #ffffff;
  border-color: rgba(79, 95, 224, 0.4);
  box-shadow: var(--sh-md);
}

[data-theme="light"] .card::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 95, 224, 0.09), transparent 62%);
}

[data-theme="light"] .card--conic {
  background:
    linear-gradient(160deg, #ffffff, #fbfcff) padding-box,
    linear-gradient(160deg, #ffffff, #fbfcff) padding-box,
    conic-gradient(
        from var(--angle, 0deg),
        rgba(79, 95, 224, 0.07) 0%,
        rgba(3, 105, 161, 0.9) 10%,
        rgba(79, 95, 224, 1) 20%,
        rgba(79, 95, 224, 0.07) 36%,
        rgba(79, 95, 224, 0.07) 100%
      )
      border-box;
}

[data-theme="light"] .card--conic:hover {
  background:
    linear-gradient(160deg, #ffffff, #fbfcff) padding-box,
    linear-gradient(160deg, #ffffff, #fbfcff) padding-box,
    conic-gradient(
        from var(--angle, 0deg),
        rgba(3, 105, 161, 0.4) 0%,
        rgba(3, 105, 161, 1) 12%,
        rgba(79, 95, 224, 1) 24%,
        rgba(79, 95, 224, 0.3) 44%,
        rgba(79, 95, 224, 0.3) 100%
      )
      border-box;
}

[data-theme="light"] .card__num {
  color: rgba(16, 30, 60, 0.055);
}

[data-theme="light"] .card:hover .card__num {
  color: rgba(79, 95, 224, 0.2);
}

[data-theme="light"] .card__icon {
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.16), rgba(36, 220, 255, 0.09));
}

[data-theme="light"] .card:hover .card__icon svg {
  color: var(--brand-600);
}

[data-theme="light"] .card__icon svg {
  color: var(--brand-600);
}

[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .btn--ghost:hover {
  background: #ffffff;
}

[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .marquee {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.02), transparent);
}

[data-theme="light"] .marquee__item svg {
  color: var(--brand-600);
}

[data-theme="light"] .about__photo::after {
  background: linear-gradient(180deg, rgba(79, 95, 224, 0.08), rgba(255, 255, 255, 0.42));
}

[data-theme="light"] .about__photo .scan {
  background: linear-gradient(180deg, transparent, rgba(3, 105, 161, 0.14), transparent);
  border-top-color: rgba(3, 105, 161, 0.45);
}

[data-theme="light"] .service__art {
  background: radial-gradient(120% 100% at 50% 0%, rgba(79, 95, 224, 0.12), transparent 70%);
}

[data-theme="light"] .service__art::after {
  background: linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, 0.6));
}

[data-theme="light"] .step.is-active {
  background: linear-gradient(100deg, rgba(79, 95, 224, 0.09), rgba(10, 18, 32, 0.012));
  border-color: rgba(79, 95, 224, 0.3);
}

[data-theme="light"] .step__idx {
  background: #ffffff;
}

[data-theme="light"] .quality {
  background: #ffffff;
}

[data-theme="light"] .quality:hover {
  background: linear-gradient(100deg, rgba(79, 95, 224, 0.09), #ffffff);
}

[data-theme="light"] .quality::before {
  background: rgba(10, 18, 32, 0.035);
}

[data-theme="light"] .radar-panel {
  background: radial-gradient(110% 100% at 50% 0%, rgba(79, 95, 224, 0.1), #ffffff);
}

[data-theme="light"] .radar__grid {
  stroke: rgba(10, 18, 32, 0.2);
}

[data-theme="light"] .contact__panel {
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.1), #ffffff 46%, rgba(36, 220, 255, 0.07));
}

[data-theme="light"] .contact__panel::before {
  background-image:
    linear-gradient(rgba(10, 18, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 18, 32, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .contact__card {
  background: #ffffff;
}

[data-theme="light"] .contact__card:hover {
  background: #ffffff;
}

[data-theme="light"] .contact__ico {
  color: var(--brand-600);
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(79, 95, 224, 0.07));
}

[data-theme="light"] .fab {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

[data-theme="light"] .fab--wa {
  color: #fff;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--glass);
  color: var(--text-soft);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast),
    transform var(--dur) var(--ease-spring);
}

.theme-toggle:hover {
  color: var(--cyan-300);
  border-color: rgba(109, 124, 255, 0.5);
  background: var(--glass-2);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .ico-sun {
  display: none;
}

.theme-toggle .ico-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .ico-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .ico-moon {
  display: none;
}

/* ==========================================================================
   22. ADAPTIVE CONTRAST & FORCED COLORS
   ========================================================================== */

/* Users who ask for more contrast get stronger rims and solid text */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(255, 255, 255, 0.22);
    --line-strong: rgba(255, 255, 255, 0.34);
    --muted: #c3cbe4;
    --muted-dim: #aab4cc;
    --text-soft: #eaeefb;
  }

  [data-theme="light"] {
    --line: rgba(10, 18, 32, 0.28);
    --line-strong: rgba(10, 18, 32, 0.42);
    --muted: #2a3752;
    --muted-dim: #35425e;
  }

  .card,
  .quality,
  .step,
  .contact__card,
  .acc__item {
    border-width: 2px;
  }

  .gradient-text,
  .stat__num {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
  }
}

/* Windows High Contrast / forced colors: drop decorative paint, keep structure */
@media (forced-colors: active) {
  .atmos,
  .grain,
  .vignette,
  .cursor-glow,
  .aurora,
  .grid-lines,
  .hero__canvas,
  .wheel__radar,
  .radar__sweep,
  .scroll-cue__bar::after,
  .pillar__glow {
    display: none !important;
  }

  .gradient-text,
  .stat__num {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: CanvasText !important;
  }

  .card,
  .quality,
  .step,
  .contact__card,
  .btn,
  .chip,
  .marquee,
  .contact__panel,
  .radar-panel {
    background: Canvas !important;
    border: 1px solid CanvasText !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .card::before,
  .card::after,
  .pillar__glow,
  .hero__orbit,
  .orbit-ring {
    display: none !important;
  }

  .dot-live {
    background: CanvasText !important;
    box-shadow: none !important;
  }

  .btn--primary {
    background: Highlight !important;
    color: HighlightText !important;
  }

  .step.is-active {
    border-color: Highlight !important;
  }
}

/* ==========================================================================
   23. VIEW TRANSITIONS (Baseline 2025) — premium page-to-page navigation
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ==========================================================================
   24. FORMS — the consultation request page
   ========================================================================== */

.form-shell {
  position: relative;
  padding: clamp(26px, 3.4vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.13), rgba(255, 255, 255, 0.022) 46%, rgba(36, 220, 255, 0.06));
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.form-shell::before {
  content: "";
  position: absolute;
  top: -38%;
  right: -16%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 220, 255, 0.22), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}

.form {
  position: relative;
  z-index: 2;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.form__field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.form__label .req {
  color: var(--cyan-300);
  margin-inline-start: 3px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 17px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: rgba(4, 8, 18, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  appearance: none;
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2398a4c0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  padding-inline-end: 44px;
  cursor: pointer;
}

.form__select option {
  background: var(--ink-800);
  color: var(--text);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--muted-dim);
  opacity: 1;
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
  border-color: rgba(109, 124, 255, 0.42);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  background: rgba(4, 8, 18, 0.75);
  border-color: rgba(109, 124, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(79, 95, 224, 0.25);
}

/* Invalid state only after the visitor has interacted (JS adds .is-touched) */
.form__field.is-invalid .form__input,
.form__field.is-invalid .form__select,
.form__field.is-invalid .form__textarea {
  border-color: rgba(255, 106, 106, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 106, 106, 0.16);
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #ff9d9d;
}

.form__field.is-invalid .form__error {
  display: block;
}

/* --- Consent checkbox ------------------------------------------------- */

.form__check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.form__check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(4, 8, 18, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.form__check input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur) var(--ease-spring);
  margin-top: -2px;
}

.form__check input:checked {
  background: linear-gradient(140deg, var(--brand-500), var(--cyan-500));
  border-color: transparent;
}

.form__check input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.form__check input:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.form__field.is-invalid .form__check input {
  border-color: rgba(255, 106, 106, 0.8);
}

/* --- Honeypot: hidden from people, tempting to bots ------------------- */

.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- Actions & badges ------------------------------------------------- */

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: clamp(22px, 2.6vw, 32px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.form__actions .btn {
  min-width: 210px;
}

.form__privacy {
  font-size: 0.82rem;
  color: var(--muted-dim);
  max-width: 40ch;
}

/* Button busy state */
.btn.is-busy {
  pointer-events: none;
  opacity: 0.75;
}

.btn.is-busy::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-inline-start: 4px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-slow 0.7s linear infinite;
}

/* --- Alerts ----------------------------------------------------------- */

.form__alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: clamp(22px, 2.6vw, 30px);
  padding: 18px 22px;
  border-radius: var(--r-md);
  font-size: 0.94rem;
  line-height: 1.6;
}

.form__alert svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form__alert--ok {
  border: 1px solid rgba(46, 230, 168, 0.4);
  background: rgba(46, 230, 168, 0.1);
  color: #b8f5dd;
}

.form__alert--ok svg {
  color: var(--mint-400);
}

.form__alert--error {
  border: 1px solid rgba(255, 106, 106, 0.42);
  background: rgba(255, 106, 106, 0.1);
  color: #ffc9c9;
}

.form__alert--error svg {
  color: #ff8f8f;
}

/* Informational: a local preview cannot send mail. This is not an error the
   visitor caused, so it must not be dressed as one. */
.form__alert--info {
  border: 1px solid rgba(109, 124, 255, 0.42);
  background: rgba(79, 95, 224, 0.12);
  color: var(--text-soft);
}

.form__alert--info svg {
  color: var(--brand-300);
}

.form__alert--info strong {
  color: var(--text);
}

.form__alert .btn {
  margin-top: 14px;
}

.form__alert strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-family: var(--font-display);
}

/* --- Aside panel beside the form ------------------------------------- */

.form-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.form-aside__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out);
}

.form-aside__item:hover {
  border-color: rgba(109, 124, 255, 0.38);
  transform: translateY(-2px);
}

.form-aside__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(79, 95, 224, 0.36), rgba(36, 220, 255, 0.14));
  color: var(--cyan-300);
}

.form-aside__ico svg {
  width: 20px;
  height: 20px;
}

.form-aside__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 3px;
}

.form-aside__item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.form-aside__item a {
  color: var(--cyan-300);
}

.form-aside__item a:hover {
  color: var(--text);
}

.form-steps {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.form-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.form-step__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brand-300);
}

/* --- Layout: form + aside -------------------------------------------- */

.consulta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 48px);
  align-items: start;
}

@media (max-width: 1000px) {
  .consulta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form__actions .btn {
    width: 100%;
  }
  .form__privacy {
    max-width: none;
  }
}

/* ==========================================================================
   25. LIGHT THEME — forms
   ========================================================================== */

[data-theme="light"] .form-shell {
  background: linear-gradient(150deg, rgba(79, 95, 224, 0.08), #ffffff 46%, rgba(36, 220, 255, 0.05));
}

[data-theme="light"] .form__input,
[data-theme="light"] .form__select,
[data-theme="light"] .form__textarea,
[data-theme="light"] .form__check input {
  background: #ffffff;
}

[data-theme="light"] .form__input:focus,
[data-theme="light"] .form__select:focus,
[data-theme="light"] .form__textarea:focus {
  background: #ffffff;
}

[data-theme="light"] .form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234d5a75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="light"] .form__alert--ok {
  color: #0a6b4c;
}

[data-theme="light"] .form__alert--error {
  color: #a02121;
}

[data-theme="light"] .form__alert--info {
  color: #2a3752;
}

[data-theme="light"] .form-step__n {
  background: rgba(10, 18, 32, 0.035);
}

@media (forced-colors: active) {
  .form__input,
  .form__select,
  .form__textarea,
  .form__check input,
  .form-shell,
  .form-aside__item {
    background: Canvas !important;
    border: 1px solid CanvasText !important;
    color: CanvasText !important;
  }
  .form__alert {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
  }
}
