:root {
  --bg: #08090d;
  --bg-soft: #0e1118;
  --ink: #f5f1e8;
  --muted: #a9a395;
  --muted-2: #6f756c;
  --line: rgba(245, 241, 232, 0.14);
  --panel: rgba(245, 241, 232, 0.055);
  --panel-strong: rgba(245, 241, 232, 0.09);
  --accent: #d6ff45;
  --accent-2: #ff6b35;
  --accent-3: #7c6cff;
  --shadow: 0 40px 110px rgba(0, 0, 0, 0.38);
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(214, 255, 69, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(124, 108, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #08090d 0%, #0a0d12 44%, #090a0f 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, #fff 0 0.7px, transparent 0.9px 4px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.28) 9px 10px);
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

.glitch-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glitch-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(214, 255, 69, 0.12) 39%, transparent 40% 60%, rgba(255, 107, 53, 0.08) 61%, transparent 62%),
    radial-gradient(circle at var(--mx, 68%) var(--my, 24%), rgba(245, 241, 232, 0.08), transparent 22rem);
  transform: rotate(-5deg);
}

.orb,
.cut,
.noise {
  position: absolute;
  display: block;
}

.orb {
  width: 36vw;
  height: 36vw;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.44;
  animation: drift 18s var(--curve) infinite;
}

.orb-a {
  left: -14vw;
  top: 18vh;
  background: #d6ff45;
}

.orb-b {
  right: -10vw;
  top: 8vh;
  background: #6d5cff;
  animation-delay: -8s;
}

.cut {
  width: 72vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 69, 0.42), rgba(255, 107, 53, 0.32), transparent);
  opacity: 0.54;
  transform: rotate(-11deg);
  animation: slideCut 11s var(--curve) infinite;
}

.cut-a {
  left: -18vw;
  top: 42vh;
}

.cut-b {
  right: -24vw;
  top: 72vh;
  animation-delay: -5s;
}

.noise {
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.logo-main {
  fill: var(--ink);
}

.logo-cut {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.nav a,
.nav-cta {
  padding: 11px 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 500ms var(--curve), background 500ms var(--curve), transform 500ms var(--curve);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(245, 241, 232, 0.08);
}

.nav-cta {
  color: #10130d;
  background: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0;
  scroll-margin-top: 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.68fr);
  gap: 70px;
  align-items: center;
  min-height: calc(100dvh - 86px);
  padding-top: 86px;
}

.hero > * {
  min-width: 0;
}

.eyebrow,
.map-label {
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 11px;
  border: 1px solid rgba(214, 255, 69, 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(214, 255, 69, 0.06);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: normal;
}

.section-label {
  margin: 0;
  color: var(--accent);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-wrap: balance;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.96;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.35vw, 62px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.04;
}

.hero-lead,
.problem p,
.service-row p,
.timeline p,
.contact-card > div p,
.map-result p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: clamp(18px, 1.55vw, 22px);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: transform 600ms var(--curve), background 600ms var(--curve), color 600ms var(--curve);
}

.button.primary {
  color: #10130d;
  background: var(--accent);
  box-shadow: 0 18px 50px rgba(214, 255, 69, 0.18);
}

.button.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.045);
}

.button:active,
.nav-cta:active {
  transform: scale(0.98);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(214, 255, 69, 0.34);
  outline-offset: 3px;
}

.trust-row {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.035);
}

.hero-panel {
  position: relative;
}

.system-map {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(245, 241, 232, 0.09), rgba(245, 241, 232, 0.035)),
    rgba(8, 9, 13, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-map::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 24px;
  pointer-events: none;
}

.map-line {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
}

.map-line span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(245, 241, 232, 0.11);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(245, 241, 232, 0.055);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.map-line span::after {
  content: "↘";
  color: var(--accent);
}

.map-result {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.map-result strong {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.section-head,
.problem {
  display: grid;
  grid-template-columns: minmax(540px, 0.52fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.problem {
  position: relative;
  padding-top: 132px;
}

.problem::before {
  content: "";
  position: absolute;
  inset: 86px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 69, 0.5), transparent);
  opacity: 0.62;
}

.problem .section-label {
  font-size: clamp(36px, 4.6vw, 70px);
}

.problem h2 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
}

.section-head-solo {
  display: block;
}

.problem-grid {
  display: grid;
  gap: 22px;
}

.problem-grid article {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.problem-main {
  position: relative;
  padding: 32px !important;
  border: 1px solid rgba(214, 255, 69, 0.22) !important;
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 255, 69, 0.16), transparent 18rem),
    rgba(245, 241, 232, 0.055);
}

.problem-main h3 {
  max-width: 720px;
  font-size: clamp(34px, 4.2vw, 62px);
}

.problem-main p {
  max-width: 680px;
  font-size: clamp(18px, 1.5vw, 22px);
}

.problem-grid-featured {
  align-self: stretch;
}

