:root {
  --cobalt: #2d5bff;
  --sky: #8ccbff;
  --gold: #ffd76a;
  --mist: #f7faff;
  --graphite: #172033;
  --emerald: #2dba7f;
  --coral: #f46b5f;
  --deep: #10193a;
  --line: rgba(23, 32, 51, 0.11);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: #f6f8ff;
  font-family: "Manrope", sans-serif;
  background: #0a1020;
}

body {
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 15% 10%, #18315b 0%, #0a1020 48%),
    radial-gradient(circle at 88% 12%, rgba(45, 91, 255, 0.26) 0%, rgba(45, 91, 255, 0) 40%),
    linear-gradient(160deg, #080e1d 0%, #0e1930 100%);
  animation: bgShift 12s ease-in-out infinite alternate;
}

.map-lines {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.58;
  mask-image: radial-gradient(circle at 72% 18%, black 0%, rgba(0, 0, 0, 0.34) 56%, transparent 100%);
  animation: gridDrift 18s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 68px);
  backdrop-filter: blur(16px);
  background: rgba(10, 16, 32, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo {
  color: #f3f7ff;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.halo {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--cobalt) 0%, var(--sky) 56%, var(--gold) 100%);
  box-shadow: 0 0 0 6px rgba(45, 91, 255, 0.13);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #c8d5f4;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav .nav-cta {
  background: linear-gradient(140deg, var(--cobalt) 0%, #4f79ff 42%, var(--gold) 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(45, 91, 255, 0.25);
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #d2def8;
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:last-child {
  border-right: 0;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.theme-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #edf3ff;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 5vw, 56px) 0 18px;
  animation: rise 0.7s ease;
}

.eyebrow {
  color: var(--cobalt);
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Outfit", sans-serif;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.4px;
}

.subheadline {
  margin: 18px 0 0;
  color: #b8c8ea;
  line-height: 1.8;
  max-width: 650px;
}

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

.btn {
  text-decoration: none;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-solid {
  background: linear-gradient(140deg, var(--cobalt) 0%, #4f79ff 42%, var(--gold) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(45, 91, 255, 0.24);
}

.btn-outline {
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

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

.phone-shell {
  width: min(440px, 100%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 247, 255, 0.92) 100%);
  box-shadow: 0 24px 52px rgba(37, 57, 97, 0.17);
  padding: 18px;
  animation: floatCard 6s ease-in-out infinite;
}

.phone-top {
  color: #3b4f7e;
  font-weight: 700;
  margin-bottom: 12px;
}

.route-panel {
  height: 260px;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(45, 91, 255, 0.18);
  background: radial-gradient(circle at 20% 28%, rgba(140, 203, 255, 0.26), rgba(140, 203, 255, 0.04) 58%),
    linear-gradient(145deg, #f4f9ff 0%, #ecf3ff 100%);
  overflow: hidden;
}

.line {
  position: absolute;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4ea7ff 0%, var(--cobalt) 45%, var(--gold) 100%);
  filter: drop-shadow(0 2px 8px rgba(45, 91, 255, 0.28));
}

.line-a {
  width: 72%;
  transform: rotate(23deg);
  top: 44%;
  left: 6%;
  animation: routeSweepA 4s ease-in-out infinite;
}

.line-b {
  width: 44%;
  transform: rotate(-26deg);
  top: 58%;
  left: 47%;
  animation: routeSweepB 4.5s ease-in-out infinite;
}

.pulse {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  position: absolute;
  background: #fff;
  border: 3px solid var(--cobalt);
}

.pulse::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid rgba(45, 91, 255, 0.3);
  animation: pulseRing 2s ease-out infinite;
}

.p1 { top: 24%; left: 16%; }
.p2 { top: 50%; left: 44%; border-color: var(--emerald); }
.p3 { top: 67%; left: 73%; border-color: var(--coral); }

.route-meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.route-meta p {
  margin: 0;
  border: 1px solid rgba(45, 91, 255, 0.14);
  border-radius: 11px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-meta span {
  font-size: 0.75rem;
  color: #5f6f91;
}

.route-meta strong {
  font-size: 0.82rem;
}

.trust-band {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(130deg, rgba(45, 91, 255, 0.24), rgba(255, 215, 106, 0.18));
  padding: 12px 16px;
  text-align: center;
}

.trust-band p {
  margin: 0;
  font-weight: 700;
  color: #d6e2ff;
}

.section {
  margin-top: clamp(34px, 5vw, 74px);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.section.light {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.section.light .section-tag {
  color: #4a65b8;
}

.section.light h2 {
  color: #172033;
}

.section.light p {
  color: #43516f;
}

.section.light .bullets {
  color: #34415e;
}

.section-tag {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  color: #9ec0ff;
  font-weight: 800;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 3.6vw, 2.35rem);
  color: #f6f9ff;
}

.section p {
  max-width: 900px;
  margin: 12px 0 0;
  line-height: 1.86;
  color: #c3d2f0;
}

.cards {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

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

.card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  padding: 18px;
}

.card h3 {
  font-size: 1.1rem;
  color: #f4f8ff;
}

.card p {
  margin-top: 8px;
  line-height: 1.72;
  color: #c6d5f1;
}

.card.soft {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.15) 0%, rgba(242, 247, 255, 0.08) 100%);
}

.bullets {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  color: #d4e1f8;
  font-weight: 600;
}

.final-cta {
  margin-top: clamp(34px, 5vw, 80px);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
  background: linear-gradient(145deg, #1b3277 0%, #2d5bff 40%, #3866ff 61%, #efc95f 100%);
  color: #fff;
  box-shadow: 0 25px 50px rgba(45, 91, 255, 0.26);
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3.7vw, 2.6rem);
}

.final-cta p {
  margin: 12px 0 18px;
  max-width: 760px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.final-cta .btn-solid {
  background: #fff;
  color: #1a357a;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: ctaGlow 2.4s ease-in-out infinite;
}

.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 28px auto 32px;
  color: #b9c8e8;
  display: grid;
  gap: 8px;
}

.site-footer p {
  margin: 2px 0;
}

.copyright {
  margin-top: 8px;
  color: #95a7cf;
  font-size: 0.88rem;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme="light"] {
  color: #172033;
  background: #f3f7ff;
}

body[data-theme="light"] .bg-layer {
  background: radial-gradient(circle at 88% 12%, rgba(45, 91, 255, 0.22) 0%, rgba(45, 91, 255, 0) 38%),
    radial-gradient(circle at 10% 70%, rgba(140, 203, 255, 0.28) 0%, rgba(140, 203, 255, 0) 42%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

body[data-theme="light"] .map-lines {
  background-image: linear-gradient(90deg, rgba(45, 91, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(45, 91, 255, 0.055) 1px, transparent 1px);
  opacity: 0.42;
}

body[data-theme="light"] .site-header {
  background: rgba(247, 250, 255, 0.82);
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
}

body[data-theme="light"] .logo {
  color: #172033;
}

body[data-theme="light"] .site-nav a {
  color: #3d4a67;
}

body[data-theme="light"] .lang-switch,
body[data-theme="light"] .theme-btn {
  border-color: rgba(23, 32, 51, 0.2);
  background: rgba(23, 32, 51, 0.04);
}

body[data-theme="light"] .lang-btn {
  color: #344666;
  border-right-color: rgba(23, 32, 51, 0.12);
}

body[data-theme="light"] .lang-btn.active {
  background: rgba(45, 91, 255, 0.14);
  color: #1d3272;
}

body[data-theme="light"] .theme-btn {
  color: #243862;
}

body[data-theme="light"] .subheadline,
body[data-theme="light"] .section p,
body[data-theme="light"] .card p,
body[data-theme="light"] .bullets,
body[data-theme="light"] .site-footer,
body[data-theme="light"] .copyright {
  color: #445472;
}

body[data-theme="light"] .section,
body[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 32, 51, 0.11);
}

body[data-theme="light"] .section h2,
body[data-theme="light"] .card h3,
body[data-theme="light"] h1 {
  color: #172033;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bgShift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(0, -14px, 0); }
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(42px, 42px, 0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes routeSweepA {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes routeSweepB {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes pulseRing {
  0% { opacity: 0.5; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(1.28); }
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

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

  .cards.three {
    grid-template-columns: 1fr;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .controls {
    margin-left: 0;
  }

  .route-meta {
    grid-template-columns: 1fr;
  }
}
