/* ==========================================================================
   Klausten.Ar — sistema visual
   Negro / blanco / gris con rojo como acento. Geist + Geist Mono.
   ========================================================================== */

:root {
  color-scheme: dark;
  --black: #09090a;
  --ink: #0e0f11;
  --graphite: #16171a;
  --line: #24262a;
  --line-soft: #1b1c1f;
  --mute: #868a91;
  --soft: #b8bbc1;
  --white: #f3f3f1;
  --paper: #f6f6f4;
  --paper-line: #dcdcd8;
  --paper-mute: #5d6066;
  --red: #e3262e;
  --red-deep: #b0141b;
  --red-glow: rgba(227, 38, 46, .18);

  --font: "Geist", "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.red { color: var(--red); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--red); }
.eyebrow .dot { display: none; }
.h2 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.02; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--soft); max-width: 46ch; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 34px; font-size: 16px; }
.link { display: inline-flex; gap: 8px; color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 2px; font-size: 15px; }
.link:hover { color: var(--red); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(9, 9, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.brand__mark { width: 14px; height: 14px; background: var(--red); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 4px 4px 4px 4px; background: var(--black); }
.brand__tld { color: var(--red); }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--soft); }
.nav__links a { position: relative; padding: 6px 0; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--red); transition: right .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--black);
  display: flex; flex-direction: column; padding: 32px var(--gutter); gap: 4px;
}
.mobile-menu a:not(.btn) { font-size: 32px; font-weight: 500; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 28px; }

/* ---------- Language switch ---------- */
.lang { display: flex; border: 1px solid var(--line); margin-left: 4px; }
.lang button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 7px 10px; color: var(--mute); transition: color .25s, background .25s; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--white); }
.lang button.is-active { background: var(--white); color: var(--black); }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; flex-direction: row-reverse; gap: 10px;
}
.wa svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .3s var(--ease), background .3s; }
.wa:hover svg { transform: scale(1.06); background: #1ebe5b; }
.wa__label { font-size: 13px; font-weight: 500; background: var(--white); color: var(--black); padding: 8px 12px; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); white-space: nowrap; }
.wa:hover .wa__label, .wa:focus-visible .wa__label { opacity: 1; transform: none; }
.wa-inline { display: inline-flex; align-items: center; gap: 10px; }
.wa-inline svg { width: 18px; height: 18px; color: #25d366; }
.wa-inline:hover { color: #25d366; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(72px + clamp(72px, 12vw, 150px)); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 65%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 65%);
}
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(72px, 10vw, 128px); }
.hero .eyebrow { margin-bottom: 36px; }
.hero__title { font-size: clamp(44px, 8.4vw, 124px); line-height: .96; letter-spacing: -.045em; font-weight: 600; max-width: 13ch; }
.hero__title .line { display: block; }
.hero__title .line--mute { color: #5e6168; }
.hero__sub { margin-top: 36px; font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; letter-spacing: -.01em; max-width: 36ch; }
.hero__text { margin-top: 16px; color: var(--mute); max-width: 52ch; font-size: 16px; }
.hero__ctas { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .line { animation: heroIn 1.1s var(--ease) both; }
.hero .line--mute { animation-delay: .12s; }
.hero__sub, .hero__text, .hero__ctas { animation: heroIn 1.1s var(--ease) both; animation-delay: .25s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.ticker { position: relative; z-index: 1; border-top: 1px solid var(--line-soft); overflow: hidden; background: rgba(9,9,10,.6); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 18px 28px; position: relative; white-space: nowrap; }
.ticker span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; background: var(--red); transform: translateY(-50%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-bottom: 1px solid var(--line-soft); }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); }
.section__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }

