/* ============================================================
   G3A — стили лендинга
   Никаких фреймворков: только CSS.
   Порядок разделов совпадает с порядком блоков на странице.
   ============================================================ */

/* Шрифт Geist (SIL Open Font License, см. fonts/OFL.txt).
   Файлы урезаны до латиницы и кириллицы, лежат на нашем сервере. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


:root {
  --ink: #061423;
  --raised: #0F1C2C;
  --surface: #132030;
  --surface-hi: #1E2B3B;
  --line: rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.05);
  --text: #F2F7FE;
  --body: #D6E4F9;
  --muted: #8A919A;
  --accent: #91CDFF;
  --accent-soft: #A9D8FF;
  --accent-dim: #4C97CE;
  --amber: #FFB86B;
  --danger: #FF1414;
  --ease: cubic-bezier(.2,.7,.1,1);
  --pad: clamp(24px,5.5vw,80px);
  --stack: clamp(80px,10vw,140px);
  color-scheme: dark;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("../img/noise.svg");
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 "Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.mono {
  font-family: "Geist Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(6,20,35,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo svg {
  display: block;
  height: 34px;
  width: auto;
  fill: currentColor;
  overflow: visible;
}

.logo path {
  transform-box: fill-box;
  transform-origin: center;
}

.lg-g {
  animation: lg-g 1s var(--ease) both;
}

.lg-3 {
  animation: lg-3 .8s .15s var(--ease) both;
}

.lg-a {
  animation: lg-a .8s .28s var(--ease) both;
}

@keyframes lg-g {
  from {
    transform: rotate(-120deg);
    opacity: 0;
  }
}

@keyframes lg-3 {
  from {
    transform: translateX(-40%);
    opacity: 0;
  }
}

@keyframes lg-a {
  from {
    transform: translateY(45%);
    opacity: 0;
  }
}

.logo:hover .lg-a {
  fill: var(--accent);
  transition: fill .3s;
}

.nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color .2s;
}

.nav ul a:hover {
  color: var(--text);
}

@media (max-width:760px) {
  .nav ul {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s,border-color .2s,transform .2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  border-color: rgba(145,205,255,.3);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: rgba(145,205,255,.55);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px,transparent 1px),linear-gradient(90deg,var(--line-soft) 1px,transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 75% 50%,#000 10%,transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 75% 50%,#000 10%,transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 1000px;
  height: 900px;
  left: -320px;
  top: -300px;
  background: radial-gradient(closest-side,rgba(76,151,206,.26),transparent);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

.hero .glow2 {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -160px;
  bottom: -240px;
  background: radial-gradient(closest-side,rgba(255,184,107,.08),transparent);
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate(0,0) scale(1);
  }
  to {
    transform: translate(80px,50px) scale(1.1);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}

h1 {
  font-weight: 800;
  font-size: clamp(34px,3.7vw,58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 28px;
}

h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

h1 .ln>span {
  display: block;
  white-space: nowrap;
  animation: rise 1s var(--ease) both;
}

h1 .ln:nth-child(2)>span {
  animation-delay: .09s;
}

h1 .ln:nth-child(3)>span {
  animation-delay: .18s;
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

.lead {
  font-size: clamp(18px,1.6vw,21px);
  color: var(--body);
  max-width: 34em;
  margin: 0 0 40px;
  animation: fade .8s .45s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade .8s .55s both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* live panel */
.panel {
  position: relative;
  background: linear-gradient(160deg,rgba(19,32,48,.9),rgba(15,28,44,.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-soft);
  border-top-color: rgba(145,205,255,.22);
  border-radius: 8px;
  padding: 22px 24px 20px;
  animation: fade .8s .35s both;
}

.panel h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2 b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(145,205,255,.6);
  animation: live 2s infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 8px rgba(145,205,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(145,205,255,0);
  }
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  opacity: 0;
  animation: fade .5s var(--ease) both;
}

.row:nth-of-type(1) {
  animation-delay: .7s;
}

.row:nth-of-type(2) {
  animation-delay: .85s;
}

.row:nth-of-type(3) {
  animation-delay: 1s;
}

.row:nth-of-type(4) {
  animation-delay: 1.15s;
}

.row span {
  color: var(--body);
}

