:root {
  --ecosystem-nav-height: 72px;
}

html {
  scroll-padding-top: calc(var(--ecosystem-nav-height) + 16px);
}

body {
  padding-top: var(--ecosystem-nav-height);
}

.ecosystem-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--ecosystem-nav-height);
  color: var(--ecosystem-nav-text, var(--text, #f3f5fb));
  background: var(--ecosystem-nav-bg, var(--header-bg, rgba(5, 6, 10, 0.92)));
  border-bottom: 1px solid var(--ecosystem-nav-line, var(--border, var(--line, rgba(255, 255, 255, 0.14))));
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.ecosystem-nav__inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.ecosystem-nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.ecosystem-nav__brand img {
  display: block;
  width: 196px;
  height: auto;
  max-height: 30px;
}

.ecosystem-nav__links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ecosystem-nav-muted, var(--muted, var(--text-2, #a9b0c2)));
}

.ecosystem-nav__link,
.ecosystem-nav__locale a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 10px;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ecosystem-nav__link:hover,
.ecosystem-nav__locale a:hover {
  color: var(--ecosystem-nav-text, var(--text, #f3f5fb));
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.ecosystem-nav__link[aria-current="page"] {
  color: var(--ecosystem-nav-text, var(--text, #f3f5fb));
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--ecosystem-nav-accent, var(--accent, var(--cyan, var(--teal, #25e3d3))));
}

.ecosystem-nav__locale {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ecosystem-nav-muted, var(--muted, var(--text-2, #a9b0c2)));
}

.ecosystem-nav__locale a {
  min-width: 44px;
  padding-inline: 8px;
}

.ecosystem-nav__locale a[aria-current="page"] {
  color: var(--ecosystem-nav-text, var(--text, #f3f5fb));
  background: rgba(255, 255, 255, 0.08);
}

.ecosystem-nav__brand:focus-visible,
.ecosystem-nav__link:focus-visible,
.ecosystem-nav__locale a:focus-visible {
  outline: 2px solid var(--ecosystem-nav-accent, var(--accent, var(--cyan, var(--teal, #25e3d3))));
  outline-offset: 2px;
}

@media (max-width: 900px) {
  :root {
    --ecosystem-nav-height: 116px;
  }

  .ecosystem-nav__inner {
    width: min(100% - 28px, 680px);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 62px 54px;
    gap: 0 10px;
  }

  .ecosystem-nav__brand img {
    width: 176px;
  }

  .ecosystem-nav__links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-inline: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .ecosystem-nav__links::-webkit-scrollbar {
    display: none;
  }

  .ecosystem-nav__link {
    padding-inline: 12px;
  }

  .ecosystem-nav__locale {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 390px) {
  .ecosystem-nav__brand img {
    width: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-nav__link,
  .ecosystem-nav__locale a {
    transition: none;
  }
}

:root {
  --background: #05060a;
  --surface: rgba(8, 11, 22, 0.92);
  --surface-hover: rgba(18, 23, 38, 0.96);
  --line: rgba(172, 187, 224, 0.16);
  --text: #f3f5fb;
  --muted: #a9b0c2;
  --cyan: #25e3d3;
  --blue: #5aa7ff;
  --violet: #8668ff;
  --magenta: #d15cff;
  --glass: rgba(8, 11, 22, 0.92);
  --glass-line: rgba(172, 187, 224, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 16%, rgba(83, 80, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 14% 72%, rgba(37, 227, 211, 0.08), transparent 31rem),
    var(--background);
}

.community-network-art {
  width: max(1800px, 100vw);
  max-width: none;
  height: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 0;
  opacity: 0.68;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.82) 14%,
    #000 25%,
    #000 75%,
    rgba(0, 0, 0, 0.82) 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.82) 14%,
    #000 25%,
    #000 75%,
    rgba(0, 0, 0, 0.82) 86%,
    transparent 100%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  width: min(1180px, calc(100% - 40px));
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.hero {
  min-height: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "primary"
    "evidence";
  align-items: stretch;
  align-content: start;
  column-gap: 0;
  row-gap: 10px;
  padding: 12px 0 16px;
}

.hero-primary-card {
  height: 485px;
  min-width: 0;
  position: relative;
  grid-area: primary;
  display: grid;
  grid-template-columns: minmax(0, 1.156fr) minmax(450px, 0.844fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #030715;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}

.hero-primary-card::before {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: 0;
  background: url("/assets/alexey-grishchenko-about-wide.png?v=portrait-outpaint-left-20260818") center / cover no-repeat;
  filter: blur(28px) saturate(112%);
  opacity: 0.42;
  transform: scale(1.05);
}

.hero-primary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 7, 21, 0.97) 0%, rgba(3, 7, 21, 0.94) 46%, rgba(3, 7, 21, 0.72) 64%, rgba(3, 7, 21, 0.08) 100%);
  pointer-events: none;
}

.hero-copy-card {
  min-width: 0;
  position: relative;
  z-index: 2;
  grid-area: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-intro {
  align-self: start;
  scroll-margin-top: 100px;
}

.hero-body {
  min-width: 0;
}

.locale-stack {
  display: grid;
}

.locale-panel {
  min-width: 0;
  grid-area: 1 / 1;
}

.layout-reference {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.hero-summary {
  max-width: 620px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-summary li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
}

.hero-summary li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: 0.62em;
  left: 1px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(37, 227, 211, 0.72);
}

.hero-summary li:nth-child(2)::before {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(90, 167, 255, 0.72);
}

.hero-summary li:nth-child(3)::before {
  background: var(--violet);
  box-shadow: 0 0 14px rgba(134, 104, 255, 0.72);
}

.hero-portrait {
  width: calc(100% + 64px);
  height: 100%;
  aspect-ratio: auto;
  position: relative;
  z-index: 2;
  grid-area: auto;
  align-self: stretch;
  justify-self: end;
  margin: 0 0 0 -64px;
  overflow: hidden;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 9%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 9%, #000 22%);
}

.hero-portrait::before {
  content: none;
}

.hero-portrait::after {
  content: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.hero-evidence {
  grid-area: evidence;
  margin-top: 0;
}

.eyebrow,
.card-eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-accent-tools {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-accent-tools {
  background-image: linear-gradient(105deg, var(--cyan), var(--blue));
}

.directions {
  padding: calc(50px - clamp(12px, 1.8vh, 19px)) 0 110px;
  border: 0;
}

.solutions {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.direction-card {
  min-height: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.direction-card::after {
  content: "";
  width: 220px;
  height: 220px;
  position: absolute;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.1;
  filter: blur(20px);
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 197, 236, 0.32);
  background: var(--surface-hover);
}

.direction-card-cyan { color: var(--cyan); }
.direction-card-violet { color: var(--violet); }
.direction-card-blue { color: var(--blue); }
.direction-card-magenta { color: var(--magenta); }

.direction-card-mark {
  width: 96px;
  height: 96px;
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(209, 92, 255, 0.32);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(93, 50, 255, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.direction-card-with-mark .card-eyebrow,
.direction-card-with-mark h3 {
  max-width: calc(100% - 124px);
}

.direction-card-with-mark:hover .direction-card-mark {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 18px 46px rgba(93, 50, 255, 0.32);
}

.direction-card h3 {
  margin: 28px 0 14px;
  color: var(--text);
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.direction-card p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.direction-card-copy {
  min-width: 0;
  flex: 1;
}

.direction-card-copy-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-action {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 120px);
}

.solution-lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.solution-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-list li {
  padding: 22px 0 22px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: #d9deec;
  font-size: 17px;
  line-height: 1.5;
}

.solution-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.evidence-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass-line);
}

.evidence-item {
  min-height: clamp(116px, 14vh, 136px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
}

.evidence-item strong {
  color: var(--cyan);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.evidence-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.about-strip {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.about-strip p {
  max-width: 650px;
  margin-bottom: 0;
  line-height: 1.6;
}

.about-strip span {
  color: #737b90;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: #a9b0c2;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (min-width: 821px) and (max-height: 850px) {
  .hero {
    row-gap: 10px;
    padding: 12px 0 16px;
  }

  h1 {
    font-size: clamp(32px, 3.4vw, 42px);
  }

  .hero-summary {
    gap: 10px;
  }

  .hero-summary li {
    font-size: 16.5px;
    line-height: 1.45;
  }

  .hero-portrait {
    width: 100%;
    transform: none;
  }

  .hero-evidence {
    margin-top: 0;
  }

  .directions {
    padding-top: 38px;
  }

  .evidence-item {
    min-height: 112px;
    gap: 9px;
    padding: 15px 18px;
  }

  .evidence-item strong {
    font-size: 34px;
  }

  .evidence-item span {
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .community-network-art {
    width: 980px;
    top: 50%;
    left: auto;
    right: -600px;
    opacity: 0.5;
    transform: translateY(-50%);
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "evidence";
    gap: 18px;
    padding: 64px 0 24px;
  }

  .hero-primary-card {
    height: auto;
    grid-template-columns: 1fr;
  }

  .hero-primary-card::before {
    opacity: 0.18;
  }

  .hero-primary-card::after {
    background: linear-gradient(180deg, rgba(3, 7, 21, 0.96) 0%, rgba(3, 7, 21, 0.91) 62%, rgba(3, 7, 21, 0.56) 100%);
  }

  .directions {
    padding-top: 32px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .solution-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    width: min(100%, 460px);
    height: auto;
    aspect-ratio: 1166 / 1349;
    justify-self: end;
    margin-left: 0;
    border-top: 0;
    border-left: 0;
    transform: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
  }

  .hero-evidence {
    margin-top: 0;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(33px, 9.5vw, 40px);
  }

  .direction-card {
    min-height: 275px;
    padding: 26px;
  }

  .direction-card-mark {
    width: 72px;
    height: 72px;
    top: 22px;
    right: 22px;
    border-radius: 19px;
  }

  .direction-card-with-mark .card-eyebrow,
  .direction-card-with-mark h3 {
    max-width: calc(100% - 92px);
  }

  .evidence-item {
    min-height: 138px;
    gap: 18px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .direction-card {
    transition: none;
  }
}
