:root {
  --bg: #eef6ff;
  --bg-secondary: #e7f1ff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(17, 123, 255, 0.12);
  --border-soft: rgba(16, 72, 140, 0.08);
  --text: #10233f;
  --muted: #5b6b82;
  --primary: #0f7bff;
  --primary-dark: #0066f5;
  --primary-soft: rgba(15, 123, 255, 0.12);
  --shadow: 0 20px 50px rgba(18, 72, 140, 0.10);
  --radius: 22px;
  --container: 1180px;
  --mobile-nav-height: 78px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 145, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(50, 190, 255, 0.10), transparent 25%),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* background */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 123, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 123, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.65), transparent 85%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.02;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(17, 123, 255, 0.35) 0.5px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, rgba(17, 123, 255, 0.35) 0.5px, transparent 0.8px),
    radial-gradient(circle at 40% 80%, rgba(17, 123, 255, 0.35) 0.5px, transparent 0.8px),
    radial-gradient(circle at 70% 70%, rgba(17, 123, 255, 0.35) 0.5px, transparent 0.8px);
  background-size: 120px 120px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(85px);
  z-index: -3;
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(72, 175, 255, 0.18);
  top: -60px;
  left: -70px;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(0, 115, 255, 0.12);
  top: 140px;
  right: -100px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(16, 72, 140, 0.08);
  box-shadow: 0 8px 22px rgba(18, 72, 140, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, #1ea4ff, #0f7bff);
  box-shadow: 0 14px 28px rgba(15, 123, 255, 0.20);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 48%);
  pointer-events: none;
}

.brand:hover .brand-icon {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 123, 255, 0.24);
}

.brand-icon span {
  position: absolute;
  height: 2.5px;
  border-radius: 999px;
  background: #ffffff;
  z-index: 2;
}

.brand-icon span:first-child {
  width: 15px;
  transform: translateY(-4px);
}

.brand-icon span:last-child {
  width: 10px;
  transform: translateY(4px);
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #10233f;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  position: relative;
  overflow: hidden;
  padding: 12px 16px;
  border-radius: 14px;
  color: #58708d;
  font-size: 0.97rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f7bff;
  background: #eaf4ff;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ea4ff, #0f7bff);
}

.nav-link:active {
  transform: scale(0.97);
}

/* main */

.main-shell {
  min-height: 100vh;
}

.hero-btn {
  min-width: 150px;
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  transition: 0.25s ease;
}

.hero-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1ea4ff, #0f7bff);
  box-shadow: 0 16px 30px rgba(15, 123, 255, 0.20);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 123, 255, 0.24);
}

.hero-btn-secondary {
  color: #1266d6;
  background: #edf6ff;
  border: 1px solid rgba(18, 102, 214, 0.12);
}

.hero-btn-secondary:hover {
  background: #e3f0ff;
}

.hero-btn:active {
  transform: scale(0.97);
}

/* fade in */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* faq */

.faq-section {
  padding: 30px 0 10px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faq-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(17, 123, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(18, 72, 140, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.faq-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #132743;
}

.faq-card p {
  color: #5c6d82;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* mobile bottom nav */

.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 123, 255, 0.10);
  box-shadow: 0 18px 45px rgba(18, 72, 140, 0.12);
  backdrop-filter: blur(18px);
}

.mobile-nav-item {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 16px;
  color: #5d718a;
  transition: 0.22s ease;
}

.mobile-nav-item.active {
  color: #0f7bff;
  background: linear-gradient(180deg, #e9f4ff, #e0f0ff);
}

.mobile-nav-item.active::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ea4ff, #0f7bff);
}

.mobile-nav-item:hover {
  color: #0f7bff;
}

.mobile-nav-item:active {
  transform: scale(0.96);
}

.mobile-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-icon svg {
  width: 100%;
  height: 100%;
}

.mobile-nav-text {
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

/* footer */

.site-footer {
  position: relative;
  margin-top: 14px;
  padding: 0 0 34px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 123, 255, 0.16),
    transparent
  );
}

.footer-inner {
  padding-top: 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 26px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(17, 123, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(18, 72, 140, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
}

.footer-brand-block {
  max-width: 460px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-description {
  color: #5d6f85;
  font-size: 0.98rem;
  line-height: 1.75;
}

.footer-links-group h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.footer-links-group {
  display: flex;
  flex-direction: column;
}

.footer-links-group a {
  position: relative;
  width: fit-content;
  margin-bottom: 10px;
  color: #5d6f85;
  font-size: 0.95rem;
  transition: 0.22s ease;
}

.footer-links-group a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: 0.25s ease;
}

.footer-links-group a:hover {
  color: #0f7bff;
}

.footer-links-group a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px 0;
}

.footer-bottom p {
  color: #5d6f85;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-bottom-links a {
  color: #5d6f85;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #0f7bff;
}

/* animations */

@keyframes floatOrb {
  0% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
  100% { transform: translateY(0px); }
}

/* responsive */

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--mobile-nav-height) + 22px);
  }

  .header-inner {
    min-height: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .brand-text {
    font-size: 1.35rem;
  }

  .faq-section {
    padding-top: 20px;
  }

  .faq-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .site-footer {
    padding-bottom: 110px;
  }

  .footer-inner {
    padding-top: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .footer-description {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 4px 0;
  }

  .footer-bottom-links {
    gap: 14px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .mobile-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 7px;
  }

  .mobile-nav-text {
    font-size: 0.68rem;
  }

  .footer-top {
    padding: 20px 16px;
  }

  .footer-links-group h3 {
    font-size: 0.96rem;
  }

  .footer-links-group a,
  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 0.88rem;
  }
}