.row output {
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.row.big output {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: -.03em;
}

.panel p {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.panel kbd {
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

@media (max-width:560px) {
  h1 .ln>span {
    white-space: normal;
  }
}

@media (max-width:960px) {
  .hero {
    min-height: auto;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .panel {
    max-width: 460px;
  }
}

/* ---------- sections ---------- */
section {
  padding: var(--stack) 0;
  border-top: 1px solid var(--line);
}

#process {
  background: var(--raised);
}

h2.title {
  font-weight: 750;
  font-size: clamp(32px,4vw,52px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 28px;
}

.prose p {
  margin: 0 0 18px;
  color: var(--body);
  max-width: 36em;
}

.prose p strong {
  color: var(--text);
  font-weight: 600;
}

/* approach */
.approach-top {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 64px;
  align-items: center;
}

@media (max-width:960px) {
  .approach-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.viz {
  position: relative;
}

.viz-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
  margin-bottom: 10px;
  position: relative;
}

.viz-tabs button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: color .3s;
}

.viz-tabs button[aria-pressed="true"] {
  color: var(--ink);
}

.viz-tabs .pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .5s var(--ease),width .5s var(--ease);
}

.viz svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  overflow: visible;
}

.edge {
  fill: none;
  stroke: rgba(255,255,255,.16);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease),opacity .5s;
}

.edge.l1 {
  stroke: rgba(255,255,255,.28);
}

.n {
  transform: translate(0px,0px) scale(0);
  opacity: 0;
  transition: transform 1s var(--ease),opacity .6s;
}

.n circle {
  fill: #51657B;
}

.n.l1 circle {
  fill: var(--body);
}

.n.bad circle {
  fill: var(--danger);
}

