/* ==========================================================================
   Sherif Abdelkader — Senior Software & AI Developer
   Design tokens → base → layout → components → sections → motion
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #07080a;
  --bg-2: #0a0c10;
  --panel: #0c0e13;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Type */
  --text: #f3f5f9;
  --text-2: #a4abb8;
  --text-3: #6c7382;

  /* Single electric accent */
  --accent: #4d7dff;
  --accent-2: #8eaaff;
  --accent-soft: rgba(77, 125, 255, 0.12);
  --accent-glow: rgba(77, 125, 255, 0.38);

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

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 11vw, 176px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  animation: page-in .6s var(--ease) both;
}
body.is-leaving { opacity: 0; transition: opacity .25s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--accent); color: #fff; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); font-weight: 500;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.text-muted { color: var(--text-3); }
.text-accent { color: var(--text); background: linear-gradient(90deg, var(--accent-2), #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Hero Globe (earth + network animation) ---------- */
.hero-globe {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-globe__svg { width: 100%; height: auto; overflow: visible; display: block; }

.globe-spin {
  transform-origin: 150px 50px;
  animation: globe-spin 22s linear infinite;
}
@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.g-node {
  fill-opacity: 0.50;
  animation: node-pulse 4s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { fill-opacity: 0.45; }
  50%       { fill-opacity: 1; filter: drop-shadow(0 0 3px rgba(255,255,255,0.9)); }
}
.g-pulse {
  stroke-dasharray: 0.09 1;
  stroke-dashoffset: 0.09;
  opacity: 0;
  animation: net-travel 5s ease-in-out infinite;
}
@keyframes net-travel {
  0%   { stroke-dashoffset:  0.09; opacity: 0;   }
  4%   { stroke-dashoffset:  0.09; opacity: 0.90; }
  72%  { stroke-dashoffset: -1.00; opacity: 0.90; }
  76%  { stroke-dashoffset: -1.00; opacity: 0;   }
  100% { stroke-dashoffset:  0.09; opacity: 0;   }
}

/* ---------- Typography ---------- */
.hero__role {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__role span:not(.hero__role-dot) {
  background: linear-gradient(105deg,
    rgba(255,255,255,0.72) 15%, #fff 38%, rgba(215,228,255,1) 50%,
    #fff 62%, rgba(255,255,255,0.72) 85%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: title-shimmer 9s ease-in-out 0.6s infinite;
}
.hero__role-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.6);
  animation: dot-glow 2.4s ease-in-out infinite;
}
@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(255,255,255,0.5); opacity: 0.8; }
  50%       { box-shadow: 0 0 14px 4px rgba(180,210,255,0.9); opacity: 1; }
}
.hero__content .eyebrow {
  background: linear-gradient(105deg,
    rgba(160,175,210,0.55) 15%, rgba(200,215,255,0.85) 38%,
    rgba(180,195,240,0.92) 50%, rgba(200,215,255,0.85) 62%, rgba(160,175,210,0.55) 85%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: title-shimmer 9s ease-in-out 2s infinite;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}
.eyebrow__num { color: var(--accent-2); }
.eyebrow__num::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--line-2); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow);
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 10%, #9aaac8 145%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.h2 .text-muted {
  background: linear-gradient(180deg, rgba(255,255,255,.46) 0%, rgba(130,148,200,.36) 145%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 56ch;
  margin-top: 24px;
  font-weight: 400;
}
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .35s var(--ease), background-color .25s ease, border-color .25s ease, box-shadow .3s ease, color .25s ease;
  will-change: transform;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn--primary {
  background: var(--text); color: #05060a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 30px -10px rgba(77,125,255,.45);
}
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff inset, 0 14px 44px -10px rgba(77,125,255,.7); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.btn__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.menu-open { background: #07080a; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
.nav { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.brand:hover .brand__mark { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.brand__word { font-weight: 600; font-size: 13px; letter-spacing: 0.2em; white-space: nowrap; }

/* Language switch */
.lang-switch { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.lang-switch a { padding: 5px 10px; border-radius: 999px; color: var(--text-3); transition: color .2s ease, background-color .2s ease; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--text); }
.nav__links { margin-left: auto; }
.nav__links ul { display: flex; gap: 4px; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active { background: var(--surface-2); }
.nav__cta { margin-left: 4px; }
.nav > .lang-switch { margin-left: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; border-radius: 50%; border: 1px solid var(--line-2); }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s 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: var(--header-h) 0 0 0;
  background: rgba(7, 8, 10, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  animation: menu-in .35s var(--ease);
}
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 18px 0; font-size: 24px; letter-spacing: -0.02em; }
.mobile-menu .btn { width: 100%; margin-top: 20px; }
.mobile-menu .lang-switch { margin-top: 28px; font-size: 13px; }
.mobile-menu .lang-switch a { padding: 8px 16px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1320px) {
  .nav__links, .nav__cta, .nav > .lang-switch { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--panel {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(77,125,255,.06), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: clamp(56px, 7vw, 96px); }
.section-head--wide .h2 { max-width: 22ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
.split__copy > .btn { margin-top: 40px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
/* ══════════════════════════════════════════════════════
   HERO — Full-width Icon Wall
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  background: #07080a;
}

/* ── Ambient background (behind wall) ── */
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.hero__bg-orb--1 { width: 700px; height: 700px; background: rgba(40,70,200,.12); top: -160px; left: 15%; }
.hero__bg-orb--2 { width: 500px; height: 500px; background: rgba(110,40,200,.08); bottom: -100px; right: 20%; }

/* ── Full-bleed icon wall ── */
.hero-wall {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.hero-wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 7px; padding: 4px;
  min-height: calc(100% + 250px);
  align-content: start;
  animation: wall-drift 12s ease-in-out infinite alternate;
}

/* ── Dark vignette mask over the wall ── */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
}
.hero::before { top: 0; height: 220px; background: linear-gradient(to bottom, #07080a 0%, rgba(7,8,10,0) 100%); }
.hero::after  { bottom: 0; height: 220px; background: linear-gradient(to top, #07080a 0%, rgba(7,8,10,0) 100%); }
.hero__vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 80% 84% at 50% 50%,
    rgba(7,8,10,0.98) 0%, rgba(7,8,10,0.96) 22%,
    rgba(7,8,10,0.88) 44%, rgba(7,8,10,0.65) 62%, rgba(7,8,10,0.30) 78%, rgba(7,8,10,0.08) 90%, transparent 100%);
}

/* ── Individual icon cell ── */
.hw-icon {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.28); cursor: default;
}
.hw-icon__svg { width: 20px; height: 20px; flex: none; }

/* ── Centered content (above everything) ── */
.hero__content {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* ── Title ── */
.hero__title {
  font-size: clamp(2rem, 3.8vw, 4.4rem);
  line-height: 1.08; letter-spacing: -.04em; font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span {
  display: inline-block; text-wrap: balance;
  animation: line-up 1.1s var(--ease) both, title-shimmer 6s ease-in-out 1.2s infinite;
  background: linear-gradient(105deg,
    #7B5EA7 0%, #9B8AFF 22%,
    #C77DFF 40%, #ffffff 50%,
    #C77DFF 60%, #9B8AFF 78%,
    #7B5EA7 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__title .line:nth-child(2) > span {
  animation: line-up 1.1s var(--ease) .1s both, title-shimmer 8s ease-in-out 1.6s infinite;
  background: linear-gradient(105deg,
    rgba(94,92,230,0.45) 0%, rgba(155,138,255,0.62) 30%,
    rgba(199,125,255,0.72) 50%, rgba(155,138,255,0.62) 70%,
    rgba(94,92,230,0.45) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: clamp(1.7rem, 3vw, 3.6rem); letter-spacing: -.03em;
}
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes title-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -150% center; }
}
@keyframes wall-drift {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-120px); }
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* ── CTA buttons ── */
.hero__actions .btn--primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; padding: 15px 32px; border-radius: 8px;
  font-size: .94rem; font-weight: 500; text-decoration: none;
  background: linear-gradient(135deg, #2a52d4 0%, #4d7dff 60%, #7a58e8 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 28px rgba(77,125,255,.45);
  transition: transform .2s, box-shadow .2s;
}
.hero__actions .btn--primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);
  background-size: 300% 100%;
  animation: title-shimmer 6s ease-in-out 2.8s infinite;
  pointer-events: none;
}
.hero__actions .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 7px 36px rgba(77,125,255,.65); }
.hero__actions .btn--ghost {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; padding: 15px 32px; border-radius: 8px;
  font-size: .94rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(77,125,255,.35); color: rgba(180,210,255,.85);
  background: rgba(77,125,255,.07); backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}
.hero__actions .btn--ghost::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 25%, rgba(77,125,255,0.18) 50%, transparent 75%);
  background-size: 300% 100%;
  animation: title-shimmer 6s ease-in-out 3.4s infinite;
  pointer-events: none;
}
.hero__actions .btn--ghost:hover { border-color: rgba(77,125,255,.65); background: rgba(77,125,255,.15); }

.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* ── Workflow diagram ── */
.wflow { position: relative; width: 75%; max-width: 340px; margin-left: auto; aspect-ratio: 560/480; }
.wflow__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.wflow__card {
  position: absolute; width: 30%;
  background: rgba(8,13,28,.78); border: 1px solid rgba(77,125,255,.3); border-radius: 10px;
  padding: 9px 10px; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 2; animation: wflow-float 7s ease-in-out infinite;
  transition: border-color .35s, box-shadow .35s;
}
.wflow__card:hover { border-color: rgba(77,125,255,.7); box-shadow: 0 0 20px rgba(77,125,255,.2); }
.wflow__card:nth-child(2) { animation-delay: -1.2s; }
.wflow__card:nth-child(3) { animation-delay: -2.4s; }
.wflow__card:nth-child(4) { animation-delay: -3.6s; }
.wflow__card:nth-child(5) { animation-delay: -4.8s; }
.wflow__card:nth-child(6) { animation-delay: -6s; }
@keyframes wflow-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.wflow__card--tl { top: 9%;  left: 12%; }
.wflow__card--tr { top: 9%;  left: 58%; }
.wflow__card--ml { top: 41%; left:  0%; }
.wflow__card--mr { top: 41%; left: 70%; }
.wflow__card--bl { top: 73%; left: 12%; }
.wflow__card--br { top: 73%; left: 58%; }
.wflow__icon { flex: 0 0 28px; width: 28px; height: 28px; color: #5b8fff; }
.wflow__card-title { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; color: var(--text); display: block; font-weight: 500; }
.wflow__card-sub { font-size: .56rem; color: var(--text-3); display: block; margin-top: 2px; }
.wflow__card > div { min-width: 0; }
.wflow__chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; z-index: 3; }
.wflow__chip-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(77,125,255,.28); animation: wflow-spin 22s linear infinite; pointer-events: none; }
.wflow__chip-ring--2 { inset: -26px; border-color: rgba(77,125,255,.14); animation-duration: 34s; animation-direction: reverse; }
@keyframes wflow-spin { to { transform: rotate(360deg); } }
.wflow__chip-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle,rgba(77,125,255,.6) 0%,rgba(77,125,255,.18) 55%,transparent 75%); border: 1.5px solid rgba(77,125,255,.65); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 28px rgba(77,125,255,.4), inset 0 0 14px rgba(77,125,255,.15); }
.wf-line { stroke: rgba(77,125,255,.22); stroke-width: 1; fill: none; }
.wf-packet { fill: #5b8fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px; }
  .hero-wall__grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
}
@media (max-width: 520px) {
  .hero-wall__grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
}

