/* ============================================================
   KAIROS — Intelligence, Engineered.
   Design system: monochrome black/violet + generative accent.
   ============================================================ */

:root {
  /* palette */
  --bg: #07060D;
  --bg-2: #0D0B1A;
  --bg-3: #14112A;
  --ink: #F5F3FF;
  --ink-2: #CFC9E6;
  --ink-3: #8A83A6;
  --ink-4: #4F4A6B;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --violet: #7C5CFF;
  --violet-2: #9F82FF;
  --violet-3: #B8A4FF;
  --violet-4: #5B3CFF;
  --violet-glow: rgba(124, 92, 255, 0.45);

  /* type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--violet); color: #fff; }

/* ====== Container ====== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  position: relative;
}

/* ====== Grid overlay (subtle column lines) ====== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  opacity: 0.35;
}
.grid-overlay span {
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}
.grid-overlay span:last-child { border-right: 1px solid rgba(255, 255, 255, 0.03); }

/* ====== Noise texture ====== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* ====== Custom cursor ====== */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform, width, height;
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--ink);
}
.cursor.is-link { width: 64px; height: 64px; background: rgba(255,255,255,0.1); }
.cursor.is-btn  { width: 88px; height: 88px; background: var(--violet); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-card { width: 120px; height: 120px; border-color: var(--violet-3); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ====== Preloader ====== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner {
  text-align: center;
  display: grid;
  gap: 24px;
  place-items: center;
}
.preloader__logo {
  width: 140px; height: 140px;
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 0 24px var(--violet-glow));
}
.preloader__bar {
  width: 220px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--violet-3));
  transition: width 0.1s linear;
}
.preloader__counter {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.preloader__counter em {
  font-style: normal;
  color: var(--violet);
  margin-left: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== Navigation ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 20px clamp(20px, 4vw, 80px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 6, 13, 0.4);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 6, 13, 0.8);
  border-bottom-color: var(--line);
  padding: 14px clamp(20px, 4vw, 80px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.nav__logo {
  width: 28px; height: 28px;
  animation: spin 22s linear infinite;
  filter: drop-shadow(0 0 8px var(--violet-glow));
}
.nav__brand-text { color: var(--ink); }

.nav__menu {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  justify-self: center;
}
.nav__menu a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--violet-3);
  transition: width 0.4s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.nav__cta .arrow {
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 12h14m-5-5l5 5l-5 5'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 12h14m-5-5l5 5l-5 5'/></svg>") no-repeat center / contain;
}

.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav__toggle span {
    display: block; width: 24px; height: 1px;
    background: var(--ink); margin: 6px 0;
  }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--lg { padding: 22px 36px; font-size: 16px; }
.btn .arrow {
  width: 16px; height: 16px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 12h14m-5-5l5 5l-5 5'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 12h14m-5-5l5 5l-5 5'/></svg>") no-repeat center / contain;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--violet);
  color: #fff;
}
.btn--primary:hover {
  background: var(--violet-2);
  box-shadow: 0 10px 40px -10px var(--violet-glow);
  transform: translateY(-3px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 100px;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -20% -10% -20% -10%;
  z-index: -2;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.hero__orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  top: 10%; left: -10%;
}
.hero__orb--2 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, #3D1FA8 0%, transparent 70%);
  bottom: -20%; right: -15%;
}
.hero__orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--violet-3) 0%, transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.25;
}

.hero__spiro {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  z-index: -1;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--ink-2);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  backdrop-filter: blur(6px);
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet-3);
  box-shadow: 0 0 0 0 var(--violet);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--violet); }
  70% { box-shadow: 0 0 0 10px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}

.hero__title {
  font-size: clamp(54px, 10vw, 168px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}
[data-split] {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}
.hero.is-in [data-split] { transform: translateY(0); }
.hero__title .line:nth-child(2) [data-split] { transition-delay: 0.12s; }
.hero__title .line:nth-child(3) [data-split] { transition-delay: 0.24s; }

.hero__sub {
  max-width: 620px;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  max-width: 840px;
}
.stat b {
  font-family: var(--f-display);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
}
.stat em {
  font-style: normal;
  color: var(--violet-3);
  font-size: clamp(24px, 2.5vw, 36px);
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--f-mono);
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--f-mono);
}
.hero__scroll i {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink-3));
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--violet-3));
  animation: scroll-dot 2s infinite;
}
@keyframes scroll-dot {
  to { transform: translateY(80px); }
}

