/* Epicsoft — premium corporate dark theme */
:root {
  color-scheme: dark;
  --bg: #080809;
  --bg-elevated: #0f0f12;
  --surface: #131318;
  --surface-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --purple-glow: rgba(139, 92, 246, 0.25);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.12);
  --eldrun: #ff6a1a;
  --eldrun-hot: #ff4500;
  --eldrun-glow: rgba(255, 106, 26, 0.35);
  --doklady-purple: #a855f7;
  --doklady-glow: rgba(168, 85, 247, 0.35);
  --green: #22c55e;
  --glass: linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --max: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #18181b;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --purple-dim: rgba(139, 92, 246, 0.1);
  --purple-glow: rgba(139, 92, 246, 0.16);
  --orange-dim: rgba(249, 115, 22, 0.1);
  --glass: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
}

[data-theme="light"] .site-bg__base {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.07), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
}

[data-theme="light"] .site-bg__grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .site-bg__vignette {
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.04) 100%);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav-main > a:hover,
[data-theme="light"] .nav-dropdown > button:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-dropdown__menu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lang-switch,
[data-theme="light"] .theme-pref,
[data-theme="light"] .nav-toggle,
[data-theme="light"] .btn--ghost {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .card,
[data-theme="light"] .domain-card,
[data-theme="light"] .metric,
[data-theme="light"] .feature-item,
[data-theme="light"] .contact-trust,
[data-theme="light"] .form-panel,
[data-theme="light"] .cta-panel,
[data-theme="light"] .ds-teaser,
[data-theme="light"] .eco-node,
[data-theme="light"] .empty-state {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card {
  background: #ffffff;
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #particleCanvas {
  opacity: 0.2;
}

/* Light theme — status badges */
[data-theme="light"] .status--active,
[data-theme="light"] .status--live {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

[data-theme="light"] .status--production {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.3);
}

[data-theme="light"] .status--wip {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

/* Light theme — pillar & featured cards */
[data-theme="light"] .card--engineering {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .card--engineering:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card--ai-pillar,
[data-theme="light"] .card--featured {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.06), #ffffff);
  border-color: rgba(139, 92, 246, 0.28);
}

[data-theme="light"] .card--ai-pillar:hover,
[data-theme="light"] .card--featured:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .card--flagship {
  background: #ffffff;
}

[data-theme="light"] .pillar-tags span {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light theme — ecosystem diagram */
[data-theme="light"] .ecosystem {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .eco-node {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .eco-node--root {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .eco-node--ai {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.08), #ffffff);
  border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .eco-node--doklady {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.1), #ffffff);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: none;
}

[data-theme="light"] .eco-node--eldrun {
  background: linear-gradient(160deg, rgba(255, 106, 26, 0.08), #ffffff);
  border-color: rgba(255, 106, 26, 0.4);
}

[data-theme="light"] .eco-node:hover {
  background: #fafafa;
  border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .eco-cap {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

[data-theme="light"] .eco-connector,
[data-theme="light"] .eco-branch::before,
[data-theme="light"] .eco-products .eco-node::before,
[data-theme="light"] .eco-cap::before {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .eco-level::before,
[data-theme="light"] .eco-products::before,
[data-theme="light"] .eco-capabilities::before {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.12));
}

/* Light theme — product showcase */
[data-theme="light"] .product-showcase {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .product-showcase h3 {
  color: var(--text);
}

[data-theme="light"] .product-showcase p {
  color: var(--text-muted);
}

[data-theme="light"] .product-showcase__features span {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

[data-theme="light"] .product-showcase--doklady {
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.1) 0%, #ffffff 55%, rgba(168, 85, 247, 0.06) 100%);
  border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .product-showcase--doklady::before,
[data-theme="light"] .product-showcase--doklady::after {
  opacity: 0.35;
}

[data-theme="light"] .product-showcase--doklady .product-showcase__label {
  color: #7c3aed;
}

[data-theme="light"] .product-showcase--doklady .product-showcase__features span {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.22);
  color: #6d28d9;
}

[data-theme="light"] .product-showcase--eldrun {
  background: linear-gradient(165deg, rgba(255, 106, 26, 0.08) 0%, #ffffff 55%, rgba(255, 106, 26, 0.05) 100%);
  border-color: rgba(255, 106, 26, 0.35);
}

[data-theme="light"] .product-showcase--eldrun .product-showcase__label {
  color: #c2410c;
}

[data-theme="light"] .product-showcase--eldrun .product-showcase__features span {
  background: rgba(255, 106, 26, 0.08);
  border-color: rgba(255, 106, 26, 0.22);
  color: #c2410c;
}

[data-theme="light"] .forge-glow--outer {
  background: radial-gradient(ellipse 60% 55% at 50% 70%, rgba(255, 106, 26, 0.08) 0%, transparent 65%);
}

[data-theme="light"] .forge-glow--inner {
  background: radial-gradient(circle at 50% 80%, rgba(255, 180, 80, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .ds-teaser {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, #ffffff 55%);
  border-color: rgba(139, 92, 246, 0.25);
}

[data-theme="light"] .brand-message .brand-message__ai { color: #7c3aed; }
[data-theme="light"] .brand-message .brand-message__doklady { color: #9333ea; }
[data-theme="light"] .brand-message .brand-message__eldrun { color: #ea580c; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body > *:not(.site-bg):not(#particleCanvas):not(.site-header) {
  position: relative;
  z-index: 1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* Background */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, var(--bg) 100%);
}

.site-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
}

.site-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 120px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main > a,
.nav-dropdown > button {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-main > a:hover,
.nav-dropdown > button:hover,
.nav-main > a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-main > a.is-active { color: var(--purple); }

.nav-dropdown {
  position: relative;
  z-index: 1100;
}

/* Invisible bridge so hover doesn't break between button and menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-dropdown__menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1101;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown__menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown__menu a.is-ai {
  color: var(--purple);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.lang-switch a {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a.is-active {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.theme-pref {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.theme-pref button {
  padding: 0.3rem 0.42rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-pref button:hover:not(.is-active) {
  color: var(--text-muted);
}

.theme-pref button.is-active {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(640px, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(8, 8, 9, 0.92);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--purple-glow);
  background: #9d7bf7;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--orange {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn--orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Page layout */
.page-main { padding-top: var(--nav-h); }

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-desc--center { margin-inline: auto; }

/* Hero */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero--page {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.hero__glow {
  position: absolute;
  top: 0;
  right: -10%;
  width: min(600px, 60vw);
  height: min(600px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero__title {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero__title--wide { max-width: 18ch; }

.hero__sub {
  margin: 0 0 2rem;
  max-width: 58ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-showcase-grid {
  align-items: stretch;
}

.product-showcase-grid .product-showcase {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-showcase-grid .product-showcase__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-showcase-grid .product-showcase__inner .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.card--featured {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.card--featured:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.12);
}

.card--wip { border-style: dashed; border-color: rgba(249, 115, 22, 0.25); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card__label--purple { color: var(--purple); }

.status {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status--live {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status--wip {
  color: #fdba74;
  background: var(--orange-dim);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap 0.2s ease;
}

.card__link:hover { gap: 0.6rem; color: #c4b5fd; }

.cap-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  min-height: 140px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.cap-card--ai {
  grid-column: span 1;
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1) 0%, rgba(255,255,255,0.02) 100%);
}

.cap-card--ai:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.cap-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.cap-card--ai .cap-card__icon {
  background: var(--purple-dim);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple);
}

.cap-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.cap-card p {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.cap-card__arrow {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cap-card:hover .cap-card__arrow { color: var(--purple); }

/* AI highlight section */
.ai-banner {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(255,255,255,0.02) 60%);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ai-banner__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.ai-banner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ai-banner p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Feature list (landing pages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.feature-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* CTA panel */
.cta-panel {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border-strong);
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-panel p {
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-info p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.contact-detail {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-detail a,
.contact-detail span {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-detail a:hover { color: var(--purple); }

.contact-form {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback--success {
  color: #34d399;
}

.form-feedback--error {
  color: #f87171;
}

.contact-form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  max-width: 30ch;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-meta a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-meta a:hover { color: var(--purple); }

.lang-switch--footer {
  display: inline-flex;
  width: fit-content;
}

.footer-grid--enterprise {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
}

/* DS-Intelligence teaser */
.ds-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(255,255,255,0.02) 55%);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.ds-teaser__content .section-title {
  margin-bottom: 0.65rem;
}

.ds-teaser__content p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Domain expertise cards */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.domain-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.domain-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.domain-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.domain-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact trust block */
.contact-trust {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.contact-trust h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-trust p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-trust li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
}

/* Empty states (404, WIP) */
.page-main--empty {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
}

.empty-state {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.empty-state h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.empty-state > p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.empty-state__hint {
  margin: 1rem 0 1.75rem !important;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.empty-state--wip .empty-state__badge {
  display: inline-block;
  margin-bottom: 1rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

.bg-elevated { background: var(--bg-elevated); }

.status--active {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status--production {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.card--engineering {
  border-color: rgba(255, 255, 255, 0.12);
}

.card--engineering:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.card--ai-pillar {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(255,255,255,0.02));
}

.card--ai-pillar:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 56px rgba(139, 92, 246, 0.15);
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1rem;
}

.pillar-tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.brand-message {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.brand-message p {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-message p:last-child { margin-bottom: 0; }

.brand-message .brand-message__ai { color: #c4b5fd; }
.brand-message .brand-message__doklady { color: #d8b4fe; }
.brand-message .brand-message__eldrun { color: #fdba74; }

.experience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.experience-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}

.experience-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.experience-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-item {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.project-item:hover { border-color: var(--border-strong); }

.project-item h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.project-item p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.hero--ds-intelligence .hero__glow {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%);
}

.product-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 280px;
}

.product-showcase__inner {
  position: relative;
  z-index: 2;
}

.product-showcase__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.product-showcase h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.product-showcase p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.6;
}

.product-showcase__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.product-showcase__features span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

/* Doklady.ai — breathing purple */
.product-showcase--doklady {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(155deg, rgba(88, 28, 135, 0.25) 0%, rgba(15, 15, 18, 0.95) 55%, rgba(139, 92, 246, 0.08) 100%);
}

.product-showcase--doklady::before,
.product-showcase--doklady::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.product-showcase--doklady::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: rgba(168, 85, 247, 0.35);
  animation: doklady-breathe 5s ease-in-out infinite;
}

.product-showcase--doklady::after {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -30px;
  background: rgba(139, 92, 246, 0.2);
  animation: doklady-breathe 4s ease-in-out infinite reverse;
}

@keyframes doklady-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.product-showcase--doklady .product-showcase__label {
  color: #e9d5ff;
}

.product-showcase--doklady .product-showcase__features span {
  border-color: rgba(168, 85, 247, 0.3);
  color: #ddd6fe;
}

/* Eldrun — forge */
.product-showcase--eldrun {
  border-color: rgba(255, 106, 26, 0.35);
  background: linear-gradient(165deg, rgba(40, 12, 0, 0.6) 0%, rgba(15, 15, 18, 0.98) 50%, rgba(255, 69, 0, 0.06) 100%);
}

.product-showcase--eldrun .product-showcase__label {
  color: #fdba74;
  font-family: "JetBrains Mono", "Inter", monospace;
  letter-spacing: 0.06em;
}

.forge-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.forge-glow--outer {
  background: radial-gradient(ellipse 60% 55% at 50% 70%, rgba(255, 106, 26, 0.14) 0%, rgba(255, 69, 0, 0.05) 40%, transparent 65%);
  animation: forge-breathe 5s ease-in-out infinite;
}

.forge-glow--inner {
  background: radial-gradient(circle at 50% 80%, rgba(255, 180, 80, 0.1) 0%, rgba(255, 106, 26, 0.04) 45%, transparent 60%);
  filter: blur(14px);
  animation: forge-breathe 3.5s ease-in-out infinite reverse;
}

@keyframes forge-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.spark-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc266;
  box-shadow: 0 0 10px var(--eldrun), 0 0 4px #ffb347;
  animation: spark-drift var(--dur, 4s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.spark--sm { width: 3px; height: 3px; }
.spark--lg { width: 5px; height: 5px; box-shadow: 0 0 14px var(--eldrun), 0 0 6px #ffb347, 0 0 2px #fff; }

.spark--ember {
  width: 4px;
  height: 6px;
  border-radius: 40% 40% 50% 50%;
  animation-name: ember-rise;
}

@keyframes spark-drift {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.15); }
}

@keyframes ember-rise {
  0% { opacity: 0; transform: translate(0, 6px) scale(0.5); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.1); }
}

.eldrun-runes {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 140, 51, 0.25);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.platform-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.platform-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}

.platform-item h4 { margin: 0 0 0.35rem; font-size: 0.92rem; }
.platform-item p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.card--flagship {
  border-color: rgba(139, 92, 246, 0.22);
}

.card--flagship:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.1);
}

/* Ecosystem diagram */
.ecosystem {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.ecosystem-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.eco-node {
  position: relative;
  width: 100%;
  max-width: 210px;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.eco-node a {
  font-weight: 600;
  font-size: 0.92rem;
}

.eco-node small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 400;
}

.eco-node--root {
  max-width: 180px;
  font-size: 1.05rem;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.eco-node--ai {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.02));
}

.eco-node--vault {
  border-color: rgba(255, 255, 255, 0.14);
}

.eco-node--product {
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
}

.eco-node--child {
  max-width: 150px;
}

.eco-node--wip {
  border-style: dashed;
  border-color: rgba(249, 115, 22, 0.35);
  opacity: 0.9;
}

.eco-node:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.eco-connector {
  width: 2px;
  height: 22px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(255,255,255,0.12));
}

.eco-level {
  position: relative;
  width: 100%;
  padding-top: 22px;
}

.eco-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.15));
}

.eco-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  align-items: start;
}

.eco-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 22px;
}

.eco-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(255,255,255,0.12));
}

.eco-branch-label {
  min-height: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.eco-subtree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0.35rem;
}

.eco-products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  padding-top: 22px;
}

.eco-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.15));
}

.eco-products .eco-node::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.35), rgba(255,255,255,0.1));
}

.eco-level--dual::before {
  left: 25%;
  right: 25%;
}

.eco-row--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

.eco-capabilities {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  padding-top: 22px;
}

.eco-capabilities::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.15));
}

.eco-cap {
  position: relative;
  display: block;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.eco-cap::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.35), rgba(255, 255, 255, 0.1));
}

.eco-cap:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
}

.eco-node--doklady {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.15), rgba(255, 255, 255, 0.02));
  animation: doklady-border-breathe 4s ease-in-out infinite;
}

@keyframes doklady-border-breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
}

.eco-node--eldrun {
  border-color: rgba(255, 106, 26, 0.4);
  background: linear-gradient(160deg, rgba(255, 106, 26, 0.1), rgba(255, 255, 255, 0.02));
  border-style: dashed;
}

@media (max-width: 720px) {
  .eco-row {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }

  .eco-level::before {
    display: none;
  }

  .eco-branch {
    padding-top: 0;
  }

  .eco-branch::before,
  .eco-products::before,
  .eco-products .eco-node::before {
    display: none;
  }

  .eco-products {
    max-width: 260px;
  }

  .eco-row--dual {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .eco-capabilities::before,
  .eco-cap::before {
    display: none;
  }

  .experience-list,
  .project-list,
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.upcoming-panel {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.04);
}

.upcoming-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.upcoming-item strong { font-size: 1rem; }
.upcoming-item p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-banner__grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-teaser { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-main,
  .nav-actions .btn--ghost { display: none; }

  .nav-toggle { display: block; }

  .site-header.is-open .nav-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }

  .site-header.is-open .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.25rem 0.75rem;
    background: transparent;
  }

  .site-header.is-open .nav-actions {
    position: absolute;
    top: calc(var(--nav-h) + 280px);
    left: 1rem;
    right: 1rem;
  }

  .site-header.is-open .nav-actions .btn--ghost { display: inline-flex; width: 100%; }

  .grid-3,
  .grid-2,
  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .hero__title { max-width: none; }

  .cookie-banner {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 0.9rem 1rem;
  }

  .cookie-banner__btn {
    width: 100%;
    justify-content: center;
  }

  .theme-pref button {
    padding: 0.28rem 0.35rem;
    font-size: 0.58rem;
  }
}