/* Hero SVG system visualization */
.viz-col-label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; fill: var(--text-3); text-anchor: middle; }
.viz-node rect { fill: rgba(12,14,19,.85); stroke: var(--line-2); stroke-width: 1; transition: stroke .4s ease; }
.viz-node text { font-family: var(--mono); font-size: 14px; fill: var(--text-2); text-anchor: middle; dominant-baseline: central; transition: fill .4s ease; }
.viz-node circle { fill: var(--text-3); transition: fill .4s ease; }
.viz-node.is-hot rect { stroke: rgba(142,170,255,.7); }
.viz-node.is-hot text { fill: var(--text); }
.viz-node.is-hot circle { fill: var(--accent-2); }
.viz-path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.viz-flow { fill: none; stroke: url(#viz-grad); stroke-width: 1.5; stroke-dasharray: 3 14; animation: dash-flow 2.4s linear infinite; opacity: .8; }
@keyframes dash-flow { to { stroke-dashoffset: -68; } }
.viz-packet { fill: #fff; filter: url(#viz-glow); }
.viz-core-ring { fill: none; stroke: var(--line-2); }
.viz-core-ring--dash { stroke: rgba(142,170,255,.45); stroke-dasharray: 2 8; transform-origin: 280px 260px; animation: spin 24s linear infinite; }
.viz-core-ring--dash2 { stroke: rgba(142,170,255,.25); stroke-dasharray: 40 20 4 20; transform-origin: 280px 260px; animation: spin 36s linear infinite reverse; }
.viz-core-fill { fill: url(#viz-core); }
.viz-core-dot { fill: #fff; filter: url(#viz-glow); animation: core-breathe 3.2s var(--ease-in-out) infinite; transform-origin: 280px 260px; }
.viz-core-label { font-family: var(--mono); font-size: 13px; letter-spacing: .24em; fill: var(--text); text-anchor: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core-breathe { 50% { transform: scale(1.35); opacity: .75; } }

/* ---------- Technology ecosystem ---------- */
.ecosystem { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.ecosystem { padding-bottom: clamp(48px, 5vw, 72px); }
.ecosystem + .section { padding-top: clamp(64px, 6vw, 96px); }
.ecosystem__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ecosystem__bg::before {
  /* slow-drifting fine grid */
  content: ""; position: absolute; inset: -80px 0 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 10%, transparent 72%);
  opacity: .45;
  animation: grid-drift 28s linear infinite;
}
.ecosystem__bg::after {
  content: ""; position: absolute; left: 50%; top: 22%; width: 1000px; height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(77,125,255,.13), transparent 65%);
  animation: glow-breathe 9s var(--ease-in-out) infinite;
}
@keyframes grid-drift { to { transform: translateY(80px); } }
@keyframes glow-breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }

.ecosystem__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(56px, 7vw, 96px); }
.ecosystem__title {
  font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500;
  max-width: 20ch; text-wrap: balance;
  background: linear-gradient(180deg, #fff 10%, #9aaac8 145%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ecosystem__head .lead { margin-inline: auto; }

.eco-groups { display: grid; }
.eco-group {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.eco-group:last-child { border-bottom: 1px solid var(--line); }
.eco-group__head { padding-top: 22px; }
.eco-group__title { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.eco-group__title span { color: var(--accent-2); }
.eco-group__note { margin-top: 8px; font-size: 14px; color: var(--text-3); }
.eco-group__logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }

.eco-logo {
  --glow: color-mix(in srgb, var(--brand) 45%, transparent);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 104px; padding: 16px 8px;
  border-radius: var(--radius);
  color: #8d94a3;
  text-align: center;
  cursor: default;
  transition: color .45s ease, background-color .45s ease, transform .45s var(--ease);
}
.eco-logo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  transition: opacity .45s ease;
}
.eco-logo__mark {
  width: 30px; height: 30px; flex: none;
  opacity: .72;
  transition: opacity .45s ease, filter .45s ease, transform .45s var(--ease);
}
.eco-logo__mono {
  display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
}
.eco-logo__name { font-size: 12.5px; line-height: 1.3; color: var(--text-3); transition: color .45s ease; }
.eco-logo:hover, .eco-logo.is-lit { color: var(--brand); transform: scale(1.05); }
.eco-logo:hover::before, .eco-logo.is-lit::before { opacity: 1; }
.eco-logo:hover .eco-logo__mark, .eco-logo.is-lit .eco-logo__mark { opacity: 1; filter: drop-shadow(0 0 14px var(--glow)); }
.eco-logo:hover .eco-logo__name, .eco-logo.is-lit .eco-logo__name { color: var(--text); }

/* staggered entrance once a group is revealed */
.js .eco-group:not(.is-in) .eco-logo { opacity: 0; }
.eco-group.is-in .eco-logo { animation: logo-in .8s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }
@keyframes logo-in { from { opacity: 0; transform: translateY(12px); } }

.ecosystem__foot { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(56px, 7vw, 88px); }
.ecosystem__claim { max-width: 34ch; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--text-2); text-wrap: balance; }
.eco-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: border-color .3s ease, background-color .3s ease;
}
.eco-link span { transition: transform .35s var(--ease); }
.eco-link:hover { border-color: rgba(142,170,255,.5); background: var(--accent-soft); }
.eco-link:hover span { transform: translateX(4px); }
.ecosystem__legal { margin-top: 28px; max-width: 60ch; font-size: 12px; color: var(--text-3); opacity: .8; }

@media (max-width: 1100px) {
  .eco-group { grid-template-columns: 1fr; gap: 12px; }
  .eco-group__head { padding-top: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .eco-group__note { margin-top: 0; }
  .eco-group__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .eco-group__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .eco-logo { min-height: 96px; padding: 14px 4px; gap: 10px; }
  .eco-logo__mark { width: 26px; height: 26px; }
  .eco-logo__name { font-size: 11.5px; }
}
@media (max-width: 350px) { .eco-group__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) { .eco-logo:hover { transform: none; } }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  padding: clamp(32px, 3.2vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: background-color .4s ease;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), rgba(77,125,255,.10), transparent 60%);
  transition: opacity .4s ease;
}
.service:hover::before { opacity: 1; }
.service:hover { background: rgba(255,255,255,.012); }
.service__icon {
  width: 48px; height: 48px;
  fill: none; stroke: var(--text-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s ease;
}
.service__icon .fill { fill: var(--accent); stroke: none; }
.service__icon > * { stroke-dasharray: 160; stroke-dashoffset: 0; }
.service:hover .service__icon { stroke: var(--text); }
.service:hover .service__icon > * { animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
.service h3 { margin-top: 56px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.service p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; max-width: 36ch; }
.service__link {
  margin-top: auto; padding-top: 28px; align-self: flex-start;
  font-size: 14px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .25s ease;
}
.service__link::after { content: "→"; transition: transform .35s var(--ease); }
.service__link:hover { color: var(--text); }
.service__link:hover::after { transform: translateX(4px); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: 36px; }
}

/* ---------- AI Agents ---------- */
.agent-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; max-width: 560px; }
.agent-tabs button {
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; color: var(--text-2);
  border: 1px solid var(--line);
  background: transparent;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.agent-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.agent-tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(142,170,255,.5); background: var(--accent-soft); }

.agent-flow {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.flow-node {
  position: relative;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7,8,10,.6);
  transition: border-color .5s ease, box-shadow .5s ease;
}
.flow-node.is-on { border-color: rgba(142,170,255,.55); box-shadow: 0 0 0 4px rgba(77,125,255,.07), 0 0 32px -8px var(--accent-glow); }
.flow-node__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.flow-node.is-on .flow-node__label { color: var(--accent-2); }
.flow-node__value { margin-top: 6px; font-size: 16px; color: var(--text); transition: opacity .3s ease, transform .3s ease; }
.agent-flow.is-swapping .flow-node__value { opacity: 0; transform: translateY(4px); }
.flow-node--core { background: linear-gradient(90deg, rgba(77,125,255,.10), rgba(7,8,10,.6) 70%); }
.flow-node__pulse { position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77,125,255,.55); } 100% { box-shadow: 0 0 0 14px rgba(77,125,255,0); } }
.flow-link { position: relative; height: 26px; margin-left: 34px; width: 1px; background: var(--line-2); overflow: hidden; }
.flow-link i { position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: linear-gradient(transparent, var(--accent-2)); }
.flow-link.is-on i { animation: link-run .5s var(--ease-in-out) forwards; }
@keyframes link-run { to { top: 100%; } }
.system-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.system-chips li {
  padding: 6px 12px; border-radius: 6px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3);
  border: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease, background-color .35s ease;
}
.system-chips li.is-used { color: var(--text); border-color: rgba(142,170,255,.45); background: var(--accent-soft); }
.flow-node--result.is-on .flow-node__value::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; font-size: 11px; background: var(--accent); color: #fff; vertical-align: 1px; }

