/* ============================================================
   HAPPY AI — Design System
   ============================================================ */
:root {
  --bg: #05070B;
  --bg-2: #070B12;
  --panel: #0A101A;
  --text: #EDF1F7;
  --muted: #98A2B6;
  --line: rgba(148, 170, 210, 0.12);
  --blue: #4E8DFF;
  --cyan: #3AE2FF;
  --violet: #8A6CFF;
  --grad: linear-gradient(120deg, #4E8DFF, #3AE2FF 55%, #8A6CFF);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

[hidden] { display: none !important; }

::selection { background: rgba(58, 226, 255, 0.25); }

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

.container { max-width: 1220px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--panel); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 10px; transition: top 0.25s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--cyan); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }

.lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.75; max-width: 64ch; }

.section { padding-block: clamp(90px, 11vw, 150px); scroll-margin-top: calc(var(--header-h) + 8px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head .lead { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 15px 30px; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #3D7BFF, #2FCBEF);
  color: #031018;
  box-shadow: 0 8px 32px rgba(62, 150, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(62, 180, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(58, 226, 255, 0.55); background: rgba(58, 226, 255, 0.07); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 17px 38px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 27px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.14em; }
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 6px 0; transition: color 0.25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

/* Language dropdown */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); transition: color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { color: var(--text); border-color: rgba(58, 226, 255, 0.4); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: rgba(10, 16, 26, 0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); z-index: 110;
}
.lang-menu li {
  padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--muted);
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: rgba(58, 226, 255, 0.08); color: var(--text); }
.lang-menu li[aria-selected="true"] { color: var(--cyan); }

/* Hamburger */
.menu-toggle { display: none; width: 42px; height: 42px; position: relative; z-index: 130; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* Section-level clipping so diagram glows never cause horizontal scroll */
#brand-performance, #dsp, #optimization { overflow-x: clip; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(5, 7, 11, 0.94); backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 100px clamp(24px, 8vw, 60px) 60px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-link {
  font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 600;
  padding: 10px 0; color: var(--text); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s;
}
.mobile-menu.open .mobile-nav-link { opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.30s; }
.mobile-nav-link:hover { color: var(--cyan); }
.mobile-lang-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); display: block; margin-bottom: 14px; }
.mobile-lang-options { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-lang-options button {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); transition: border-color 0.25s, color 0.25s;
}
.mobile-lang-options button.active, .mobile-lang-options button:hover { border-color: var(--cyan); color: var(--cyan); }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 32px); padding-bottom: 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 210, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at var(--mx, 70%) var(--my, 30%), rgba(78, 141, 255, 0.13), transparent 65%),
    radial-gradient(700px 500px at 15% 85%, rgba(138, 108, 255, 0.09), transparent 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 5vw, 72px); align-items: center; width: 100%; }
.hero-title { font-size: clamp(38px, 5vw, 64px); margin-bottom: 24px; }
.hero-sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; max-width: 54ch; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.venture { font-size: 13.5px; color: var(--muted); letter-spacing: 0.02em; }
.venture-link { color: var(--text); font-weight: 600; border-bottom: 1px solid rgba(58, 226, 255, 0.45); transition: color 0.25s ease, border-color 0.25s ease; }
.venture-link:hover { color: var(--cyan); border-color: var(--cyan); }
.venture-lg { margin-top: 34px; font-size: 15px; }