.n .ring {
  fill: none;
  stroke: var(--danger);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.n text {
  font: 500 11px/1 "Geist Mono",ui-monospace,monospace;
  fill: var(--body);
  paint-order: stroke;
  stroke: var(--ink);
  stroke-width: 4px;
  text-anchor: middle;
}

.root {
  transition: transform 1s var(--ease);
}

.root .core {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .8s var(--ease);
}

.root .halo {
  fill: rgba(145,205,255,.14);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .8s var(--ease);
}

.root text {
  font: 700 13px/1 "Geist",sans-serif;
  fill: var(--text);
  text-anchor: middle;
  transition: opacity .4s;
}

.root .t-ours {
  opacity: 0;
  fill: var(--ink);
  font-size: 15px;
}

.srv {
  opacity: 0;
  transition: opacity .6s .5s;
}

.srv circle {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.srv text {
  font: 500 11px/1 "Geist Mono",monospace;
  fill: var(--muted);
  text-anchor: middle;
}

.srv path {
  stroke: rgba(255,255,255,.22);
  stroke-dasharray: 3 4;
  fill: none;
}

.viz.go[data-mode="typical"] .edge {
  stroke-dashoffset: 0;
  transition-delay: var(--d);
}

.viz.go[data-mode="typical"] .n {
  transform: translate(var(--x),var(--y)) scale(1);
  opacity: 1;
  transition-delay: var(--d);
}

.viz.go[data-mode="typical"] .n.bad .ring {
  animation: ping 2.4s var(--ease) infinite;
  animation-delay: calc(var(--d) + 1.2s);
}

@keyframes ping {
  0% {
    opacity: .9;
    transform: scale(1);
  }
  80%,100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

.viz[data-mode="ours"] .edge {
  opacity: 0;
}

.viz[data-mode="ours"] .n {
  transition-duration: .7s,.4s;
}

.viz[data-mode="ours"] .root .core {
  transform: scale(4.2);
}

.viz[data-mode="ours"] .root .halo {
  transform: scale(3.8);
}

.viz[data-mode="ours"] .root .t-typ {
  opacity: 0;
}

.viz[data-mode="ours"] .root .t-ours {
  opacity: 1;
  transition-delay: .4s;
}

.viz[data-mode="ours"] .srv {
  opacity: 1;
}

.viz-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.viz-stats div {
  display: flex;
  flex-direction: column;
}

.viz-stats output {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.viz-stats .bad-count {
  color: var(--danger);
}

.viz[data-mode="ours"] .viz-stats .bad-count {
  color: var(--text);
}

.viz-stats span {
  font-size: 13px;
  color: var(--muted);
}

.viz-cap {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 40em;
  min-height: 3.2em;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-top: clamp(64px,8vw,110px);
  border-top: 1px solid var(--line);
}

.reason {
  padding: 36px 40px 36px 0;
  border-bottom: 1px solid var(--line);
}

.reason:nth-child(even) {
  padding: 36px 0 36px 40px;
  border-left: 1px solid var(--line);
}

.reason h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.reason h3 svg {
  flex: none;
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reason p {
  margin: 0;
  color: var(--body);
  max-width: 34em;
}

@media (max-width:760px) {
  .reasons {
    grid-template-columns: 1fr;
  }
  .reason,.reason:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
}

/* process */
.process {
  display: grid;
  grid-template-columns: minmax(0,6fr) minmax(0,5fr);
  gap: 64px;
  align-items: center;
}

@media (max-width:960px) {
  .process {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .loop {
    padding: 0 44px;
    max-width: 460px;
  }
}

.loop {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.loop svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.loop .track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.loop .comet {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 70 621.15;
  stroke-dashoffset: 70;
  animation: comet 7.5s linear infinite;
}

@keyframes comet {
  from { stroke-dashoffset: 70; }
  to   { stroke-dashoffset: -621.15; }
}

.loop .st circle {
  fill: var(--ink);
  stroke: var(--muted);
  stroke-width: 1.5;
  animation: lit 7.5s linear infinite;
}

.loop .st text {
  font: 600 14px/1 "Geist",sans-serif;
  fill: var(--muted);
  animation: lit-t 7.5s linear infinite;
}

.loop .st2 circle,.loop .st2 text {
  animation-delay: -5s;
}

.loop .st3 circle,.loop .st3 text {
  animation-delay: -2.5s;
}

@keyframes lit {
  0%,14% {
    fill: var(--accent);
    stroke: var(--accent);
  }
  30%,100% {
    fill: var(--ink);
    stroke: var(--muted);
  }
}

@keyframes lit-t {
  0%,14% {
    fill: var(--text);
  }
  30%,100% {
    fill: var(--muted);
  }
}

.loop .center {
  font: 750 22px/1 "Geist",sans-serif;
  fill: var(--text);
  text-anchor: middle;
  letter-spacing: -.02em;
}

.loop .center-sub {
  font: 400 13px/1 "Geist",sans-serif;
  fill: var(--muted);
  text-anchor: middle;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.facts li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}

.facts li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* services */
.svc {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.svc li {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.svc li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}

.svc li:hover::before {
  transform: scaleX(1);
}

.svc h3 {
  margin: 0;
  font-size: clamp(26px,3vw,38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.svc p {
  margin: 0;
  color: var(--body);
}

@media (max-width:760px) {
  .svc li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.stack {
  margin: 32px 0 0;
  color: var(--muted);
  max-width: 40em;
}

.stack b {
  color: var(--text);
  font-weight: 600;
}

/* contact */
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.cta {
  position: relative;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg,rgba(145,205,255,.07),rgba(255,184,107,.04)) padding-box,linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from var(--a),rgba(255,255,255,.08) 0deg,rgba(255,255,255,.08) 230deg,var(--amber) 290deg,var(--accent) 330deg,rgba(255,255,255,.08) 360deg) border-box;
  animation: orbit 6s linear infinite;
  padding: clamp(28px,5vw,64px);
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 56px;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -300px;
  background: radial-gradient(circle,rgba(76,151,206,.16),transparent 65%);
  pointer-events: none;
}

@keyframes orbit {
  to {
    --a: 360deg;
  }
}

@media (max-width:960px) {
  .cta {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.cta .prose p {
  max-width: 26em;
}

.mail-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.mail {
  font-weight: 750;
  font-size: clamp(34px,5vw,64px);
  letter-spacing: -.04em;
  line-height: 1.1;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(90deg,var(--accent) 0 50%,var(--amber) 50% 100%) 100% 0/200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .6s var(--ease);
}

.mail:hover,.mail:focus-visible {
  background-position: 0 0;
}

.copy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy output {
  font-size: 14px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s,transform .3s;
}

.copy output.on {
  opacity: 1;
  transform: none;
}

/* footer */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

footer {
  background: var(--raised);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.foot-logo {
  display: block;
  width: 120px;
  height: auto;
  opacity: .55;
}

.foot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.foot-mail {
  color: var(--body);
  text-decoration: none;
}

.foot-mail:hover {
  color: var(--accent);
}

@media (max-width:560px) {
  .foot-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .001ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .001ms!important;
    transition-delay: 0s!important;
    scroll-behavior: auto!important;
  }
  .viz.go .n.bad .ring {
    animation: none;
  }
  .loop .comet,.loop .st circle,.loop .st text {
    animation: none;
  }
  .cta {
    animation: none;
  }
  .lg-g,.lg-3,.lg-a,.hero::after {
    animation: none;
  }
}