/* Reveal default */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.line-reveal {
  display: block;
  overflow: hidden;
  position: relative;
}
.line-reveal > * { display: inline-block; }
.line-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1s var(--ease);
}
.is-in .line-reveal::after { transform: scaleX(0); }
.is-in .line-reveal:nth-child(2)::after { transition-delay: 0.1s; }
.is-in .line-reveal:nth-child(3)::after { transition-delay: 0.2s; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.marquee__track i {
  color: var(--violet-3);
  font-style: normal;
  font-size: clamp(24px, 3vw, 48px);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Section commons
   ============================================================ */
section.manifesto, section.solutions, section.products,
section.capabilities, section.process, section.numbers,
section.cta {
  padding: clamp(80px, 12vw, 180px) 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.eyebrow i {
  font-style: normal;
  color: var(--violet-3);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--violet-3);
  display: inline-block;
}

.section-head {
  margin-bottom: 80px;
  max-width: 1000px;
}
.section-title {
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.section-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto__title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 100px;
  max-width: 1200px;
}
.manifesto__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.manifesto__body {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 640px;
}
.manifesto__meta {
  display: grid;
  gap: 24px;
}
.manifesto__meta > div {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.manifesto__meta b {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  width: 80px;
}
.manifesto__meta span {
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 900px) { .solutions__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solutions__grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 48px 36px;
  background: var(--bg);
  transition: background 0.6s var(--ease);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--violet-3);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}
.card__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card__desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: auto;
}
.card__list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card__list li {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--violet-3);
  flex-shrink: 0;
}
.card__glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card:hover .card__glow { opacity: 1; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .products__grid { grid-template-columns: 1fr; } }

.product {
  position: relative;
  padding: 60px 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.product:hover {
  border-color: var(--violet);
  transform: translateY(-6px);
}
.product__badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--violet-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  margin-bottom: 20px;
  width: fit-content;
}
.product__title {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.product__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
  display: block;
}
.product__desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 20px;
  max-width: 460px;
}
.product__features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product__features li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product__features li i {
  width: 16px; height: 16px;
  border: 1px solid var(--violet-3);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.product__features li i::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--violet-3);
}
.product .btn { width: fit-content; }

.product__visual {
  position: absolute;
  width: 480px; height: 480px;
  right: -180px;
  bottom: -180px;
  opacity: 0.12;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--violet) 0%, transparent 60%),
    conic-gradient(from 0deg, var(--violet-3), var(--violet-4), var(--violet), var(--violet-3));
  filter: blur(20px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.product:hover .product__visual { opacity: 0.3; transform: scale(1.1); }

/* ============================================================
   LANGUAGES
   ============================================================ */
.langs {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.langs__head {
  margin-bottom: 60px;
  max-width: 900px;
}
.langs__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.langs__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}
.langs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 900px) { .langs__grid { grid-template-columns: repeat(2, 1fr); } }
.lang {
  background: var(--bg);
  padding: 48px 28px;
  text-align: center;
  transition: background 0.4s var(--ease);
  cursor: default;
  display: grid;
  gap: 14px;
  place-items: center;
  min-height: 180px;
}
.lang b {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.lang span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lang:hover { background: var(--bg-2); }
.lang:hover b { color: var(--violet-3); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .caps__grid { grid-template-columns: 1fr; } }

.cap {
  padding: 48px 36px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
  cursor: pointer;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cap h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cap p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 340px;
}
.cap__arr {
  position: absolute;
  top: 48px; right: 36px;
  width: 20px; height: 20px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 17L17 7M17 7H8M17 7v9'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 17L17 7M17 7H8M17 7v9'/></svg>") no-repeat center / contain;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.cap:hover { background: var(--bg-2); }
.cap:hover h4 { color: var(--violet-3); }
.cap:hover .cap__arr { background: var(--violet-3); transform: translate(6px, -6px) rotate(0deg); }

/* ============================================================
   PROCESS
   ============================================================ */
.process__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 60px;
}
@media (max-width: 900px) { .process__rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process__rail { grid-template-columns: 1fr; } }

.process__line {
  position: absolute;
  top: 30px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.process__line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--violet-3));
  transition: width 0.1s linear;
}

