/* ===================================================================
   ЛАЗ — design tokens
   =================================================================== */
:root {
  /* color */
  --bg: #07090d;
  --bg-elevated: #0d1118;
  --bg-card: #11151d;
  --bg-card-hover: #161b25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #00e6f6;
  --cyan-dim: rgba(0, 230, 246, 0.14);
  --magenta: #ff2d78;
  --magenta-dim: rgba(255, 45, 120, 0.14);
  --amber: #ffc93c;

  --text: #eceff4;
  --text-muted: #8a93a3;
  --text-faint: #525c6c;

  /* type */
  --font-display: "Unbounded", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ===================================================================
   reset
   =================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* film-grain overlay for atmosphere */
.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===================================================================
   shared
   =================================================================== */
.section-eyebrow,
.hero__eyebrow,
.problem__eyebrow,
.stack__eyebrow,
.process__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ===================================================================
   header
   =================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.header__logo-mark {
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: auto;
  margin-left: 56px;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.25s ease;
}

.header__nav-link:hover { color: var(--text); }
.header__nav-link:hover::after { width: 100%; }

.header__nav-link--active {
  color: var(--text);
}
.header__nav-link--active::after {
  width: 100%;
  background: var(--cyan);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--cyan);
  color: #04141a;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__mobile {
  display: none;
  flex-direction: column;
  padding: 12px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}

.header__mobile-link {
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.header__mobile-cta {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
}

.header--menu-open .header__mobile { display: flex; }
.header--menu-open .header__burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header--menu-open .header__burger-line:nth-child(2) { opacity: 0; }
.header--menu-open .header__burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: flex; }
}

/* ===================================================================
   hero
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 96px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  width: 100%;
  height: 100%;
}

.hero__pulse-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.hero__pulse-line--1 { stroke: var(--cyan); opacity: 0.5; }
.hero__pulse-line--2 { stroke: var(--magenta); opacity: 0.35; }

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 24px;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 230, 246, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 246, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 230, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 246, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__title-line {
  display: block;
  position: relative;
}

.hero__title-line--accent {
  color: var(--cyan);
  position: relative;
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero__btn--primary {
  background: var(--cyan);
  color: #04141a;
}

.hero__btn--primary:hover {
  box-shadow: 0 0 0 1px var(--cyan), 0 0 32px rgba(0, 230, 246, 0.45);
  transform: translateY(-2px);
}

.hero__btn--secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.hero__btn--secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* terminal */
.hero__terminal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.hero__terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
}

.hero__terminal-dot:nth-child(1) { background: #ff5f57; }
.hero__terminal-dot:nth-child(2) { background: #febc2e; }
.hero__terminal-dot:nth-child(3) { background: #28c840; }

.hero__terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.hero__terminal-body {
  padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  min-height: 220px;
}

.hero__terminal-line {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
}

.hero__terminal-line .ok { color: var(--cyan); }
.hero__terminal-line .warn { color: var(--amber); }

.hero__terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  vertical-align: -2px;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__scroll-cue {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0 auto 28px;
  width: 1px;
  height: 48px;
}

.hero__scroll-cue-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--cyan));
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__subtitle { max-width: none; }
}

/* ===================================================================
   problem
   =================================================================== */
.problem {
  border-top: 1px solid var(--line);
  padding: 120px 0;
}

.problem__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.problem__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  margin-top: 18px;
}

.problem__text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.problem__list-item {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.problem__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--magenta);
}

.problem__resolve {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

@media (max-width: 880px) {
  .problem__inner { grid-template-columns: 1fr; }
}

/* ===================================================================
   stack
   =================================================================== */
.stack {
  border-top: 1px solid var(--line);
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 50%, transparent);
}

.stack__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stack__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.stack__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  margin: 18px 0 16px;
}

.stack__lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack__card {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s ease;
}

.stack__card:hover { background: var(--bg-card-hover); }

.stack__card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack__card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.stack__card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.stack__card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-top: 4px;
}

.stack__card--cta {
  background: var(--bg-elevated);
  justify-content: center;
}

.stack__card--cta .stack__card-name { color: var(--cyan); }

.stack__card-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
  transition: color 0.2s ease;
}

.stack__card-link:hover { color: var(--cyan); }

@media (max-width: 980px) {
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .stack__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   process
   =================================================================== */
.process {
  border-top: 1px solid var(--line);
  padding: 120px 0;
}

.process__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.process__head {
  max-width: 640px;
  margin-bottom: 64px;
}

.process__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  margin-top: 18px;
}

.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: process;
}

.process__item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.process__item-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 18px;
}

.process__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.process__item-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .process__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .process__list { grid-template-columns: 1fr; }
}

/* ===================================================================
   trust
   =================================================================== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.trust__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__stat {
  text-align: center;
  border-left: 1px solid var(--line);
  padding: 0 16px;
}

.trust__stat:first-child { border-left: none; }

.trust__stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 10px;
}

.trust__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .trust__stat:nth-child(3) { border-left: none; }
}
@media (max-width: 480px) {
  .trust__inner { grid-template-columns: 1fr; }
  .trust__stat { border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
  .trust__stat:first-child { border-top: none; padding-top: 0; }
}

/* ===================================================================
   final cta
   =================================================================== */
.cta-final {
  padding: 140px 0;
  text-align: center;
  position: relative;
}

.cta-final__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-final__text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================================
   footer
   =================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__nav-link:hover { color: var(--cyan); }

.footer__contacts {
  display: flex;
  gap: 20px;
}

.footer__contact-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__contact-link:hover { color: var(--cyan); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}

.footer__copy,
.footer__legal {
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 580px) {
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
}
