:root {
  --bg: #05070A;
  --panel: #0B0F14;
  --crimson: #FF2D55;
  --text: #ffffff;
  --muted: #9BA3AF;
  --border: rgba(255,255,255,.12);
  --glass: rgba(255,255,255,.055);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }

html {
  width: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(255,45,85,.16), transparent 28rem),
    radial-gradient(circle at 30% 62%, rgba(255,45,85,.08), transparent 34rem),
    linear-gradient(135deg, var(--bg) 0%, #071017 48%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 54% 35%, black, transparent 76%);
}

a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.24) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.18) 0 1px, transparent 1px);
  background-size: 34px 34px, 49px 49px;
  mix-blend-mode: screen;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(5,7,10,.86);
  backdrop-filter: blur(22px);
  transition: opacity .6s var(--ease);
}

.preloader-card,
.code-card,
.widget,
.service-card,
.stats-section,
.mini-cta,
.online-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,.082), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(22px);
}

.preloader-card {
  width: min(360px, calc(100vw - 32px));
  padding: 38px;
  border-radius: 28px;
  text-align: center;
}

.preloader-card p { color: var(--muted); }

.spinner {
  width: 48px;
  height: 48px;
  margin: 24px auto 0;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.1);
  border-top-color: var(--crimson);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 44px rgba(255,45,85,.28);
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand {
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand span {
  color: var(--crimson);
  filter: drop-shadow(0 0 18px rgba(255,45,85,.68));
}

.brand-large { font-size: 46px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(26px);
}

.brand-block p,
.footer > div p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.64);
  font-size: 13px;
  letter-spacing: .22em;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 56px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  color: rgba(255,255,255,.66);
  font-weight: 650;
  transition: .28s var(--ease);
}

.nav-link svg {
  width: 21px;
  height: 21px;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(255,45,85,.24), rgba(255,45,85,.035));
  box-shadow: inset 3px 0 0 var(--crimson), 0 0 42px rgba(255,45,85,.18);
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.mini-cta,
.online-card {
  border-radius: 18px;
  padding: 18px 20px;
}

.mini-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 760;
}

.mini-cta span,
.lang,
.online-card i { color: var(--crimson); }

.online-card strong { font-size: 14px; }
.online-card p { margin: 8px 0 0; color: rgba(255,255,255,.56); font-size: 12px; }
.online-card i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 22px rgba(255,45,85,.7); }
.lang { color: var(--crimson); font-weight: 850; letter-spacing: .04em; }
.lang span { margin: 0 12px; color: rgba(255,255,255,.4); }

.mobile-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(5,7,10,.8);
  backdrop-filter: blur(22px);
}

.mobile-contact {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}

.main {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  padding: 0;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 70px 48px 44px;
}

.screen.active-screen {
  display: block;
  animation: screenIn .45s var(--ease) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  position: absolute;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.hero-section.active-screen {
  display: grid;
}

.hero-bg {
  position: absolute;
  right: 0;
  top: 8%;
  width: 720px;
  height: 460px;
  border-radius: 999px;
  background: rgba(255,45,85,.12);
  filter: blur(120px);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .28em;
  backdrop-filter: blur(16px);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 22px rgba(255,45,85,.7);
}

.hero-title {
  max-width: 780px;
  margin: 34px 0 0;
  font-size: clamp(54px, 5.25vw, 92px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 950;
}

.hero-title span { color: var(--crimson); }

.hero-text {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 34px;
  border-radius: 16px;
  font-weight: 850;
  transition: .28s var(--ease);
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: var(--crimson);
  box-shadow: 0 0 44px rgba(255,45,85,.28);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 780px;
  margin-top: 38px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.trust-row div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.35;
}

.trust-row svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--crimson);
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.code-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  margin: 0;
  padding: 28px;
  border-radius: 28px;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 750;
}

.code-head div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.code-head i,
.code-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
}

.code-head span { background: rgba(255,255,255,.38); }

.code-card pre {
  margin: 28px 0 0;
  overflow-x: auto;
  color: rgba(255,255,255,.86);
  font: 15px/2 "SFMono-Regular", Consolas, monospace;
}

.code-card em {
  color: rgba(255,255,255,.38);
  font-style: normal;
}