/* reveal: visible at rest, animates when it enters the viewport */
.reveal.in { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Value ---------- */
.equation { font-size: clamp(34px, 6.6vw, 96px); line-height: 1; letter-spacing: -.045em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .32em; }
.equation i { font-style: normal; color: var(--red); font-weight: 300; }
.value__grid { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value__item { padding: 28px 28px 0 0; }
.value__item + .value__item { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.value__item h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.value__item p { color: var(--mute); font-size: 15px; }
.stats { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.stat__num { font-size: clamp(52px, 6vw, 84px); font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num::before { content: "0"; color: var(--line); }
.stat__label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); max-width: 18ch; }

/* ---------- Solutions ---------- */
.sol-list { border-top: 1px solid var(--line); }
.sol {
  display: grid; grid-template-columns: minmax(240px, 1.1fr) 1fr 1.4fr; gap: 40px;
  padding: 44px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: background .4s var(--ease);
}
.sol::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--red); transition: width .7s var(--ease); }
.sol:hover::before { width: 100%; }
.sol__head { display: flex; flex-direction: column; gap: 18px; }
.sol__code { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.sol h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.sol__desc { color: var(--soft); font-size: 16px; max-width: 34ch; }
.sol__caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.sol__caps li { font-size: 14px; color: var(--mute); padding: 9px 0; border-bottom: 1px solid var(--line-soft); transition: color .25s, padding-left .3s var(--ease); }
.sol:hover .sol__caps li { color: var(--soft); }
.sol__caps li:hover { color: var(--white); padding-left: 6px; }
.sol--ai .link { grid-column: 2 / 3; justify-self: start; align-self: start; margin-top: -8px; }

/* ---------- Ecosystem ---------- */
.eco { background: var(--ink); }
.eco__tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-bottom: 28px; }
.eco__tab { padding: 12px 20px; font-size: 14px; color: var(--mute); border-right: 1px solid var(--line); transition: color .25s, background .25s; }
.eco__tab:last-child { border-right: 0; }
.eco__tab:hover { color: var(--white); }
.eco__tab.is-active { background: var(--white); color: var(--black); }
.eco__stage { display: grid; grid-template-columns: 1fr 340px; border: 1px solid var(--line); background: var(--black); }
.eco__diagram { min-height: 460px; position: relative; }
.eco__diagram svg { width: 100%; height: 100%; }
.eco__panel { border-left: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.eco__kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eco__title { font-size: 26px; }
.eco__desc { color: var(--soft); font-size: 15px; min-height: 4.5em; }
.eco__log { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.eco__loghead { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.eco__log ol { font-size: 12px; line-height: 1.5; min-height: 150px; }
.eco__log li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 4px 0; color: var(--soft); animation: logIn .5s var(--ease) both; }
.eco__log li time { color: #5e6168; font-variant-numeric: tabular-nums; }
.eco__log li b { color: var(--red); font-weight: 400; }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.eco-svg .edge { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke .5s, opacity .5s; }
.eco-svg .edge.on { stroke: rgba(227, 38, 46, .55); }
.eco-svg .edge.off { opacity: .45; }
.eco-svg .node rect { fill: var(--graphite); stroke: var(--line); transition: stroke .4s, fill .4s; }
.eco-svg .node.on rect { stroke: var(--red); fill: #1c1011; }
.eco-svg .node text { fill: var(--mute); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; transition: fill .4s; }
.eco-svg .node.on text { fill: var(--white); }
.eco-svg .group { fill: #5e6168; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.eco-svg .hub circle.core { fill: var(--red); }
.eco-svg .hub circle.ring { fill: none; stroke: var(--red); stroke-opacity: .5; }
.eco-svg .hub circle.pulse { fill: none; stroke: var(--red); animation: pulse 2.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.eco-svg .hub text { fill: var(--white); font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.eco-svg .hub text.group { fill: #5e6168; font-family: var(--mono); font-weight: 400; font-size: 10px; }
.eco-svg .packet { fill: var(--red); }
.eco-svg .packet.back { fill: var(--white); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- AI ---------- */
.ai__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.ai__quote { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.04em; margin-bottom: 32px; }
.pipeline { border: 1px solid var(--line); padding: 28px; background: var(--ink); }
.pipeline__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.pipeline__steps { position: relative; }
.pipeline__steps::before { content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.pipeline__steps li { position: relative; display: flex; align-items: center; gap: 18px; padding: 10px 0; font-size: 15px; color: var(--soft); }
.pipeline__steps li span { width: 44px; flex: none; text-align: center; font-size: 10px; letter-spacing: .06em; padding: 5px 0; background: var(--graphite); border: 1px solid var(--line); color: var(--mute); position: relative; z-index: 1; transition: all .35s var(--ease); }
.pipeline__steps li.is-on span { background: var(--red); border-color: var(--red); color: #fff; }
.pipeline__steps li.is-on { color: var(--white); }
.ai__uses { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.use { padding: 28px 24px 32px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transition: background .35s var(--ease); }
.use:hover { background: var(--ink); }
.use h3 { font-size: 17px; margin-bottom: 8px; }
.use p { color: var(--mute); font-size: 14px; }
.use:hover h3::before { width: 14px; }
.use h3::before { content: ""; display: inline-block; vertical-align: middle; width: 6px; height: 1px; background: var(--red); margin-right: 10px; transition: width .35s var(--ease); }

/* ---------- Industries (light) ---------- */
.light { background: var(--paper); color: var(--black); border-bottom-color: var(--paper-line); }
.light .eyebrow { color: var(--paper-mute); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); }
.ind { padding: 28px 28px 36px 0; display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .45s var(--ease), color .45s var(--ease); }
.ind + .ind { padding-left: 28px; border-left: 1px solid var(--paper-line); }
.ind:first-child { padding-left: 0; }
.ind__code { font-size: 12px; color: var(--red); letter-spacing: .1em; }
.ind h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; margin-top: 28px; }
.ind p { color: var(--paper-mute); font-size: 15px; transition: color .45s; }
.ind ul { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ind li { border: 1px solid var(--paper-line); padding: 5px 8px; transition: border-color .45s; }
@media (hover: hover) {
  .ind:hover { background: var(--black); color: var(--white); padding-left: 28px; }
  .ind:hover p { color: var(--mute); }
  .ind:hover li { border-color: var(--line); }
  .ind::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .6s var(--ease); }
  .ind:hover::after { width: 100%; }
}

/* ---------- Differential ---------- */
.diff__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.diff__copy .lead { margin-top: 28px; }
.diff__note { margin-top: 28px; color: var(--mute); font-size: 15px; max-width: 44ch; padding-left: 16px; border-left: 1px solid var(--red); }
.chain { display: flex; flex-direction: column; }
.chain__step { position: relative; }
.chain__step + .chain__step { margin-top: 28px; }
.chain__step + .chain__step::before { content: ""; position: absolute; left: 27px; top: -28px; height: 28px; width: 1px; background: var(--line); }
.chain__step + .chain__step::after { content: ""; position: absolute; left: 25px; top: -28px; width: 5px; height: 5px; background: var(--red); opacity: 0; }
.chain__step.is-active + .chain__step::after { animation: drop .9s var(--ease) both; }
@keyframes drop { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(24px); } }
.chain__step button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: center;
  padding: 0; color: var(--mute);
}
.chain__step span { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 12px; transition: all .4s var(--ease); }
.chain__step strong { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; transition: color .4s; }
.chain__step em { font-style: normal; font-size: 14px; color: var(--mute); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s; }
.chain__step.is-active span { background: var(--red); border-color: var(--red); color: #fff; }
.chain__step.is-active strong, .chain__step button:hover strong { color: var(--white); }
.chain__step.is-active em { max-height: 3em; opacity: 1; margin-top: 4px; }

/* ---------- Method ---------- */
.method { background: var(--ink); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps__bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps__bar span { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--red); }
.step { padding: 36px 32px 0 0; }
.step + .step { padding-left: 32px; }
.step__num { display: block; font-size: 13px; color: var(--red); margin-bottom: 48px; }
.step h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; margin-bottom: 12px; }
.step p { color: var(--soft); font-size: 15px; max-width: 26ch; }
.step small { display: block; margin-top: 24px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

/* ---------- Tech ---------- */
.tech__layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; }
.tech__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.tile { background: var(--black); padding: 20px 16px 22px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: background .35s var(--ease); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); transform: translateX(-100%); }
.tile.scan::before { animation: scan 1.4s var(--ease); }
@keyframes scan { to { transform: translateX(100%); } }
.tile__k { font-size: 11px; color: var(--red); }
.tile strong { font-size: 14px; font-weight: 600; letter-spacing: -.015em; margin-top: auto; }
.tile p { font-size: 13px; color: var(--mute); line-height: 1.4; max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .4s; }
.tile:hover { background: var(--ink); }
.tile:hover p, .tile:focus-within p { max-height: 4.2em; opacity: 1; }
@media (hover: none) { .tile p { max-height: none; opacity: 1; } }
.term { border: 1px solid var(--line); background: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term__bar span { width: 8px; height: 8px; background: var(--line); }
.term__bar span:first-child { background: var(--red); }
.term__bar em { font-style: normal; margin-left: auto; font-size: 11px; color: var(--mute); }
.term pre { margin: 0; padding: 18px; font-size: 12px; line-height: 1.65; color: var(--soft); white-space: pre; overflow-x: auto; flex: 1; min-height: 300px; }
.term .k { color: var(--red); }
.term .s { color: var(--white); }
.term .c { color: #5e6168; }
.term .caret { display: inline-block; width: 7px; height: 13px; background: var(--red); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(96px, 14vw, 200px); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -10%; top: 50%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; transform: translateY(-50%); background: radial-gradient(circle, var(--red-glow), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 48px; }
.cta__title { font-size: clamp(40px, 7.4vw, 112px); line-height: .98; letter-spacing: -.045em; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.contact .lead { margin-top: 24px; }
.contact__meta { margin: 48px 0 0; display: grid; gap: 20px; }
.contact__meta div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.contact__meta dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.contact__meta dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.selectable { user-select: all; }
.copy { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 4px 8px; }
.copy:hover { color: var(--white); border-color: var(--white); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; outline: none;
  transition: border-color .3s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(-45deg, transparent 50%, var(--mute) 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--red); }
.form .invalid { border-bottom-color: var(--red); }
.form ::placeholder { color: #4a4d53; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form__status { font-size: 14px; color: var(--soft); }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 28px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__tag { margin-top: 16px; font-size: 12px; letter-spacing: .08em; color: var(--mute); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--soft); align-items: flex-start; }
.footer__cols a:hover { color: var(--red); }
.footer__legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 11px; color: #5e6168; letter-spacing: .06em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .sol { grid-template-columns: 1fr 1.3fr; }
  .sol__desc { grid-column: 1; grid-row: 2; }
  .sol__caps { grid-column: 2; grid-row: 1 / span 3; }
  .sol--ai .link { grid-column: 1; grid-row: 3; margin-top: 0; }
  .eco__stage { grid-template-columns: 1fr; }
  .eco__panel { border-left: 0; border-top: 1px solid var(--line); }
  .tech__layout { grid-template-columns: 1fr; }
  .ai__uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: 0; }
  .lang { margin-left: auto; }
  .section__head--split, .ai__grid, .diff__grid, .contact__grid { grid-template-columns: 1fr; }
  .value__grid, .ind-grid { grid-template-columns: 1fr 1fr; }
  .value__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .value__item { padding-bottom: 28px; }
  .ind:nth-child(3) { padding-left: 0; border-left: 0; }
  .ind { border-bottom: 1px solid var(--paper-line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(4) { padding-left: 0; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 0; }
  .tile p { max-height: none; opacity: 1; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { padding-block: 18px; }
}
@media (max-width: 600px) {
  .wa svg { width: 52px; height: 52px; padding: 13px; }
  .footer { padding-bottom: 96px; }
  .hero { padding-top: calc(72px + 56px); }
  .hero__canvas { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); mask-image: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
  .hero__ctas .btn { width: 100%; }
  .value__grid, .ind-grid, .ai__uses, .steps { grid-template-columns: 1fr; }
  .value__item, .value__item + .value__item { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .ind, .ind + .ind { padding: 28px 0 32px; border-left: 0; }
  .ind h3 { margin-top: 12px; }
  .sol { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .sol__desc, .sol__caps, .sol--ai .link { grid-column: 1; grid-row: auto; }
  .sol__caps { grid-template-columns: 1fr; }
  .eco__tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .eco__tab { border-bottom: 1px solid var(--line); }
  .eco__tab:nth-child(2n) { border-right: 0; }
  .eco__tab:nth-child(n+3) { border-bottom: 0; }
  .eco__diagram { min-height: 520px; }
  .eco__panel { padding: 20px; }
  .step, .step + .step { padding: 28px 0 0; }
  .step__num { margin-bottom: 20px; }
  .steps { row-gap: 32px; }
  .form { grid-template-columns: 1fr; }
  .contact__meta div { grid-template-columns: 1fr; gap: 6px; }
  .cta__inner .btn { width: 100%; }
}

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