/* ---------- Network visualizations ---------- */
.netviz { position: relative; }
.netviz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.netviz-nodes {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.netviz-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.netviz-out { align-items: flex-end; }
.hero-visual { height: clamp(460px, 48vw, 580px); }

.node-chip {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10, 16, 26, 0.7);
  backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.node-chip-out { border-color: rgba(58, 226, 255, 0.35); color: #BFEFFB; background: rgba(14, 30, 44, 0.7); }
.node-chip-lg { padding: 14px 26px; font-size: 12.5px; }

.netviz-hub {
  position: relative; flex-shrink: 0;
  width: 158px; height: 158px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 32% 28%, rgba(78, 141, 255, 0.28), rgba(10, 16, 26, 0.9) 68%);
  border: 1px solid rgba(78, 141, 255, 0.45);
  box-shadow: 0 0 70px rgba(78, 141, 255, 0.28), inset 0 0 40px rgba(58, 226, 255, 0.07);
}
.hub-label {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; line-height: 1.3; padding: 0 14px;
  background: linear-gradient(120deg, #FFFFFF, #9CD8FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(58, 226, 255, 0.5); animation: hubPulse 3.2s ease-out infinite; }
@keyframes hubPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.dsp-diagram, .opt-diagram { height: clamp(380px, 40vw, 470px); }
.dsp-diagram .netviz-hub, .opt-diagram .netviz-hub { border-radius: 28px; width: auto; height: auto; padding: 34px 36px; }
.dsp-diagram .hub-ring, .opt-diagram .hub-ring { border-radius: 28px; }
.opt-diagram .netviz-out { justify-content: center; }

/* Brand + Performance diagram */
.bp-diagram { padding-block: 30px; }
.bp-diagram .netviz-nodes-two { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 60px); }
.bp-diagram .netviz-col:last-child { align-items: flex-end; }
.netviz-mid { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hub-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: center; }
.col-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px; }
.col-title-brand { color: var(--violet); }
.col-title-perf { color: var(--cyan); }
.bp-out { margin-top: 6px; }

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); margin-bottom: clamp(56px, 7vw, 90px); }
.problem-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-block {
  position: relative; padding: 34px 30px 38px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(148, 170, 210, 0.04), transparent 55%);
  overflow: hidden; transition: border-color 0.3s ease, transform 0.3s ease;
}
.problem-block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s ease;
}
.problem-block:hover { border-color: rgba(78, 141, 255, 0.35); transform: translateY(-4px); }
.problem-block:hover::before { opacity: 1; }
.pb-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--cyan); display: block; margin-bottom: 44px; }
.problem-block h3 { margin-bottom: 12px; }
.problem-block p { color: var(--muted); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { position: relative; max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px); }
.steps::before {
  content: ""; position: absolute; left: 35px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(78, 141, 255, 0.4) 12%, rgba(138, 108, 255, 0.4) 88%, transparent);
}
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.step-num {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--cyan); background: #080D16; border: 1px solid rgba(78, 141, 255, 0.4);
  box-shadow: 0 0 26px rgba(78, 141, 255, 0.15);
}
.step-body { padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 16, 26, 0.5); transition: border-color 0.3s ease, transform 0.3s ease; }
.step:hover .step-body { border-color: rgba(58, 226, 255, 0.3); transform: translateX(6px); }
.step-body h3 { margin-bottom: 10px; }
.step-body p { color: var(--muted); font-size: 14.5px; }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card {
  padding: 30px 26px 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(148, 170, 210, 0.045), transparent 60%);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cap-card:hover {
  border-color: rgba(58, 226, 255, 0.35); transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 30px rgba(58, 226, 255, 0.06);
}
.cap-icon { width: 34px; height: 34px; color: var(--cyan); margin-bottom: 22px; }
.cap-card h3 { font-size: 17px; margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* ---------- Why ---------- */
.why-compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; }
.why-panel { padding: clamp(30px, 4vw, 44px); border-radius: var(--radius); }
.why-trad { border: 1px solid var(--line); background: rgba(10, 16, 26, 0.4); }
.why-happy {
  position: relative; border: 1px solid rgba(78, 141, 255, 0.4);
  background: linear-gradient(160deg, rgba(78, 141, 255, 0.09), rgba(138, 108, 255, 0.05) 60%, transparent);
  box-shadow: 0 0 60px rgba(78, 141, 255, 0.1);
}
.why-panel h3 { margin-bottom: 30px; }
.why-flow li {
  position: relative; padding: 13px 18px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted);
  margin-bottom: 26px;
}
.why-flow li::after {
  content: ""; position: absolute; left: 24px; bottom: -26px; height: 26px; width: 1px;
  background: repeating-linear-gradient(180deg, rgba(148,170,210,.5) 0 4px, transparent 4px 8px);
}
.why-flow li:last-child { margin-bottom: 0; }
.why-flow li:last-child::after { display: none; }
.why-happy .why-flow li { border-color: rgba(58, 226, 255, 0.3); color: var(--text); background: rgba(58, 226, 255, 0.04); }
.why-happy .why-flow li::after { background: repeating-linear-gradient(180deg, rgba(58,226,255,.6) 0 4px, transparent 4px 8px); animation: dashFlow 1.4s linear infinite; }
@keyframes dashFlow { to { background-position: 0 8px; } }
.why-note { margin-top: 26px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.why-happy .why-note { color: var(--cyan); }

/* ---------- About ---------- */
.about-inner { max-width: 800px; }
.about-inner h2 { margin-bottom: 30px; }
.about-inner .lead + .lead { margin-top: 20px; }

/* ---------- Statement ---------- */
.statement { position: relative; padding-block: clamp(110px, 15vw, 210px); overflow: hidden; border-block: 1px solid var(--line); }
.statement-bg { position: absolute; inset: 0; pointer-events: none; }
.statement-bg::before {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(78, 141, 255, 0.14), transparent 62%);
  animation: drift 26s ease-in-out infinite alternate;
}
.statement-bg::after {
  content: ""; position: absolute; width: 52vmax; height: 52vmax; right: -18vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(138, 108, 255, 0.12), transparent 62%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vmax, 5vmax) scale(1.12); } }
