/* ===========================================================
   Горизонты Влияния / Impact Horizons — design system v2
   Dark premium venture-studio aesthetic.
   =========================================================== */

:root {
  --bg: #06070d;
  --bg-soft: #0a0c18;
  --panel: #10132399;
  --panel-solid: #10132a;
  --panel-2: #171b38;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f4fb;
  --text-dim: #a9aecb;
  --text-faint: #6d7296;

  --accent: #3ddc84;
  --accent-soft: rgba(61, 220, 132, 0.14);
  --accent-2: #7c6bff;
  --accent-2-soft: rgba(124, 107, 255, 0.16);
  --amber: #f5b942;
  --amber-soft: rgba(245, 185, 66, 0.14);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal-1.in-view { transition-delay: 0.06s; }
html.js .reveal-2.in-view { transition-delay: 0.12s; }
html.js .reveal-3.in-view { transition-delay: 0.18s; }
html.js .reveal-4.in-view { transition-delay: 0.24s; }
html.js .reveal-5.in-view { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }
img, svg { display: block; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 13, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
header.site.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 7, 13, 0.86);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-faint);
  border: 1px solid transparent;
}
.lang-switch a.active {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 65px 0 0 0;
    height: calc(100vh - 65px);
    margin: 0;
    background: var(--bg-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    font-size: 20px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  z-index: 0;
  background:
    radial-gradient(600px 420px at 18% 20%, var(--accent-2-soft), transparent 60%),
    radial-gradient(560px 420px at 82% 8%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 600px at 50% 0%, rgba(255,255,255,0.03), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: drift 22s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, 24px, 0) scale(1.04); }
}

.hero-inner { position: relative; z-index: 1; padding-bottom: 64px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 220, 132, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
  max-width: 820px;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #8ff0c0 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18.5px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 36px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent), #2fc774);
  color: #06170d;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(61, 220, 132, 0.55); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }

/* Stat row */

.stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }

.stat {
  background: var(--panel-solid);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.stat-label { font-size: 13px; color: var(--text-faint); line-height: 1.4; }

/* ---------- Sections ---------- */

section { padding: 100px 0; position: relative; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin: 0 0 52px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.01em; margin: 0 0 14px; color: var(--text); }

.section-head p { color: var(--text-dim); font-size: 16.5px; margin: 0; }

/* 3E grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.e-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.e-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.e-card .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 18px;
}

.e-card h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.005em; }
.e-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Portfolio */

.portfolio-block {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel-solid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.portfolio-block::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-2-soft), transparent 70%);
  pointer-events: none;
}

.portfolio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: relative;
}

.portfolio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 20px;
  margin-bottom: 14px;
}

.portfolio-head h3 { font-size: 25px; margin: 0 0 8px; color: var(--text); letter-spacing: -0.01em; }
.portfolio-head .sub { color: var(--text-dim); font-size: 15px; max-width: 600px; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-pill.live { background: var(--accent-soft); color: var(--accent); border-color: rgba(61,220,132,0.3); }
.status-pill.dev { background: var(--amber-soft); color: var(--amber); border-color: rgba(245,185,66,0.3); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 6px;
  position: relative;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
}
.product-card h4 { margin: 0 0 8px; font-size: 15.5px; color: var(--text); }
.product-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.product-card .metric {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent-2);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text-dim);
  position: relative;
}
.callout em { color: var(--text); font-style: normal; }
.callout b { color: var(--text); }

.mechanic-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
  position: relative;
}
@media (max-width: 900px) { .mechanic-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mechanic-row { grid-template-columns: 1fr; } }

.mechanic-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.mechanic-step b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 6px; font-family: var(--font-mono); }

/* Audience */

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-5 { grid-template-columns: 1fr; } }

.aud-card {
  background: var(--panel-solid);
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.aud-card:hover {
  border-color: rgba(61, 220, 132, 0.35);
  transform: translateY(-3px);
  background: var(--panel-2);
}

.aud-card h4 { font-size: 15.5px; margin: 0 0 12px; letter-spacing: -0.005em; }
.aud-card p { font-size: 13.5px; color: var(--text-dim); flex-grow: 1; margin: 0 0 18px; }
.aud-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.aud-card a:hover { text-decoration: underline; }

/* Team */

.team-row { display: flex; gap: 24px; flex-wrap: wrap; }
.team-card {
  flex: 1 1 280px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.team-card h4 { margin: 0 0 4px; font-size: 16.5px; }
.team-card .role { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 14px; font-family: var(--font-mono); }
.team-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-dim); }
.team-card li { margin-bottom: 5px; }

/* Footer */

footer.site {
  background: var(--bg-soft);
  color: var(--text-dim);
  padding: 56px 0 34px;
  font-size: 13.5px;
  border-top: 1px solid var(--border);
}

footer.site .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

footer.site a { color: var(--text); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

.disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 760px;
  margin-top: 10px;
  line-height: 1.6;
}