.step {
  position: relative;
  padding-top: 60px;
}
.step::before {
  content: '';
  position: absolute;
  top: 24px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--violet-3);
  transition: background 0.4s var(--ease);
}
.step.is-active::before { background: var(--violet); box-shadow: 0 0 20px var(--violet-glow); }
.step__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--violet-3);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.step h4 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 260px;
}

/* ============================================================
   ORBIT
   ============================================================ */
.orbit {
  position: relative;
  padding: clamp(100px, 15vw, 220px) 0;
  overflow: hidden;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, var(--bg-2) 0%, var(--bg) 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.orbit__inner {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
}
.orbit__logo {
  width: clamp(320px, 50vw, 680px);
  height: clamp(320px, 50vw, 680px);
  animation: spin 40s linear infinite;
  filter: drop-shadow(0 0 60px var(--violet-glow));
  opacity: 0.9;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit__title {
  position: relative;
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.orbit__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}
@media (max-width: 900px) { .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.num b {
  font-family: var(--f-display);
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-block;
}
.num em {
  font-style: normal;
  color: var(--violet-3);
  font-size: clamp(36px, 3.5vw, 56px);
  font-family: var(--f-serif);
  font-style: italic;
}
.num span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  text-align: center;
  background: radial-gradient(ellipse at center bottom, rgba(124, 92, 255, 0.2) 0%, transparent 70%);
}
.cta .eyebrow { justify-content: center; margin-inline: auto; display: inline-flex; }
.cta__title {
  font-size: clamp(48px, 8vw, 144px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 40px 0 60px;
}
.cta__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--violet-3);
}
.cta__row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  overflow: hidden;
  z-index: 2;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer__logo {
  width: 64px; height: 64px;
  animation: spin 24s linear infinite;
  filter: drop-shadow(0 0 16px var(--violet-glow));
}
.footer__brand h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.footer__brand p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--violet-3);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 700px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
.footer__cols h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--violet-3); transform: translateX(4px); }

.footer__huge {
  font-size: clamp(80px, 22vw, 320px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: center;
  margin: 60px 0 20px;
  background: linear-gradient(180deg, var(--violet-3) 0%, transparent 80%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
  user-select: none;
}

.footer__bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}
.footer__bot a { color: var(--ink-2); transition: color 0.3s; }
.footer__bot a:hover { color: var(--violet-3); }

/* ============================================================
   Section reveal
   ============================================================ */
.is-in .reveal { opacity: 1; transform: translateY(0); }

/* stagger inside solutions grid */
.solutions__grid .card { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.solutions.is-in .card { opacity: 1; transform: translateY(0); }
.solutions.is-in .card:nth-child(2) { transition-delay: 0.08s; }
.solutions.is-in .card:nth-child(3) { transition-delay: 0.16s; }
.solutions.is-in .card:nth-child(4) { transition-delay: 0.24s; }
.solutions.is-in .card:nth-child(5) { transition-delay: 0.32s; }
.solutions.is-in .card:nth-child(6) { transition-delay: 0.40s; }

.caps__grid .cap { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.capabilities.is-in .cap { opacity: 1; transform: translateY(0); }
.capabilities.is-in .cap:nth-child(2) { transition-delay: 0.08s; }
.capabilities.is-in .cap:nth-child(3) { transition-delay: 0.16s; }
.capabilities.is-in .cap:nth-child(4) { transition-delay: 0.24s; }
.capabilities.is-in .cap:nth-child(5) { transition-delay: 0.32s; }
.capabilities.is-in .cap:nth-child(6) { transition-delay: 0.40s; }

.process__rail .step { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.process.is-in .step { opacity: 1; transform: translateY(0); }
.process.is-in .step:nth-child(3) { transition-delay: 0.1s; }
.process.is-in .step:nth-child(4) { transition-delay: 0.2s; }
.process.is-in .step:nth-child(5) { transition-delay: 0.3s; }
.process.is-in .step:nth-child(6) { transition-delay: 0.4s; }

.products__grid .product { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.products.is-in .product { opacity: 1; transform: translateY(0); }
.products.is-in .product:nth-child(2) { transition-delay: 0.15s; }

.numbers__grid .num { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.numbers.is-in .num { opacity: 1; transform: translateY(0); }
.numbers.is-in .num:nth-child(2) { transition-delay: 0.1s; }
.numbers.is-in .num:nth-child(3) { transition-delay: 0.2s; }
.numbers.is-in .num:nth-child(4) { transition-delay: 0.3s; }
