/* ==========================================================================
   BLACK DIAMOND — Sitio corporativo
   Todos los colores, tipografías y medidas de marca viven en :root.
   Para aplicar la identidad oficial basta con ajustar estos tokens.
   ========================================================================== */

:root {
  /* Marca */
  --bg: #07080a;
  --bg-2: #0c0e12;
  --surface: #111419;
  --surface-2: #161a21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f3f6;
  --muted: #8b919c;
  --dim: #5a606b;

  --ice: #8fd3ff;        /* acento principal */
  --violet: #b49bff;     /* acento secundario */
  --frost: #e9f6ff;
  --ok: #5ee6a8;
  --warn: #ffcf6b;

  --gem: linear-gradient(115deg, var(--frost) 0%, var(--ice) 35%, var(--violet) 70%, var(--frost) 100%);

  /* Tipografía */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ice); color: var(--bg); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 6px; }

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

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.text-gem {
  background: var(--gem);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gemShift 6s linear infinite;
}
.text-gem .char { background: inherit; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: inherit; }
@keyframes gemShift { to { background-position: -200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h2 .serif { color: var(--ice); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 8vw, 100px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
.section-head__aside { color: var(--muted); max-width: 380px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }

.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary::before { background: var(--gem); background-size: 200% 100%; animation: gemShift 4s linear infinite; }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }

.btn--small { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Preloader (terminal de compilación) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  clip-path: inset(0 0 0 0);
  display: grid; place-items: center; align-content: center; gap: 32px;
  padding: 24px var(--gutter);
  background: radial-gradient(900px circle at 50% 45%, rgba(143,211,255,.07), transparent 60%), var(--bg);
  overflow: hidden;
}
html:not(.js) .loader { display: none; }
.loader__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}
.loader__term {
  position: relative; z-index: 1;
  width: min(620px, 100%);
  border-radius: 16px;
  background: rgba(13, 15, 19, .9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px rgba(143,211,255,.25), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: auto; margin-right: auto; padding-right: 50px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.term__body {
  margin: 0; padding: 18px 20px 22px;
  min-height: 252px;
  font-family: var(--font-mono); font-size: clamp(11px, 1.35vw, 13.5px); line-height: 1.7;
  color: #c9d1dc; white-space: pre-wrap; word-break: break-word;
}
.term__body .ln { display: inline-block; width: 2.2em; color: #3b414c; user-select: none; }
.tk-p { color: var(--ok); } .tk-k { color: var(--violet); } .tk-s { color: #9fe3c4; }
.tk-f { color: var(--ice); } .tk-n { color: #ffb38a; } .tk-c { color: #5a606b; font-style: italic; }
.tk-ok { color: var(--ok); font-weight: 500; } .tk-gem { color: var(--frost); }
.caret { display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--ice); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.loader__brand { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(420px, 72vw); translate: -50% -50%; opacity: 0; }
.loader__brand img { width: 100%; height: auto; }
.loader__shine, .logo__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, var(--ice) 45%, #fff 50%, var(--violet) 55%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url("../assets/logo-lockup.png") center / 100% 100% no-repeat; mask: url("../assets/logo-lockup.png") center / 100% 100% no-repeat;
}
.loader__foot {
  position: relative; z-index: 1;
  width: min(620px, 100%);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.loader__count { font-family: var(--font-sans); font-size: clamp(40px, 6vw, 64px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; text-transform: none; }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--gem); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ice); background: rgba(143, 211, 255, .08); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--text); border-color: var(--text); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { transform-origin: center; scale: .8; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}

/* ---------- Ambient ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 100%; height: 2px;
  background: var(--gem);
  transform-origin: left; transform: scaleX(0);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: var(--nav-h);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 8, 10, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { position: relative; display: inline-flex; align-items: center; }
.logo__img { height: 26px; width: auto; transition: opacity .4s; }
@media (min-width: 980px) { .logo__img { height: 30px; } }
.logo__shine { transition: background-position 0s; }
.logo:hover .logo__shine { background-position: -50% 0; transition: background-position 1.1s var(--ease); }

.nav__links { display: none; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.nav__links a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background-color .3s; font-variant-numeric: tabular-nums; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }

.nav__cta { display: none; }

.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 50%; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 980px) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(7,8,10,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; align-items: center;
  padding: var(--nav-h) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu__links { display: grid; gap: 6px; }
.mobile-menu__links a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(40px, 11vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobile-menu__links i { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--ice); letter-spacing: .1em; }

/* ---------- Split text ---------- */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -20vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(143,211,255,.14), rgba(180,155,255,.08) 45%, transparent 70%);
  filter: blur(20px);
}
.hero__content { position: relative; z-index: 2; align-self: end; padding-bottom: clamp(28px, 5vh, 56px); pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { margin-bottom: 28px; color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94,230,168,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(94,230,168,0); } }

.hero__title {
  font-size: clamp(56px, 12.5vw, 196px);
  line-height: .9;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__title .serif { letter-spacing: -0.03em; padding-right: .04em; }

.hero__bottom { display: grid; gap: 28px; }
.hero__lead { max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
}

.hero__meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.hero__meta > span:first-child, .hero__meta > span:last-child { display: none; }
@media (min-width: 700px) { .hero__meta > span:first-child, .hero__meta > span:last-child { display: inline; } }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; margin-inline: auto; }
@media (min-width: 700px) { .hero__scroll { margin: 0; } }
.hero__scroll i { position: relative; width: 1px; height: 28px; background: var(--line-strong); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ice); animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee {
  padding-block: clamp(48px, 7vw, 90px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(143,211,255,.025), transparent);
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); will-change: transform; }
.marquee__track span { font-size: clamp(38px, 7vw, 104px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.marquee__track b { font-size: clamp(16px, 2vw, 26px); color: var(--ice); font-weight: 400; }
.marquee__row--outline span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee__row--outline span:hover { color: var(--text); }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(110px, 18vw, 240px); display: grid; gap: 40px; }
.manifesto__text {
  font-size: clamp(30px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 1150px;
}
.manifesto__text .word { opacity: .14; transition: none; }
html:not(.js) .manifesto__text .word { opacity: 1; }
.manifesto__foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.manifesto__sig { font-size: 28px; color: var(--ice); }

/* ---------- Pillars (horizontal) ---------- */
.pillars { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 100px); }
.pillars__head { display: grid; gap: 22px; align-content: center; padding-bottom: 20px; }
.pillars__hint { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pillars__hint span { display: inline-block; color: var(--ice); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.pillars__viewport { overflow: hidden; }
.pillars__track {
  display: grid; gap: 16px;
  padding-inline: var(--gutter);
}
.pillar {
  position: relative;
  min-height: 460px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2) 60%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color .5s var(--ease);
}
.pillar:hover { border-color: rgba(143,211,255,.35); }
.pillar__glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(143,211,255,.14), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.pillar:hover .pillar__glare { opacity: 1; }
.pillar > *:not(.pillar__glare) { position: relative; z-index: 1; }
.pillar__num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.pillar__icon {
  width: 72px; height: 72px; margin-block: 36px 40px;
  display: grid; place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 20%, rgba(143,211,255,.18), transparent 70%);
  transform: translateZ(40px);
}
.pillar__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.05; margin-bottom: 14px; transform: translateZ(30px); }
.pillar p { color: var(--muted); margin-bottom: 28px; }
.pillar__list { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar__list li { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #c9ced6; }
.pillar--end { justify-content: center; align-items: flex-start; gap: 28px; background: transparent; border-style: dashed; }
.pillar--end p { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; color: var(--text); }

.pillars__progress { display: none; margin-top: 40px; }
.pillars__progress span { display: block; height: 1px; background: var(--line-strong); position: relative; }
.pillars__progress span::after { content: ""; position: absolute; inset: 0; background: var(--gem); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (min-width: 700px) {
  .pillars__track { grid-template-columns: repeat(2, 1fr); }
  .pillars__head { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .pillars { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 10px) 40px; }
  .pillars__track { display: flex; align-items: stretch; gap: 22px; width: max-content; padding-inline: var(--gutter) 10vw; }
  .pillars__head { width: clamp(420px, 38vw, 620px); flex-shrink: 0; padding-right: 4vw; }
  .pillars__hint { display: block; margin-top: 12px; }
  .pillar { width: clamp(360px, 30vw, 440px); min-height: min(64vh, 560px); flex-shrink: 0; }
  .pillar--end { width: clamp(340px, 28vw, 420px); }
  .pillars__progress { display: block; }
}

/* ---------- Bento / Solutions ---------- */
.solutions { padding-block: clamp(100px, 14vw, 180px); }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--bi { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); }
  .card--bi { grid-column: span 2; }
  .card--chat { grid-row: span 2; grid-column: 3; grid-row-start: 1; }
  .card--web { grid-column: span 3; }
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 30px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, -100%) var(--my, -100%), rgba(143,211,255,.12), transparent 40%);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, -100%) var(--my, -100%), rgba(143,211,255,.55), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card__text { display: grid; gap: 14px; justify-items: start; max-width: 520px; }
.card h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.card p { color: var(--muted); }