.service-ledger {
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, 0.52fr) minmax(0, 1fr);
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-row span,
.timeline span {
  color: var(--accent);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-row p {
  max-width: 610px;
  margin-bottom: 0;
}

.portfolio-switcher {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  margin-top: 58px;
}

.portfolio-preview {
  position: sticky;
  top: 130px;
  min-height: 520px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(214, 255, 69, 0.12), rgba(245, 241, 232, 0.055) 42%, rgba(124, 108, 255, 0.12)),
    rgba(245, 241, 232, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portfolio-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 28px;
  pointer-events: none;
}

.portfolio-preview::after {
  content: "GLITCH";
  position: absolute;
  right: -24px;
  bottom: 12px;
  color: rgba(245, 241, 232, 0.035);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 94px;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.project-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 92px;
  color: var(--accent);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-preview h3,
.portfolio-preview p,
.portfolio-preview a {
  position: relative;
  z-index: 1;
}

.portfolio-preview p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.portfolio-preview.is-changing {
  animation: previewSwap 520ms var(--curve);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(214, 255, 69, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(214, 255, 69, 0.07);
  font-weight: 900;
  text-decoration: none;
  transition: transform 420ms var(--curve), border-color 420ms var(--curve), background 420ms var(--curve);
}

.project-link::after {
  content: "↗";
}

.project-link:hover {
  border-color: rgba(214, 255, 69, 0.36);
  background: rgba(214, 255, 69, 0.12);
  transform: translateY(-2px);
}

.project-tabs {
  display: grid;
  gap: 10px;
}

.project-tab {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 500ms var(--curve), background 500ms var(--curve), border-color 500ms var(--curve);
}

.project-tab:hover,
.project-tab.is-active {
  border-color: rgba(214, 255, 69, 0.22);
  background: rgba(245, 241, 232, 0.055);
  transform: translateX(4px);
}

.project-tab span {
  color: var(--accent);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.project-tab strong {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 58px;
}

.timeline article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: block;
  margin-bottom: 28px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 10%, rgba(214, 255, 69, 0.13), transparent 18rem),
    rgba(245, 241, 232, 0.045);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 241, 232, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 15px 16px;
  transition: border-color 500ms var(--curve), background 500ms var(--curve);
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 241, 232, 0.34);
}

input:focus,
textarea:focus {
  border-color: rgba(214, 255, 69, 0.6);
  background: rgba(245, 241, 232, 0.085);
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
  color: var(--muted-2);
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.footer a {
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.035);
  transition: transform 420ms var(--curve), border-color 420ms var(--curve), color 420ms var(--curve);
}

.telegram-link:hover {
  border-color: rgba(214, 255, 69, 0.28);
  color: var(--accent);
  transform: translateY(-2px);
}

.telegram-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(34px);
  transition: opacity 900ms var(--curve), filter 900ms var(--curve), transform 900ms var(--curve);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 170ms;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, 4vh, 0) scale(1.1);
  }
}

@keyframes slideCut {
  0%,
  100% {
    transform: translateX(-8vw) rotate(-11deg);
  }
  50% {
    transform: translateX(12vw) rotate(-11deg);
  }
}

@keyframes previewSwap {
  0% {
    opacity: 0.72;
    transform: translateY(10px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero,
  .section-head,
  .problem,
  .portfolio-switcher,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
    min-height: auto;
    padding-top: 72px;
  }

  .service-row {
    grid-template-columns: 68px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

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

  .portfolio-preview {
    position: relative;
    top: auto;
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    width: min(100% - 20px, 1180px);
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 16px;
    padding-inline: 8px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 72px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .eyebrow,
  .map-label {
    width: fit-content;
    letter-spacing: 0.15em;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .section-label {
    font-size: clamp(32px, 11vw, 52px);
  }

  .problem {
    padding-top: 82px;
  }

  .problem::before {
    inset: 48px 0 auto;
  }

  .problem .section-label {
    font-size: clamp(34px, 10vw, 48px);
  }

  .problem h2 {
    margin-top: 14px;
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-lead,
  .problem p,
  .service-row p,
  .timeline p,
  .contact-card > div p,
  .map-result p {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-row span {
    font-size: 13px;
  }

  .system-map {
    padding: 20px;
    border-radius: 28px;
  }

  .problem-main {
    padding: 24px !important;
    border-radius: 26px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }

  .service-row p {
    grid-column: auto;
  }

  .portfolio-switcher {
    gap: 18px;
    margin-top: 34px;
  }

  .portfolio-preview {
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }

  .portfolio-preview::before {
    inset: 10px;
    border-radius: 20px;
  }

  .portfolio-preview::after {
    font-size: 54px;
  }

  .project-index {
    margin-bottom: 62px;
  }

  .project-tab {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .contact-card {
    border-radius: 28px;
  }

  .contact-card h2 {
    margin-bottom: 18px;
    font-size: clamp(31px, 8.8vw, 42px);
    line-height: 1.1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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