@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-main: #05040a;
  --bg-elevated: #101018;
  --bg-elevated-soft: #151223;
  --accent: #8b5bff;
  --accent-soft: rgba(139, 91, 255, 0.32);
  --accent-strong: #c259ff;
  --text-main: #f5f5ff;
  --text-muted: #aaaacc;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --danger: #ff4b81;
  --success: #3dd68c;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background: radial-gradient(
    circle at top left,
    #30145a 0,
    #05040a 45%,
    #000 100%
  );
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 4, 10, 0.9),
    rgba(5, 4, 10, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.24s ease, border-color 0.24s ease,
    transform 0.18s ease;
}

.header-scrolled {
  background: rgba(5, 4, 12, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent-strong);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 13px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.burger span {
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease, translate 0.2s ease;
}

.burger.open {
  background: rgba(255, 255, 255, 0.03);
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* Buttons */

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 30px rgba(129, 91, 255, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(129, 91, 255, 0.7);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 4, 10, 0.7);
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-gradient {
  background: radial-gradient(
    circle at top,
    rgba(85, 39, 196, 0.36),
    transparent 60%
  );
}

.section-dark {
  background: #05040b;
}

.section-cta {
  padding: 80px 0 90px;
  background: radial-gradient(
      circle at center,
      rgba(125, 60, 255, 0.32),
      #05040b 60%
    );
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.max-420 {
  max-width: 420px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

/* HERO */

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

/* фоновые блики */

.hero-bg-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-bg-blur-1 {
  width: 280px;
  height: 280px;
  top: -40px;
  left: -60px;
  background: radial-gradient(circle, #c259ff, transparent 70%);
  animation: heroGlow1 16s ease-in-out infinite alternate;
}

.hero-bg-blur-2 {
  width: 260px;
  height: 260px;
  bottom: -80px;
  right: -40px;
  background: radial-gradient(circle, #4dd4ff, transparent 70%);
  animation: heroGlow2 18s ease-in-out infinite alternate;
}

/* орбиты вокруг телефона */

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-orbit-1 {
  width: 520px;
  height: 520px;
  top: 10px;
  right: -140px;
  animation: orbitRotate 48s linear infinite;
}

.hero-orbit-2 {
  width: 380px;
  height: 380px;
  top: 80px;
  right: -40px;
  animation: orbitRotateReverse 40s linear infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* надписи над заголовком */

.hero-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(
    circle at top left,
    rgba(194, 89, 255, 0.32),
    rgba(5, 4, 10, 0.9)
  );
}

.hero-pill-soft {
  border-style: dashed;
  background: rgba(7, 6, 20, 0.9);
  color: var(--text-muted);
}

.hero-content h1 {
  font-size: 36px;
  line-height: 1.17;
  margin: 10px 0 14px;
}

/* динамическая смена слов в заголовке */

.hero-rotator {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  white-space: nowrap;
  color: var(--accent-strong);
}

.hero-rotator::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0.8;
}

.hero-rotator.changing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(10, 10, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats-fancy {
  position: relative;
  border-radius: 18px;
  padding: 12px 18px;
  background: radial-gradient(
    circle at top left,
    rgba(194, 89, 255, 0.18),
    rgba(10, 10, 24, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats-fancy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero-stats-fancy:hover::before {
  opacity: 1;
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-size: 13px;
  font-weight: 600;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* подсказка «листай ниже» */

.scroll-hint {
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 4, 12, 0.7);
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease, color 0.18s ease;
}

.scroll-hint-icon {
  display: inline-block;
  animation: scrollHintBounce 1.6s ease-in-out infinite;
}

.scroll-hint:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Hero visual */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: 260px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 20% 0,
    #ff7af5,
    #9c6bff 40%,
    #3421c2 75%,
    #05040a 100%
  );
  padding: 16px;
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.phone-shell:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
}

.phone-glow {
  position: absolute;
  inset: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.8;
}

.phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  padding: 24px 20px;
  background: radial-gradient(circle at top, #1a1336, #05040b 70%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.phone-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.phone-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pill {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
}

.pill-green {
  background: rgba(61, 214, 140, 0.16);
  color: var(--success);
}

.pill-purple {
  background: rgba(135, 88, 255, 0.2);
  color: var(--accent-strong);
}

.phone-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  margin: 6px 0 4px;
}

.phone-small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Layout helpers */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* Cards */

.cards-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: radial-gradient(
    circle at top,
    rgba(137, 93, 255, 0.25),
    rgba(10, 10, 24, 0.96)
  );
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

/* About */

.about-card {
  background: rgba(7, 6, 16, 0.95);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(10, 10, 24, 0.96);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* Cases */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  background: rgba(11, 10, 24, 0.96);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.case-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.case-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.case-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.case-stats {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.case-stats li + li {
  margin-top: 4px;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Why */

.why-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  background: rgba(13, 12, 28, 0.96);
  border-radius: 20px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.why-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 15px;
}

.why-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
}

/* CTA */

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-form {
  background: rgba(5, 5, 15, 0.96);
  border-radius: var(--radius-xl);
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 11, 28, 0.96);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(170, 170, 204, 0.7);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(194, 89, 255, 0.5);
  background: rgba(12, 11, 30, 0.96);
}

.field textarea {
  resize: vertical;
}

.form-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030308;
  padding: 26px 0;
}

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

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}

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

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes heroGlow1 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(40px, 20px, 0);
  }
}

@keyframes heroGlow2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-40px, -30px, 0);
  }
}

@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitRotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes scrollHintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .grid-2,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(5, 4, 12, 0.98);
    padding: 16px 20px 18px;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .cards-grid,
  .services-grid,
  .cases-grid,
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats {
    border-radius: 18px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-bg-blur-1,
  .hero-bg-blur-2 {
    filter: blur(50px);
    opacity: 0.75;
  }

  .hero-orbit-1,
  .hero-orbit-2 {
    display: none;
  }

  .scroll-hint {
    margin-top: 14px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