/* ---------- Automation pipeline ---------- */
.pipeline { position: relative; }
.pipeline__steps {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: pipe;
}
.pipeline__steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 67px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
}
.pipeline__steps::after {
  /* moving data packet along the connection line */
  content: ""; position: absolute; top: 66px; left: 10%; width: 80px; height: 3px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: pipe-run 5s var(--ease-in-out) infinite;
}
@keyframes pipe-run { 0% { left: 8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(92% - 80px); opacity: 0; } }
.pipe-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.pipe-step__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); height: 20px; transition: color .4s ease; }
.pipe-step__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 12px 0 24px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  transition: border-color .5s ease, box-shadow .5s ease, background-color .5s ease;
}
.pipe-step__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke .4s ease; }
.pipe-step strong { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.pipe-step__meta { margin-top: 6px; font-size: 14px; color: var(--text-3); }
.pipe-step.is-on .pipe-step__kind { color: var(--accent-2); }
.pipe-step.is-on .pipe-step__icon { border-color: rgba(142,170,255,.6); background: #0d1220; box-shadow: 0 0 0 6px rgba(77,125,255,.06), 0 0 40px -6px var(--accent-glow); }
.pipe-step.is-on .pipe-step__icon svg { stroke: #fff; }

.runlog {
  margin: 72px auto 0; max-width: 760px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(7,8,10,.7);
  font-family: var(--mono); font-size: 13px;
  overflow: hidden;
}
.runlog__head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; letter-spacing: .04em; }
.runlog__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.runlog__status { margin-left: auto; color: var(--accent-2); }
.runlog__lines { padding: 14px 18px; min-height: 176px; }
.runlog__lines li { display: flex; gap: 16px; padding: 3px 0; color: var(--text-2); animation: log-in .45s var(--ease) both; }
.runlog__lines li time { color: var(--text-3); flex: none; }
.runlog__lines li b { color: var(--accent-2); font-weight: 500; flex: none; width: 96px; }
@keyframes log-in { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 900px) {
  .pipeline__steps { grid-template-columns: 1fr; gap: 0; }
  .pipeline__steps::before { left: 36px; right: auto; top: 40px; bottom: 40px; width: 1px; height: auto; background: var(--line-2); }
  .pipeline__steps::after { left: 35px; top: 40px; width: 3px; height: 60px; animation: pipe-run-v 5s var(--ease-in-out) infinite; background: linear-gradient(180deg, transparent, var(--accent-2), transparent); }
  @keyframes pipe-run-v { 0% { top: 40px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 100px); opacity: 0; } }
  .pipe-step { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; column-gap: 22px; text-align: left; align-items: center; padding: 10px 0; }
  .pipe-step__icon { grid-row: 1 / 4; margin: 0; }
  .pipe-step__kind { grid-column: 2; height: auto; }
  .pipe-step strong, .pipe-step__meta { grid-column: 2; }
  .pipe-step__meta { margin-top: 0; }
  .runlog { margin-top: 48px; }
  .runlog__lines li b { width: auto; }
  .runlog__lines { font-size: 12px; }
}

/* ---------- Checklist ---------- */
.checklist { margin-top: 32px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 1px; background: var(--accent); }

/* ---------- Voice ---------- */
.voice {
  position: relative;
  max-width: 460px; width: 100%; margin-inline: auto;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(77,125,255,.14), transparent 70%),
    linear-gradient(180deg, #0e1117, #08090c);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 0 8px rgba(255,255,255,.015);
}
.voice__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.voice__live { display: inline-flex; align-items: center; gap: 8px; }
.voice__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; }
.voice__timer { color: var(--text-3); font-variant-numeric: tabular-nums; }
.voice__wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 88px; margin: 28px 0 20px; }
.voice__wave span {
  width: 3px; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: scaleY(var(--s, .2));
  opacity: .9;
  animation: wave 1.2s var(--ease-in-out) infinite alternate;
  animation-delay: var(--delay, 0s);
}
@keyframes wave { 0% { transform: scaleY(.08); } 100% { transform: scaleY(var(--s, .6)); } }
.voice__transcript { display: grid; gap: 10px; }
.bubble { font-size: 15px; line-height: 1.5; padding: 12px 16px; border-radius: 14px; max-width: 88%; }
.bubble span { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.bubble--ai { background: var(--accent-soft); border: 1px solid rgba(142,170,255,.22); }
.bubble--ai span { color: var(--accent-2); }
.bubble--caller { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); }
.voice__understood { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding: 6px 2px; }
.voice__understood em { font-style: normal; color: var(--accent-2); }
.voice__actions { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.voice__actions li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.voice__actions li::before {
  content: "→"; display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 11px; color: var(--text-3);
  transition: all .35s ease;
}
.voice__actions li.is-done { color: var(--text); }
.voice__actions li.is-done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: #fff; }
.voice [data-v] { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.voice.is-ready [data-v]:not(.is-shown) { opacity: 0; transform: translateY(6px); }

/* ---------- Architecture ---------- */
.arch {
  position: relative;
  display: grid; gap: 14px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(40px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
}
.arch__rail { position: absolute; left: clamp(18px, 2vw, 26px); top: 36px; bottom: 36px; width: 1px; background: var(--line-2); overflow: hidden; }
.arch__rail i { position: absolute; left: 0; width: 1px; height: 30%; background: linear-gradient(transparent, var(--accent-2), transparent); animation: rail 3.6s var(--ease-in-out) infinite; }
@keyframes rail { from { top: -30%; } to { top: 100%; } }
.arch__layer { position: relative; }
.arch__layer::before { content: ""; position: absolute; left: calc(clamp(18px, 2vw, 26px) - clamp(40px, 4vw, 56px) - 3px); top: 34px; width: 7px; height: 7px; border-radius: 50%; background: var(--panel); border: 1px solid var(--accent-2); }
.arch__tag { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.arch__row { display: flex; gap: 10px; }
.arch__row span {
  flex: 1; min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(7,8,10,.7);
  font-size: 15px; color: var(--text);
  transition: border-color .3s ease, background-color .3s ease, transform .4s var(--ease);
}
.arch__row span:hover { border-color: rgba(142,170,255,.45); background: rgba(77,125,255,.06); transform: translateY(-2px); }
.arch__row span.is-ai { border-color: rgba(142,170,255,.4); background: linear-gradient(90deg, rgba(77,125,255,.14), rgba(77,125,255,.03)); }
.arch__row span.is-wide { text-align: center; font-family: var(--mono); font-size: 13.5px; letter-spacing: .06em; color: var(--text-2); }
@media (max-width: 560px) {
  .arch__row { flex-wrap: wrap; }
  .arch__row span { flex: 1 1 calc(50% - 5px); font-size: 14px; padding: 14px; }
}

/* ---------- Industries ---------- */
.industries {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.industry {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  outline-offset: -2px;
  transition: background-color .4s ease;
}
.industry::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.industry::before { content: "+"; position: absolute; top: 22px; right: 22px; font-size: 18px; font-weight: 300; line-height: 1; color: var(--text-3); transition: transform .5s var(--ease), color .3s ease; }
.industry:hover::before, .industry:focus-visible::before { transform: rotate(45deg); color: var(--accent-2); }
@media (hover: none) { .industry::before { display: none; } }
.industry__n { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .12em; }
.industry__icon {
  width: 42px; height: 42px; margin-top: 24px;
  fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s ease, transform .5s var(--ease);
}
.industry__icon > * { stroke-dasharray: 90; stroke-dashoffset: 0; }
.industry:hover .industry__icon, .industry:focus-visible .industry__icon { stroke: var(--accent-2); transform: translateY(-2px); }
.industry:hover .industry__icon > *, .industry:focus-visible .industry__icon > * { animation: draw-sm 1.1s var(--ease) both; }
@keyframes draw-sm { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
.industry h3 { margin-top: auto; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; transition: transform .5s var(--ease); }
.industry p { font-size: 14px; line-height: 1.5; color: var(--text-2); max-height: 0; opacity: 0; transform: translateY(8px); transition: max-height .5s var(--ease), opacity .4s ease, transform .5s var(--ease), margin .5s var(--ease); }
.industry:hover, .industry:focus-visible, .industry:focus-within { background: rgba(77,125,255,.045); }
.industry:hover::after, .industry:focus-visible::after { width: 100%; }
.industry:hover p, .industry:focus-visible p { max-height: 120px; opacity: 1; transform: none; margin-top: 10px; }
@media (hover: none) {
  .industry p { max-height: none; opacity: 1; transform: none; margin-top: 10px; }
}
@media (max-width: 1100px) { .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry { min-height: 180px; padding: 20px 16px; }
  .industry__icon { width: 34px; height: 34px; margin-top: 16px; }
  .industry h3 { font-size: 16.5px; }
  .industry p { font-size: 13px; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.timeline__track { position: absolute; left: 0; right: 0; top: 43px; height: 1px; background: var(--line-2); }
.timeline__track i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); transition: transform 1.8s var(--ease); }
.timeline.is-in .timeline__track i { transform: scaleX(1); }
.step { position: relative; padding-top: 0; }
.step__n { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: .1em; }
.step__dot { display: block; width: 11px; height: 11px; margin: 16px 0 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent-2); box-shadow: 0 0 0 5px var(--bg); position: relative; z-index: 1; }
.step h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.025em; }
.step p { margin-top: 12px; color: var(--text-2); max-width: 28ch; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 40px; padding-left: 36px; }
  .timeline__track { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline__track i { transform-origin: top; transform: scaleY(0); }
  .timeline.is-in .timeline__track i { transform: scaleY(1); }
  .step__dot { position: absolute; left: -36px; top: 4px; margin: 0; }
  .step h3 { margin-top: 8px; }
}

/* ---------- Technology ---------- */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tech__col { padding: 32px 32px 8px 0; }
.tech__col + .tech__col { padding-left: 32px; border-left: 1px solid var(--line); }
.tech__col h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px; }
.tech__col li { padding: 11px 0; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.01em; color: var(--text); border-bottom: 1px solid var(--line); transition: color .25s ease, padding-left .35s var(--ease); }
.tech__col li:last-child { border-bottom: 0; }
.tech__col li:hover { color: var(--accent-2); padding-left: 6px; }
@media (max-width: 900px) {
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech__col:nth-child(3) { padding-left: 0; border-left: 0; }
  .tech__col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .tech__col, .tech__col + .tech__col { padding: 24px 12px 8px 0; }
  .tech__col:nth-child(even) { padding-left: 16px; }
}

/* ---------- About & values ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value {
  position: relative;
  padding: 36px 32px 34px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
  overflow: hidden;
  transition: border-color .4s ease, transform .5s var(--ease);
}
.value::before { content: ""; position: absolute; inset: -1px -1px auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: 0; transition: opacity .4s ease; }
.value:hover { border-color: var(--line-2); transform: translateY(-4px); }
.value:hover::before { opacity: 1; }
.value .value__big { margin-top: 0; font-size: clamp(3.4rem, 5vw, 5.2rem); line-height: 1; letter-spacing: -0.05em; font-weight: 300; margin-bottom: 44px; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.45)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.value__sym { display: inline-block; }
.value h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.value p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value .value__big { margin-bottom: 28px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding-block: clamp(120px, 16vw, 240px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(77,125,255,.14), transparent 70%), var(--bg);
}
.cta__glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 1100px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(77,125,255,.12), transparent 65%); pointer-events: none; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(2.6rem, 6.8vw, 6.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500;
  background: linear-gradient(180deg, #fff 10%, #9aaac8 145%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta .lead { margin-inline: auto; margin-top: 28px; }
.cta .hero__actions { justify-content: center; }

/* ---------- Contact / Form ---------- */
.contact-meta { margin-top: 48px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 460px; }
.contact-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-meta dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.contact-meta dd { color: var(--text); text-align: right; }
.contact-meta a { border-bottom: 1px solid var(--line-2); transition: border-color .2s ease; }
.contact-meta a:hover { border-color: var(--text); }

.form {
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  display: grid; gap: 20px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 13.5px; color: var(--text-2); }
.field .opt { color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(7,8,10,.7);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23a4abb8' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #0c0e13; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field__error { font-size: 13px; color: #ff8a8a; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--text-3); }
.form__note a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.form__status { font-size: 14.5px; min-height: 1.4em; }
.form__status.is-ok { color: var(--accent-2); }
.form__status.is-err { color: #ff8a8a; }
@media (max-width: 560px) { .form__foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer > .container { container-type: inline-size; }
.footer { position: relative; padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer__brand p { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer__cols li + li { margin-top: 10px; }
.footer__cols a { color: var(--text-2); font-size: 15px; transition: color .2s ease; }
.footer__cols a:hover { color: var(--text); }
.footer__wordmark {
  margin-top: clamp(64px, 8vw, 120px);
  display: flex; flex-direction: column; align-items: center;
  font-size: 11vw;
  font-size: 13cqi;
  font-weight: 600; line-height: .86; letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__wordmark span {
  display: block; padding-bottom: .04em;
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.02) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__legal { margin-top: clamp(40px, 5vw, 64px); padding: 24px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); display: grid; gap: 6px; }
.footer__legal-name { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--text-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 76px 36px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.footer__bottom ul { display: flex; gap: 24px; }
.footer__bottom a:hover { color: var(--text); }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 80px) 0 120px; }
.legal .container { max-width: 820px; }
.site-header--solid .lang-switch { margin-left: auto; }
.legal__back { flex: none; }
@media (max-width: 1320px) { .site-header--solid .nav > .lang-switch { display: inline-flex; } }
@media (max-width: 560px) { .site-header--solid .brand__word { display: none; } }
.legal code { font-family: var(--mono); font-size: .9em; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }
.legal .updated { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.legal h2 { margin-top: 48px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.legal p, .legal li { margin-top: 14px; color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.site-header--solid { background: rgba(7, 8, 10, 0.85); backdrop-filter: blur(16px); border-bottom-color: var(--line); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .voice__wave span { transform: scaleY(var(--s, .4)); }
}

/* ---------- About: profile ---------- */
#about { padding-top: clamp(64px, 7vw, 104px); }
.profile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(96px, 11vw, 160px); }
.profile__photo { position: relative; margin: 0; order: 2; }
.profile__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 80px -30px var(--accent-glow); }
.profile__photo::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; pointer-events: none; background: linear-gradient(160deg, rgba(142,170,255,.35), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.profile__badge {
  position: absolute; left: clamp(-12px, -1vw, 0px); bottom: 28px;
  display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 2px;
  padding: 16px 22px; border-radius: 14px;
  background: rgba(10,12,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
}
.profile__badge strong { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.profile__badge span { font-size: 24px; color: var(--accent-2); }
.profile__badge em { grid-column: 1 / -1; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); line-height: 1.4; }
.profile__text { margin-top: 28px; display: grid; gap: 16px; color: var(--text-2); font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.7; max-width: 62ch; }
.profile__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.profile__stats > div { padding: 20px 16px 0 0; }
.profile__stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.profile__stats dd { order: -1; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.profile__stats > div { display: flex; flex-direction: column; gap: 8px; }
.profile__stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.profile__cert { display: flex; align-items: center; gap: 22px; margin-top: 36px; padding: 16px 24px 16px 16px; max-width: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.profile__cert img { width: 112px; height: auto; flex: none; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); transition: transform .5s var(--ease); }
.profile__cert:hover img { transform: rotate(-4deg) scale(1.04); }
.profile__cert-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.profile__cert strong { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.profile__cert div > span:last-child { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.section-head--values { margin-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 960px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 520px; order: 0; }
  .profile__badge { left: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .profile__stats > div + div { padding-left: 12px; }
  .profile__stats > div { padding-right: 8px; }
  .profile__cert { gap: 16px; padding-right: 16px; }
  .profile__cert img { width: 92px; }
}

/* ---------- WhatsApp ---------- */
.btn__wa { width: 18px; height: 18px; fill: currentColor; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(12,14,19,.9); border: 1px solid var(--line-2);
  color: #25D366;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.8);
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px); border-color: rgba(37,211,102,.5); box-shadow: 0 12px 40px -12px rgba(0,0,0,.8), 0 0 28px -6px rgba(37,211,102,.45); }
@media (max-width: 560px) { .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 86px; z-index: 90;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(12,14,19,.9); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.8);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, transform .45s var(--ease), visibility .35s, border-color .3s ease, box-shadow .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.to-top:hover { border-color: rgba(142,170,255,.5); box-shadow: 0 12px 40px -12px rgba(0,0,0,.8), 0 0 24px -6px var(--accent-glow); }
.to-top:hover svg { transform: translateY(-2px); }
body:not(:has(.wa-float)) .to-top { bottom: 20px; }
@media (max-width: 560px) {
  .to-top { right: 14px; bottom: 74px; width: 50px; height: 50px; }
  body:not(:has(.wa-float)) .to-top { bottom: 14px; }
}

/* ---------- Phone field with country prefix ---------- */
.phone { display: flex; gap: 8px; }
.phone select { flex: 0 0 210px; min-width: 0; padding-left: 12px; padding-right: 30px; background-position: right 12px center; text-overflow: ellipsis; }
.phone input { flex: 1; min-width: 0; }
.field--phone.has-error select { border-color: #ff6b6b; }
@media (max-width: 560px) { .phone select { flex-basis: 128px; } }
