/* ── /ecosystem — the Vilkax ecosystem hub ────────────────────────────
   External stylesheet (never an inline <style>): the production CSP is
   style-src 'self' 'unsafe-inline' but this page keeps ALL rules here so it
   passes the csp-inline-style-lockdown discipline and matches the marketing
   architecture. Dark Wolf design system on the canonical --vx-* tokens +
   self-hosted fonts (NEVER the Google Fonts CDN — CSP + brand rule). Colours,
   wolf and wordmark come from the locked brand system; nothing is re-lettered
   or re-coloured here. */

.eco {
  --f-disp: "Bricolage Grotesque", "Sora", sans-serif;
  --f-body: "Manrope", "Inter", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(18px, 4vw, 32px) 96px;
}

/* ── ambient field ─────────────────────────────────────────── */
.eco-aurora {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(12px);
  background:
    radial-gradient(36% 42% at 80% 6%, rgba(177, 76, 255, 0.20), transparent 62%),
    radial-gradient(32% 38% at 10% 4%, rgba(0, 229, 184, 0.12), transparent 60%),
    radial-gradient(46% 50% at 52% 118%, rgba(76, 140, 255, 0.12), transparent 60%);
  opacity: 0.5; animation: eco-drift 28s var(--ease) infinite alternate;
}
@keyframes eco-drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0); }
  50% { transform: translate3d(-2.5%, 1.5%, 0) scale(1.08) rotate(2deg); }
  100% { transform: translate3d(2.5%, -1.5%, 0) scale(1.05) rotate(-2deg); }
}
.eco-spot {
  position: fixed; width: 720px; height: 720px; left: 0; top: 0; z-index: 0;
  pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: screen; opacity: 0.3;
  background: radial-gradient(circle, rgba(177, 76, 255, 0.15), rgba(76, 140, 255, 0.05) 38%, transparent 66%);
}
.eco-grain {
  position: fixed; inset: 0; z-index: 0; opacity: 0.3; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}
@media (prefers-reduced-motion: reduce) {
  .eco-aurora { animation: none; }
  .eco-spot { display: none; }
}

