:root {
  --primary: #2f80ff;
  --deep: #1d4ed8;
  --accent: #60a5fa;
  --dark: #071426;
  --bg-a: #0a1224;
  --bg-b: #102b5e;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(248, 250, 252, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 128, 255, 0.2), transparent 35%),
    radial-gradient(circle at 80% 25%, rgba(96, 165, 250, 0.18), transparent 35%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 14px; }
.section-subtitle { color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.spaced { margin-top: 12px; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
}
.nav-shell {
  min-height: 72px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(8, 20, 40, 0.66);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand-logo { height: 22px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  position: relative;
  font-weight: 500;
  color: #d4e4ff;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  text-shadow: 0 0 16px rgba(96, 165, 250, 0.8);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.menu-toggle, .menu-close {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: 0.25s ease;
}
.menu-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.4rem;
  margin-left: auto;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 45;
}
body.menu-open .mobile-overlay { opacity: 1; visibility: visible; }

.badge {
  display: inline-flex;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  color: #d8e7ff;
}

.hero { padding: 28px 0 46px; }
.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.88), rgba(8, 22, 42, 0.95)),
    radial-gradient(circle at 50% 0%, rgba(47, 128, 255, 0.2), transparent 60%);
  box-shadow:
    0 30px 70px rgba(5, 11, 24, 0.5),
    0 0 48px rgba(29, 78, 216, 0.28);
  transform-style: preserve-3d;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.wave-main {
  position: absolute;
  top: -160px;
  left: -10%;
  width: 120%;
  height: 360px;
  border-radius: 0 0 50% 50%;
  background: radial-gradient(circle at 50% 70%, rgba(96, 165, 250, 0.58), rgba(47, 128, 255, 0.14) 52%, transparent 78%);
  animation: liquidWave 11s ease-in-out infinite;
}
.wave-main::before, .wave-main::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 58% 42% / 56% 44% 60% 40%;
  filter: blur(10px);
}
.wave-main::before {
  width: 68%;
  height: 220px;
  left: 5%;
  top: 34px;
  background: radial-gradient(circle at 35% 55%, rgba(96, 165, 250, 0.36), rgba(29, 78, 216, 0.05) 65%, transparent 78%);
  animation: blobA 8.4s ease-in-out infinite;
}
.wave-main::after {
  width: 58%;
  height: 190px;
  right: 3%;
  top: 60px;
  background: radial-gradient(circle at 60% 40%, rgba(47, 128, 255, 0.38), rgba(96, 165, 250, 0.08) 62%, transparent 76%);
  animation: blobB 9.2s ease-in-out infinite;
}
.wave-streak {
  position: absolute;
  height: 1px;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
  transform: rotate(-12deg);
  animation: streak 8.8s linear infinite;
}
.wave-streak.one { top: 34%; left: -10%; }
.wave-streak.two { top: 58%; right: -16%; animation-delay: -4s; }
.wave-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.24;
  filter: blur(80px);
}
.wave-glow.left { width: 240px; height: 240px; left: -30px; bottom: 60px; background: rgba(47, 128, 255, 0.45); }
.wave-glow.right { width: 300px; height: 300px; right: -80px; bottom: -40px; background: rgba(29, 78, 216, 0.45); }

.particles { position: absolute; inset: 0; }
.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.76);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.9), 0 0 20px rgba(47, 128, 255, 0.5);
  animation: particleTrail 8.4s ease-in-out infinite;
}
.particles span:nth-child(1) { top: 22%; left: 18%; }
.particles span:nth-child(2) { top: 18%; left: 43%; animation-delay: -1.7s; }
.particles span:nth-child(3) { top: 30%; right: 24%; animation-delay: -3.3s; }
.particles span:nth-child(4) { top: 56%; left: 26%; }
.particles span:nth-child(5) { top: 62%; right: 18%; animation-delay: -1.7s; }
.particles span:nth-child(6) { bottom: 22%; left: 56%; animation-delay: -3.3s; }

.hero-strip, .hero-content, .hero-stats { position: relative; z-index: 2; }
.hero-strip {
  margin: 18px 18px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  color: #aec4e6;
  font-size: 0.75rem;
}
.hero-content {
  max-width: 760px;
  margin: 90px auto 62px;
  text-align: center;
}
.hero-content h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.07; margin-bottom: 14px; }
.hero-content p { color: var(--muted); max-width: 650px; margin: 0 auto; }
.hero-cta { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.button {
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  position: relative;
  overflow: hidden;
}
.button-primary {
  background: linear-gradient(110deg, var(--primary), var(--deep));
  box-shadow: 0 12px 28px rgba(47, 128, 255, 0.45);
}
.button-secondary {
  border-color: rgba(248, 250, 252, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.button:hover { transform: translateY(-3px); }
.ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 18px 18px;
}

.glass-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(6, 12, 26, 0.35);
  padding: 20px;
  transition: 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.66);
  box-shadow: 0 20px 40px rgba(4, 12, 30, 0.5);
}
.hero-stats .glass-card strong,
.stat strong { display: block; font-size: 1.65rem; }
.hero-stats .glass-card span,
.stat span,
.glass-card p { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.timeline .glass-card { position: relative; }
.timeline .glass-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -8px;
  width: 2px;
  height: calc(100% - 12px);
  background: linear-gradient(var(--accent), transparent);
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 20px; }

.testimonial-slider {
  position: relative;
  min-height: 150px;
}
.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: 0.45s ease;
}
.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card p { margin-bottom: 12px; color: #dbe7ff; }
.testimonial-card span { color: var(--muted); }

.cta-banner {
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background:
    linear-gradient(125deg, rgba(47, 128, 255, 0.25), rgba(29, 78, 216, 0.2)),
    rgba(7, 20, 38, 0.84);
  box-shadow: 0 20px 50px rgba(4, 12, 30, 0.45);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
form { display: grid; gap: 10px; }
label { font-weight: 600; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
textarea { min-height: 130px; resize: vertical; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  padding: 0 16px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 180px; padding: 0 16px 14px; }

.map-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  margin-top: 54px;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 20, 38, 0.45);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; color: #dbe7ff; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal.visible { opacity: 1; transform: translate(0, 0); }

@keyframes liquidWave {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); filter: blur(4px); }
  50% { transform: translate3d(0, 12px, 0) scale(1.03); filter: blur(7px); }
}
@keyframes blobA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, -6px, 0) rotate(3deg); }
}
@keyframes blobB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-10px, 5px, 0) rotate(-4deg); }
}
@keyframes streak {
  0% { transform: translateX(0) rotate(-12deg); opacity: 0.1; }
  50% { opacity: 0.55; }
  100% { transform: translateX(40px) rotate(-12deg); opacity: 0.1; }
}
@keyframes particleTrail {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.42; }
  50% { transform: translateY(-14px) scale(1.2); opacity: 1; }
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(16); opacity: 0; } }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .menu-close { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(300px, 85vw);
    height: 100vh;
    z-index: 55;
    padding: 18px;
    background: rgba(8, 20, 40, 0.95);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transition: right 0.3s ease;
  }
  body.menu-open .nav-links { right: 0; }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero-panel { min-height: 580px; }
  .hero-content { margin-top: 70px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .stats, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hero-panel { min-height: 560px; border-radius: 20px; }
  .hero-strip { font-size: 0.68rem; flex-wrap: wrap; justify-content: center; }
  .hero-content h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-stats { grid-template-columns: 1fr; margin-inline: 12px; }
}