.stmt-line {
  position: relative; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -0.03em;
}
.stmt-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 30px); }
.contact-copy .lead { margin-top: 22px; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(148, 170, 210, 0.05), transparent 50%);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.field input, .field textarea {
  font: inherit; font-size: 14.5px; color: var(--text);
  background: rgba(6, 10, 17, 0.8); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(152, 162, 182, 0.45); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(58, 226, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(58, 226, 255, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: rgba(255, 122, 122, 0.65); }
.field-error { font-size: 12.5px; color: #FF8F8F; min-height: 0; display: none; }
.field.invalid .field-error { display: block; }
.form-status { margin-top: 16px; font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #5BE49B; }
.form-status.err { color: #FF8F8F; }
.form-status.info { color: var(--cyan); }
.form-status a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(56px, 7vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand-logo { margin-bottom: 18px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.footer-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: var(--muted); transition: color 0.25s ease; width: fit-content; }
.footer-nav a:hover { color: var(--cyan); }
.footer-lang-options { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-lang-options button {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.footer-lang-options button.active, .footer-lang-options button:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-legal-link { font-size: 13.5px; color: var(--muted); width: fit-content; transition: color 0.25s ease; }
.footer-legal-link:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 26px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ---------- Cookie ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 200; width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: 16px;
  background: rgba(10, 16, 26, 0.92); backdrop-filter: blur(18px);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cookie-text { flex: 1 1 320px; font-size: 13.5px; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-modal-wrap {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center;
  background: rgba(3, 5, 8, 0.7); backdrop-filter: blur(6px); padding: 20px;
}
.cookie-modal {
  width: min(520px, 100%); max-height: 90vh; overflow: auto;
  background: #0A101A; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
}
.cookie-modal h2 { font-size: 22px; margin-bottom: 24px; }
.cookie-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.cookie-row strong { font-size: 14.5px; }
.cookie-row p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cookie-always { font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; white-space: nowrap; }
.cookie-modal .btn { width: 100%; margin-top: 22px; }

.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(148, 170, 210, 0.25); transition: background-color 0.25s ease;
}
.switch .slider::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform 0.25s ease;
}
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Award motion layer ---------- */
html.lenis { scroll-behavior: auto; }

.hero-title .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .wm > span { display: inline-block; will-change: transform; }

.hero-bg::before { animation: gridDrift 80s linear infinite; }
@keyframes gridDrift { to { background-position: 56px 56px; } }

.hero-visual .netviz-nodes { transform-style: preserve-3d; will-change: transform; }
.hero-visual .netviz-hub { transform: translateZ(46px); }
.hero-visual .node-chip { transform: translateZ(22px); }

/* Manifesto chapter numbers */
.eyebrow[data-ch]::after { content: attr(data-ch); order: -1; margin-right: 14px; color: var(--cyan); font-family: var(--font-display); font-weight: 600; }

/* Editorial marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(26px, 3.5vw, 42px); }
.marquee-track { display: flex; width: max-content; animation: mqScroll 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: clamp(40px, 5vw, 76px); padding-right: clamp(40px, 5vw, 76px); }
.marquee-group span { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.4vw, 32px); letter-spacing: -0.01em; white-space: nowrap; }
.marquee-group span.mq-o { color: transparent; -webkit-text-stroke: 1px rgba(152, 162, 182, 0.55); }
.mq-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
@keyframes mqScroll { to { transform: translateX(-50%); } }

/* Capability card glare */
.cap-card { position: relative; }
.cap-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(58, 226, 255, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.cap-card:hover::after { opacity: 1; }

/* ---------- Legal pages ---------- */
.legal-main { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 90px)); padding-bottom: clamp(70px, 9vw, 120px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 4.5vw, 54px); margin-bottom: 14px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 18px; color: var(--muted); font-size: 15.5px; line-height: 1.8; list-style: disc; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(58, 226, 255, 0.45); transition: color 0.25s ease; }
.prose a:hover { color: var(--cyan); }
.prose strong { color: var(--text); font-weight: 600; }
.legal-updated { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 34px; }
.legal-footer { border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); }
  .hero-visual { height: 430px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .problem-blocks { grid-template-columns: 1fr; }
  .why-compare { grid-template-columns: 1fr; }
  .pb-num { margin-bottom: 24px; }
}

@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; }
  .netviz-nodes { gap: 10px; }
  .node-chip { padding: 6px 11px; font-size: 9.5px; letter-spacing: 0.1em; }
  .netviz-hub { width: 122px; height: 122px; }
  .hub-label { font-size: 12px; }
  .dsp-diagram, .opt-diagram { height: auto; padding-block: 12px; }
  .dsp-diagram .netviz-nodes, .opt-diagram .netviz-nodes { flex-direction: column; justify-content: center; gap: 26px; }
  .dsp-diagram .netviz-col, .opt-diagram .netviz-col { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
  .dsp-diagram .netviz-hub, .opt-diagram .netviz-hub { padding: 24px 22px; }
  .dsp-diagram .hub-label, .opt-diagram .hub-label { font-size: 11.5px; letter-spacing: 0.07em; }
  .bp-diagram .netviz-nodes-two { grid-template-columns: 1fr; gap: 26px; }
  .bp-diagram .netviz-col, .bp-diagram .netviz-col:last-child { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }
  .col-title { width: 100%; text-align: center; margin-bottom: 4px; }
  .step { grid-template-columns: 56px 1fr; }
  .step-num { width: 56px; height: 56px; font-size: 14px; }
  .steps::before { left: 27px; }
  .step-body { padding: 20px 22px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track, .hero-bg::before { animation: none !important; }
}