/* ── hero ──────────────────────────────────────────────────── */
.eco-hero { margin-bottom: 8px; }
.eco-cat {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--vx-accent-br, #C88AFF);
}
.eco-hero h1 {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -0.03em;
  max-width: 18ch; margin-top: 16px; text-wrap: balance;
}
.eco-hero h1 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--vx-mint-br, #5BF5DA);
}
.eco-hero p {
  color: var(--vx-text-muted, #9AA6BC); font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6; margin-top: 18px; max-width: 62ch; text-wrap: pretty;
}
.eco-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.eco-btn {
  height: 48px; padding: 0 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px; transition: 0.18s var(--ease);
  font-family: var(--f-body);
}
.eco-btn svg { width: 17px; height: 17px; }
.eco-btn.primary {
  background: linear-gradient(135deg, var(--vx-accent, #B14CFF), #8B2FD6); color: #fff;
  border: 1px solid var(--vx-accent-ln, rgba(177, 76, 255, 0.32));
  box-shadow: 0 14px 40px -16px var(--vx-accent, #B14CFF);
}
.eco-btn.primary:hover { box-shadow: 0 18px 48px -14px var(--vx-accent, #B14CFF); transform: translateY(-2px); }
.eco-btn.ghost {
  background: var(--vx-surface-1, #10141F); border: 1px solid var(--vx-line-2, rgba(255, 255, 255, 0.14));
  color: var(--vx-text-muted, #9AA6BC);
}
.eco-btn.ghost:hover { color: var(--vx-text, #EEF2FA); transform: translateY(-2px); }

/* ── stat row ──────────────────────────────────────────────── */
.eco-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.eco-stat {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--vx-line, rgba(255, 255, 255, 0.07));
  background: linear-gradient(180deg, var(--vx-surface-1, #10141F), var(--vx-surface-0, #0B0E16));
  overflow: hidden; position: relative; transition: 0.2s var(--ease);
}
.eco-stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--vx-accent, #B14CFF), transparent); opacity: 0.5;
}
.eco-stat:hover { transform: translateY(-3px); border-color: var(--vx-line-2, rgba(255, 255, 255, 0.14)); }
.eco-stat .v {
  font-family: var(--f-disp); font-weight: 700; font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--vx-text, #EEF2FA);
}
.eco-stat .v.m { color: var(--vx-mint-br, #5BF5DA); }
.eco-stat .v.b { color: var(--vx-blue-br, #86B4FF); }
.eco-stat .v.e { color: var(--vx-emerald-br, #5BE3AD); }
.eco-stat .k {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--vx-text-dim, #6E7B93); margin-top: 7px;
}

/* ── section label ─────────────────────────────────────────── */
.eco-lbl {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vx-text-faint, #4B596E); margin: 50px 0 16px; display: flex; align-items: center; gap: 12px;
}
.eco-lbl::after { content: ""; flex: 1; height: 1px; background: var(--vx-line, rgba(255, 255, 255, 0.07)); }

/* ── product cards ─────────────────────────────────────────── */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eco-card {
  position: relative; border-radius: 18px; border: 1px solid var(--vx-line, rgba(255, 255, 255, 0.07));
  background: var(--vx-surface-1, #10141F); padding: 22px; display: flex; flex-direction: column;
  gap: 12px; min-height: 200px; transition: 0.2s var(--ease); overflow: hidden; color: inherit;
  text-decoration: none;
}
.eco-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: 0.2s;
}
.eco-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%), var(--accent-sf), transparent 60%);
}
.eco-card:hover {
  transform: translateY(-5px); border-color: var(--vx-line-2, rgba(255, 255, 255, 0.14));
  background: var(--vx-surface-2, #161B29); box-shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.9);
}
.eco-card:hover::before { opacity: 1; }
.eco-card:hover::after { opacity: 1; }
.eco-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eco-card .ic {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-sf); color: var(--accent);
}
.eco-card .ic svg { width: 23px; height: 23px; }
.eco-card h3 {
  font-family: var(--f-disp); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  position: relative; z-index: 1; color: var(--vx-text, #EEF2FA);
}
.eco-card p { font-size: 13px; color: var(--vx-text-muted, #9AA6BC); line-height: 1.5; flex: 1; position: relative; z-index: 1; }
.eco-card .go {
  display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; position: relative; z-index: 1;
}
.eco-card .go svg { width: 13px; height: 13px; transition: transform 0.18s var(--ease); }
.eco-card:hover .go svg { transform: translateX(3px); }
.eco-card .flag {
  position: absolute; top: 20px; right: 22px; font-family: var(--f-mono); font-size: 8px;
  letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
  background: var(--accent-sf); color: var(--accent); border: 1px solid var(--accent-ln, var(--vx-line-2)); z-index: 1;
}

.eco-a-violet  { --accent: var(--vx-accent-br, #C88AFF); --accent-sf: var(--vx-accent-sf, rgba(177, 76, 255, 0.12)); --accent-ln: var(--vx-accent-ln, rgba(177, 76, 255, 0.32)); }
.eco-a-mint    { --accent: var(--vx-mint-br, #5BF5DA);   --accent-sf: var(--vx-mint-sf, rgba(0, 229, 184, 0.12));   --accent-ln: var(--vx-mint-ln, rgba(0, 229, 184, 0.30)); }
.eco-a-blue    { --accent: var(--vx-blue-br, #86B4FF);   --accent-sf: var(--vx-blue-sf, rgba(76, 140, 255, 0.12));  --accent-ln: var(--vx-blue-ln, rgba(76, 140, 255, 0.32)); }
.eco-a-emerald { --accent: var(--vx-emerald-br, #5BE3AD);--accent-sf: var(--vx-emerald-sf, rgba(52, 211, 153, 0.12));--accent-ln: var(--vx-emerald-ln, rgba(52, 211, 153, 0.30)); }
.eco-a-amber   { --accent: #F5B544; --accent-sf: rgba(245, 181, 68, 0.12); --accent-ln: rgba(245, 181, 68, 0.30); }
.eco-a-cyan    { --accent: #22C9E0; --accent-sf: rgba(34, 201, 224, 0.12); --accent-ln: rgba(34, 201, 224, 0.30); }

/* ── manifesto ─────────────────────────────────────────────── */
.eco-manifesto {
  position: relative; margin-top: 54px; border-radius: 20px;
  border: 1px solid var(--vx-accent-ln, rgba(177, 76, 255, 0.32));
  background: linear-gradient(140deg, var(--vx-accent-sf, rgba(177, 76, 255, 0.12)), transparent 70%), var(--vx-surface-1, #10141F);
  padding: clamp(28px, 4vw, 40px); overflow: hidden;
}
.eco-manifesto::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--vx-accent, #B14CFF), var(--vx-mint, #00E5B8), transparent);
  background-size: 200% 100%; animation: eco-flow 5s linear infinite;
}
@keyframes eco-flow { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .eco-manifesto::before { animation: none; } }
.eco-manifesto .q {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 3vw, 30px);
  line-height: 1.34; letter-spacing: -0.01em; max-width: 32ch; color: var(--vx-text, #EEF2FA);
}
.eco-manifesto .q b { font-style: normal; font-family: var(--f-disp); font-weight: 700; color: var(--vx-mint-br, #5BF5DA); }
.eco-manifesto .sig {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--vx-text-dim, #6E7B93); margin-top: 20px; text-transform: uppercase;
}

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .eco-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .eco-grid, .eco-stats { grid-template-columns: 1fr; }
  .eco-card .flag { position: static; align-self: flex-start; margin-bottom: -4px; }
}