.code-card b {
  color: var(--crimson);
  font-weight: 700;
}

.widget {
  position: absolute;
  left: -118px;
  right: auto;
  z-index: 3;
  width: 176px;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
}

.widget strong {
  font-size: 28px;
  font-weight: 600;
}

.widget span {
  color: rgba(255,255,255,.72);
}

.widget svg {
  width: 34px;
  height: 34px;
}

.widget-code { top: 20px; }
.widget-api { top: 170px; }
.widget-auto { top: 320px; }

.circuit-line {
  position: absolute;
  border: 1px solid rgba(255,45,85,.26);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 20px 0 0;
}

.line-a { inset: 36px 22px auto 90px; height: 330px; }
.line-b { inset: 130px 72px auto 130px; height: 340px; }

.services-section {
  align-content: center;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(300px, .7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
}

.section-head p {
  margin: 0;
  color: var(--crimson);
  font-size: 13px;
  letter-spacing: .28em;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(42px, 4vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
}

.section-head span {
  color: rgba(255,255,255,.6);
  font-size: 18px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 26px;
  transition: .32s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,45,85,.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 100px rgba(0,0,0,.44), 0 0 52px rgba(255,45,85,.14);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,45,85,.32);
  border-radius: 18px;
  background: rgba(255,45,85,.1);
  color: var(--crimson);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin: 0;
  font-size: 21px;
}

.service-card p {
  margin: 16px 0 0;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
}

.service-card::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 28px;
  background: var(--crimson);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 28px;
  border-radius: 28px;
}

.stats-screen {
  align-content: center;
}

.stats-section div {
  min-height: 72px;
  display: grid;
  align-content: center;
  padding: 0 24px;
  border-right: 1px dashed rgba(255,255,255,.18);
}

.stats-section div:last-child { border-right: 0; }
.stats-section strong { color: var(--crimson); font-size: 34px; line-height: 1; }
.stats-section span { color: rgba(255,255,255,.64); line-height: 1.55; }

.footer {
  grid-template-columns: minmax(0, .8fr) minmax(420px, .8fr);
  gap: 28px;
  align-items: center;
  color: rgba(255,255,255,.58);
}

.footer.active-screen {
  display: grid;
}

.contact-copy p {
  margin: 0;
  color: var(--crimson);
  font-size: 13px;
  letter-spacing: .28em;
}

.contact-copy h2 {
  max-width: 760px;
  margin: 16px 0 22px;
  color: white;
  font-size: clamp(46px, 6vw, 96px);
  line-height: .96;
  letter-spacing: -.045em;
}

.contact-copy span {
  display: block;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.65;
  color: rgba(255,255,255,.64);
}

.contact-panel {
  display: grid;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.082), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(22px);
}

.footer .brand { font-size: 30px; }
.footer a:hover { color: white; }
.footer small { grid-column: 1 / -1; color: rgba(255,255,255,.42); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

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

@media (min-width: 1024px) {
  .main {
    margin-left: 260px;
  }
}

@media (max-width: 1280px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .widget {
    right: 4%;
  }

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

  .stats-section div {
    border-right: 0;
    border-bottom: 1px dashed rgba(255,255,255,.14);
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .main {
    height: 100svh;
    padding: 0;
  }

  .screen {
    padding: 100px 20px 32px;
  }

  .hero-section {
    overflow-y: auto;
  }

  .hero-title {
    font-size: clamp(44px, 12vw, 72px);
  }
}

@media (max-width: 720px) {
  body::before { background-size: 48px 48px; }

  .brand { font-size: 26px; }

  .mobile-contact {
    display: none;
  }

  .hero-title {
    max-width: 350px;
    font-size: 42px;
    line-height: 1;
  }

  .hero-text {
    max-width: 350px;
    font-size: 19px;
  }

  .hero-actions,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-actions {
    display: grid;
    max-width: 350px;
  }

  .btn {
    width: 100%;
    padding: 0 22px;
  }

  .trust-row,
  .service-grid,
  .stats-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .trust-row {
    gap: 18px;
  }

  .hero-visual {
    min-height: auto;
  }

  .code-card {
    padding: 22px;
  }

  .widget,
  .circuit-line {
    display: none;
  }
}
