:root {
  color-scheme: dark;
  --bg: #070d1d;
  --bg-soft: #0d1630;
  --ink: #dbe6ff;
  --muted: #8ea1c9;
  --brand: #6e62ff;
  --brand-2: #29b7ff;
  --green: #35d39a;
  --glass: rgba(15, 24, 49, 0.58);
  --border: rgba(123, 163, 255, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(65rem 35rem at 12% -10%, rgba(67, 80, 255, 0.15) 0%, transparent 60%),
    radial-gradient(55rem 30rem at 88% -15%, rgba(26, 186, 255, 0.12) 0%, transparent 64%),
    linear-gradient(180deg, #040814 0%, #050b18 45%, #040711 100%);
}

body {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

main {
  position: relative;
  z-index: 2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 138, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 138, 255, 0.34) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 92%);
  opacity: 0.62;
  mix-blend-mode: screen;
  animation: grid-pan 24s linear infinite;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(circle at 15% 20%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 85% 70%, #fff 0.5px, transparent 1px);
  background-size: 140px 140px, 180px 180px;
  mix-blend-mode: screen;
  animation: twinkle 7s ease-in-out infinite alternate;
}

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

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: 4rem;
  position: relative;
}

.texture-a::before,
.texture-b::before,
.texture-c::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.texture-a::before {
  background: radial-gradient(42rem 20rem at 20% 40%, rgba(110, 98, 255, 0.12), transparent 70%);
}

.texture-b::before {
  background: linear-gradient(135deg, rgba(41, 183, 255, 0.08), rgba(110, 98, 255, 0.08));
}

.texture-c::before {
  background: radial-gradient(35rem 22rem at 75% 50%, rgba(53, 211, 154, 0.1), transparent 68%);
}

.glass {
  background: linear-gradient(155deg, rgba(22, 33, 68, 0.68), rgba(11, 18, 38, 0.58));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow:
    0 20px 64px -44px rgba(41, 183, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rich-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.rich-card:hover,
.rich-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(155, 194, 255, 0.44);
  box-shadow:
    0 28px 56px -40px rgba(41, 183, 255, 0.7),
    0 16px 38px -30px rgba(110, 98, 255, 0.7);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 25, 0.72);
  border-bottom: 1px solid rgba(127, 163, 255, 0.2);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand strong {
  display: block;
  line-height: 1.1;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 20px rgba(41, 183, 255, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav a {
  font-size: 0.93rem;
  color: #d5e3ff;
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
  color: #fff;
}

.tg-mini {
  border: 1px solid rgba(124, 176, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: rgba(60, 132, 255, 0.18);
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(127, 163, 255, 0.36);
  background: rgba(14, 24, 48, 0.75);
  padding: 0.5rem;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #d8e6ff;
}

.hero-section {
  padding-top: 2rem;
}

.hero-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-shell {
  padding: 1.8rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid rgba(160, 191, 255, 0.35);
  background: rgba(65, 105, 255, 0.18);
  padding: 0.35rem 0.78rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d9ff;
  display: inline-flex;
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(120deg, #fff 0%, #9ab6ff 36%, #63d7ff 68%, #67f2b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0.95rem 0 0;
  max-width: 45rem;
  color: #b8c9ed;
  line-height: 1.55;
}

.hero-cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.88rem;
  padding: 0.83rem 1.2rem;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.btn-primary {
  border: 0;
  color: #041029;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 52%, #58e5b3 100%);
  box-shadow: 0 16px 30px -22px rgba(41, 183, 255, 0.9);
}

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

.btn-ghost {
  border: 1px solid rgba(163, 193, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ff;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.trust-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  border: 1px solid rgba(132, 171, 255, 0.3);
  background: rgba(22, 36, 73, 0.5);
  border-radius: 0.7rem;
  padding: 0.52rem 0.65rem;
  font-size: 0.85rem;
  color: #c4d5fb;
}

.dashboard {
  padding: 1.2rem;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.dash-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 15px var(--brand-2);
  margin-right: 0.45rem;
}

.live {
  color: #57e1a8;
  font-size: 0.8rem;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #bfd0f7;
  margin-top: 0.52rem;
}

.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.4rem;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #4f79ff, #48d4ff);
}

.bar.purple i {
  background: linear-gradient(90deg, #685dff, #b06bff);
}

.bar.green i {
  background: linear-gradient(90deg, #31c67f, #58e5b3);
}

.dash-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dash-badges span {
  font-size: 0.74rem;
  border: 1px solid rgba(145, 178, 255, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  color: #bdd0ff;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
}

.stats-grid,
.cases-grid,
.testimonials-grid,
.process-grid,
.faq-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.95rem;
}

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

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

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

.stat-card,
.case-card,
.testimonial-card,
.process-card,
.faq-item,
.panel-card {
  padding: 1.15rem;
}

.stat-value {
  margin: 0;
  font-size: 1.88rem;
  font-weight: 700;
}

.stat-label,
.case-context,
.process-text,
.faq-panel p,
.testimonial-quote,
.hero-subtitle {
  color: #b8c9ed;
}

.logo-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #b7c8f0;
}

.logos-wrap {
  padding: 1rem;
}

.logo-row {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.logo-pill {
  border: 1px solid rgba(149, 185, 255, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  background: rgba(18, 32, 63, 0.6);
}

.split-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-reset {
  margin: 0.9rem 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.list-item,
.case-metrics li {
  border-radius: 0.62rem;
  border: 1px solid rgba(144, 181, 255, 0.24);
  background: rgba(16, 28, 56, 0.55);
  padding: 0.55rem 0.72rem;
}

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.cases-caption {
  font-size: 0.82rem;
  color: #99add9;
}

.case-period,
.process-step {
  margin: 0;
  font-size: 0.72rem;
  color: #76d2ff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.case-title,
.process-title {
  margin: 0.5rem 0 0;
}

.case-metrics {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.46rem;
}

.testimonial-name {
  margin: 0.9rem 0 0;
  color: #6be6b3;
}

.faq-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.faq-question {
  font-size: 1rem;
}

.faq-symbol {
  color: #7be4ff;
  font-size: 1.2rem;
}

.faq-panel {
  overflow: hidden;
}

.faq-item .faq-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.faq-item.is-open .faq-panel {
  max-height: 340px;
  opacity: 1;
  transform: translateY(0);
}

.contact-block {
  padding-top: 3.2rem;
  padding-bottom: 4.8rem;
}

.contact-card {
  padding: 1.55rem;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  background:
    radial-gradient(26rem 12rem at 50% 0%, rgba(110, 98, 255, 0.3), transparent 70%),
    linear-gradient(160deg, rgba(10, 21, 44, 0.86), rgba(13, 20, 40, 0.76));
}

.contact-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #8fb4ff;
}

.contact-card h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.contact-card p {
  margin: 0.75rem 0 0;
  color: #b9caf0;
}

.tg-btn {
  margin-top: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(129, 205, 255, 0.9);
  outline-offset: 2px;
}

@keyframes grid-pan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(64px);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.05;
  }
  to {
    opacity: 0.12;
  }
}

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

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

  .cases-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .burger {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 14, 30, 0.96);
    border-bottom: 1px solid rgba(140, 179, 255, 0.25);
    padding: 0.9rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .split-grid,
  .process-grid,
  .cases-grid,
  .testimonials-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cases-caption {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