.ui { position: relative; margin-top: auto; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 12px; }

/* BI */
.card--bi { display: grid; gap: 28px; }
@media (min-width: 1100px) { .card--bi { grid-template-columns: .8fr 1.2fr; align-items: end; } }
.ui--bi { padding: 18px; }
.ui__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ui__kpis div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.ui__kpis small { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__kpis strong { font-size: clamp(15px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__kpis em { font-style: normal; font-size: 10px; }
.up { color: var(--ok); }
.ui__chart { position: relative; height: 150px; }
.ui__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6%; padding-inline: 2%; }
.ui__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(143,211,255,.55), rgba(143,211,255,.05)); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.is-inview .ui__bars i { transform: scaleY(1); }
.ui__bars i:nth-child(1) { transition-delay: .00s; } .ui__bars i:nth-child(2) { transition-delay: .05s; }
.ui__bars i:nth-child(3) { transition-delay: .10s; } .ui__bars i:nth-child(4) { transition-delay: .15s; }
.ui__bars i:nth-child(5) { transition-delay: .20s; } .ui__bars i:nth-child(6) { transition-delay: .25s; }
.ui__bars i:nth-child(7) { transition-delay: .30s; } .ui__bars i:nth-child(8) { transition-delay: .35s; }
.ui__bars i:nth-child(9) { transition-delay: .40s; } .ui__bars i:nth-child(10) { transition-delay: .45s; }
.ui__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ui__line path { fill: none; stroke: var(--violet); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .5s; filter: drop-shadow(0 0 8px rgba(180,155,255,.6)); }
.is-inview .ui__line path { stroke-dashoffset: 0; }

/* Chat */
.card--chat .ui { min-height: 360px; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 13px; font-weight: 600; }
.chat__head small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chat__head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--gem); color: var(--bg); font-size: 14px; }
.chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; overflow: hidden; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; line-height: 1.4; font-size: 13px; animation: msgIn .6s var(--ease) both; }
.msg--user { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Table */
.ui--table { padding: 8px; }
.row { display: grid; grid-template-columns: .8fr 1.4fr 1fr; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .3s; }
.row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row:not(.row--head):hover { background: rgba(255,255,255,.04); }
.row--head { color: var(--dim); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.is-inview .row { opacity: 1; transform: none; }
.is-inview .row:nth-child(2) { transition-delay: .1s; } .is-inview .row:nth-child(3) { transition-delay: .2s; }
.is-inview .row:nth-child(4) { transition-delay: .3s; } .is-inview .row:nth-child(5) { transition-delay: .4s; }
.pill { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11px; }
.pill--ok { color: var(--ok); background: rgba(94,230,168,.1); }
.pill--run { color: var(--ice); background: rgba(143,211,255,.1); }
.pill--wait { color: var(--warn); background: rgba(255,207,107,.1); }

/* Flow */
.ui--flow { height: 170px; overflow: hidden; }
.ui--flow svg { position: absolute; left: 50%; top: 50%; width: 320px; height: 150px; transform: translate(-50%, -50%); overflow: visible; }
.flow__link { fill: none; stroke: rgba(143,211,255,.45); stroke-width: 1.4; stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(calc(var(--x) - 160px - 50%), calc(var(--y) - 75px - 50%));
  padding: 6px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px;
}
.node--core { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 14px; background: var(--gem); color: var(--bg); font-size: 18px; border: 0; box-shadow: 0 0 40px rgba(143,211,255,.45); animation: coreGlow 2.4s ease-in-out infinite; }
@keyframes coreGlow { 50% { box-shadow: 0 0 70px rgba(180,155,255,.6); } }

/* Browser */
.card--web { display: grid; gap: 28px; }
@media (min-width: 900px) { .card--web { grid-template-columns: .8fr 1.2fr; align-items: center; } }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__bar span { margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.browser__body { position: relative; padding: 16px; display: grid; gap: 10px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: shimmer 2.2s infinite linear; height: 54px; }
.sk--hero { height: 110px; background-image: linear-gradient(120deg, rgba(143,211,255,.12), rgba(180,155,255,.12)); animation: none; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.browser__score {
  position: absolute; right: 26px; top: 30px;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--ok) calc(var(--score, 0) * 1%), rgba(255,255,255,.08) 0);
}
.browser__score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-2); }
.browser__score b, .browser__score small { position: relative; }
.browser__score b { font-size: 26px; color: var(--ok); line-height: 1; font-variant-numeric: tabular-nums; }
.browser__score small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Catalog ---------- */
.catalog { position: relative; padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
.catalog__list { border-top: 1px solid var(--line); }
.catalog__item {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.catalog__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, hsla(var(--hue, 200), 90%, 70%, .10), transparent 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.catalog__idx { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.catalog__name { font-size: clamp(22px, 3.4vw, 46px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.1; transition: transform .6s var(--ease), color .4s; }
.catalog__tag { display: none; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.catalog__arrow { font-size: 24px; color: var(--muted); transition: transform .6s var(--ease), color .4s; }
.catalog__desc { grid-column: 2 / -1; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .catalog__item { grid-template-columns: 70px 1fr 140px 40px; padding: 26px 8px; }
  .catalog__tag { display: block; }
  .catalog__desc { display: none; }
}
@media (hover: hover) {
  .catalog__item:hover::before { transform: scaleY(1); }
  .catalog__item:hover .catalog__name { transform: translateX(18px); color: hsl(var(--hue, 200), 90%, 82%); }
  .catalog__item:hover .catalog__arrow { transform: translateX(-6px) rotate(-45deg); color: var(--text); }
}
.catalog__preview {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 300px; height: 210px; margin: -105px 0 0 -150px;
  border-radius: 20px; overflow: hidden;
  opacity: 0; scale: .6;
  transition: opacity .35s var(--ease), scale .5s var(--ease);
}
.catalog__preview.is-visible { opacity: 1; scale: 1; }
@media (hover: none), (max-width: 899px) { .catalog__preview { display: none; } }
.catalog__preview-inner {
  position: absolute; inset: 0;
  display: grid; align-content: space-between; padding: 22px;
  background:
    radial-gradient(circle at 80% 10%, hsla(var(--hue, 200), 95%, 75%, .55), transparent 55%),
    radial-gradient(circle at 10% 100%, hsla(calc(var(--hue, 200) + 60), 90%, 70%, .35), transparent 60%),
    #0f1218;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: inherit;
  transition: background .5s;
}
.catalog__preview svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; animation: spinGem 8s linear infinite; }
@keyframes spinGem { to { transform: rotateY(360deg); } }
.catalog__preview p { font-size: 15px; line-height: 1.35; color: #fff; }

/* ---------- Process ---------- */
.process { padding-block: clamp(100px, 14vw, 180px); }
.process__wrap { position: relative; padding-left: 44px; }
@media (min-width: 900px) { .process__wrap { padding-left: 0; } }
.process__line { position: absolute; left: 11px; top: 0; width: 4px; height: 100%; overflow: visible; }
@media (min-width: 900px) { .process__line { left: 50%; margin-left: -2px; } }
.process__track { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.process__fill { stroke: var(--ice); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(143,211,255,.8)); }
.process__steps { display: grid; gap: clamp(60px, 9vw, 120px); }
.step { position: relative; display: grid; gap: 10px; opacity: .3; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__dot { position: absolute; left: -38px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.step.is-active .step__dot { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 0 6px rgba(143,211,255,.15), 0 0 24px rgba(143,211,255,.8); }
.step__num { font-family: var(--font-serif); font-style: italic; font-size: clamp(64px, 8vw, 120px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: -webkit-text-stroke-color .5s; }
.step.is-active .step__num { -webkit-text-stroke-color: var(--ice); }
.step h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 440px; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr 1fr; gap: 0 120px; align-items: start; }
  .step__dot { left: 50%; margin-left: -6px; top: 16px; }
  .step__num { justify-self: end; }
  .step:nth-child(even) .step__num { order: 2; justify-self: start; }
  .step:nth-child(even) > div { order: 1; text-align: right; justify-self: end; }
  .step:nth-child(even) p { margin-left: auto; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: clamp(100px, 14vw, 180px); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.stat strong { font-size: clamp(48px, 6vw, 88px); font-weight: 400; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat sup { font-size: .35em; color: var(--ice); vertical-align: top; position: relative; top: .3em; margin-left: 4px; letter-spacing: 0; }
.stat p { color: var(--muted); font-size: 14px; max-width: 220px; }

/* ---------- Contact ---------- */
.contact { position: relative; padding-block: clamp(100px, 14vw, 180px); overflow: hidden; border-top: 1px solid var(--line); }
.contact__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px circle at var(--cx, 20%) var(--cy, 30%), rgba(143,211,255,.12), transparent 50%),
    radial-gradient(600px circle at 90% 90%, rgba(180,155,255,.10), transparent 60%);
  transition: background .2s;
}
.contact__grid { display: grid; gap: 60px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.contact__title { font-size: clamp(56px, 9vw, 140px); line-height: .92; letter-spacing: -0.055em; font-weight: 500; margin: 22px 0 30px; }
.contact__lead { color: var(--muted); max-width: 440px; font-size: 17px; margin-bottom: 40px; }
.contact__info { display: grid; gap: 22px; }
.contact__info li { display: grid; gap: 4px; }
.contact__info small { font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.contact__info a, .contact__info span { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.02em; }
.contact__info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact__info a:hover { background-size: 100% 1px; }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.form {
  display: grid; gap: 22px;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 28px;
  background: rgba(17, 20, 25, .7);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 26px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 17px;
  outline: none; resize: vertical;
  transition: border-color .4s;
}
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transform-origin: left; transition: transform .45s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); color: var(--ice); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gem); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a8a; }
.field.is-invalid label { color: #ff7a8a; }
.field textarea { min-height: 110px; }

.chips { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: #c9ced6; transition: all .35s var(--ease); }
.chips label:hover span { border-color: var(--ice); }
.chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }

.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: #ff7a8a; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
@media (min-width: 800px) { .footer__top { grid-template-columns: repeat(3, 1fr) auto; } }
.footer__col { display: grid; gap: 10px; justify-items: start; }
.footer__col .eyebrow { margin-bottom: 8px; }
.footer__col a { color: #c9ced6; transition: color .3s, transform .4s var(--ease); }
.footer__col a:hover { color: var(--ice); transform: translateX(4px); }
.footer__top-btn { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .4s, color .4s; }
.footer__top-btn:hover { background: var(--text); color: var(--bg); }
.footer__top-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer__brand {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  width: 100%; aspect-ratio: 2400 / 324;
  background:
    radial-gradient(520px circle at var(--fx, 50%) var(--fy, 50%), var(--frost), var(--ice) 22%, var(--violet) 42%, transparent 62%),
    linear-gradient(#2b313c, #2b313c);
  -webkit-mask: url("../assets/logo-full.png") center / contain no-repeat; mask: url("../assets/logo-full.png") center / contain no-repeat;
  user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--line); margin-top: 20px; font-size: 13px; color: var(--dim); }

/* ---------- Generic reveal (initial state set by JS) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); }
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
