:root {
  --primary: #ef4b2d;
  --primary-dark: #d83d20;
  --blue-900: #071d49;
  --blue-800: #0f3180;
  --blue-700: #1b57c4;
  --blue-500: #4a97ff;
  --text: #13284e;
  --muted: #5c6f90;
  --surface: rgba(255,255,255,0.92);
  --surface-solid: #ffffff;
  --line: rgba(17, 63, 145, 0.12);
  --shadow: 0 18px 42px rgba(17, 58, 143, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
          radial-gradient(circle at top center, rgba(116, 190, 255, 0.32), transparent 28%),
          linear-gradient(180deg, #f7fbff 0%, #e8f3ff 100%);
  line-height: 1.45;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.section {
  padding: 72px 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 58, 143, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--blue-800);
  line-height: 1;
}

.brand-copy span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6a41 0%, var(--primary) 100%);
  box-shadow: 0 10px 24px rgba(239, 75, 45, 0.25);
}

.btn-secondary {
  color: var(--blue-800);
  background: rgba(255,255,255,0.9);
  border-color: var(--line);
}

/* Hero */
.hero {
  overflow: hidden;
  background:
          radial-gradient(circle at 80% 22%, rgba(74,151,255,0.22), transparent 24%),
          radial-gradient(circle at 15% 10%, rgba(74,151,255,0.14), transparent 20%),
          linear-gradient(180deg, #f8fcff 0%, #eef6ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27,87,196,0.1);
  color: var(--blue-800);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.animated-eyebrow span {
  background: linear-gradient(90deg, #1b57c4, #4a97ff, #ef4b2d);
  background-size: 200% auto;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
  max-width: 640px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  font-size: 18px;
}

.check-list li::before,
.plan-body li::before {
  content: "✓";
  color: #2c9b44;
  font-weight: 800;
  margin-right: 10px;
}

.tagline {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--blue-800);
  font-weight: 800;
}

.tagline span {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.spotlight-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 520px;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(74,151,255,0.18), transparent 70%);
}

.spotlight-main {
  max-width: 68%;
}

.spotlight-price {
  margin: 0;
  color: var(--primary);
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.spotlight-price span {
  font-size: 28px;
  font-weight: 800;
}

.spotlight-main h2 {
  margin: 16px 0 4px;
  font-size: 34px;
  color: var(--blue-800);
}

.spotlight-plan {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--muted);
  font-weight: 700;
}

.spotlight-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

/* App icons */
.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.app-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.app-icons img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 10px 18px rgba(17, 58, 143, 0.18));
  transition: transform .22s ease, filter .22s ease;
  animation: floatIcon 4s ease-in-out infinite;
}

.app-icons img:nth-child(2) { animation-delay: .15s; }
.app-icons img:nth-child(3) { animation-delay: .3s; }
.app-icons img:nth-child(4) { animation-delay: .45s; }

.app-icons img:hover {
  transform: translateY(-6px) scale(1.08);
  filter:
          drop-shadow(0 12px 22px rgba(17, 58, 143, 0.20))
          drop-shadow(0 0 12px rgba(74, 151, 255, 0.45));
}

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

/* Delay animations until page is ready */
.app-icons img,
.logo-track,
.animated-eyebrow span {
  animation-play-state: paused;
}

.page-ready .app-icons img,
.page-ready .logo-track,
.page-ready .animated-eyebrow span {
  animation-play-state: running;
}

/* Plan badge */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6a41 0%, #ef4b2d 100%);
  box-shadow:
          0 8px 18px rgba(239, 75, 45, 0.25),
          inset 0 1px 0 rgba(255,255,255,0.25);
  pointer-events: none;
}

.plan-badge .fire {
  font-size: 24px;
  line-height: 1;
  display: flex;
}

/* Mascot */
.mascot {
  position: absolute;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

.mascot.foxy {
  width: 300px;
  right: -16px;
  bottom: 8px;
}

/* Logo carousel - large version */
.logo-carousel-section {
  padding: 20px 0 10px;
}

.logo-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #eef4fb 0%, rgba(238,244,251,0) 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #eef4fb 0%, rgba(238,244,251,0) 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: logoMarquee 28s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  min-width: 220px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 63, 145, 0.12);
  box-shadow: 0 12px 28px rgba(17, 58, 143, 0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.logo-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(17, 58, 143, 0.18);
}

.logo-item img {
  max-width: 180px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes logoMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--blue-900);
}

.section-title p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.plan-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.plan-top {
  color: #fff;
  text-align: center;
  padding: 18px 12px;
}

.plan-red .plan-top { background: linear-gradient(180deg, #ff6840, #db3f24); }
.plan-blue .plan-top { background: linear-gradient(180deg, #3d8fff, #1f5bd8); }
.plan-violet .plan-top { background: linear-gradient(180deg, #8b76ff, #6540d5); }
.plan-orange .plan-top { background: linear-gradient(180deg, #ff9a4a, #eb5d1d); }
.plan-maroon .plan-top { background: linear-gradient(180deg, #ff6358, #cf3a2c); }

.plan-top .amount {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 8px;
}

.plan-top .speed {
  font-size: 18px;
  font-weight: 800;
}

.plan-image {
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  margin: 12px;
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.plan-card:hover .plan-image img {
  transform: scale(1.06);
}

.plan-body {
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  min-height: 255px;
}

.plan-body h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.02;
  text-align: center;
  color: var(--blue-900);
}

.plan-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.plan-body li.highlight {
  color: var(--blue-700);
  font-weight: 800;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-align: center;
  color: var(--blue-900);
  font-weight: 800;
}

.benefit-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* CTA */
.cta-box {
  margin-top: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0a1d49 0%, #10357f 58%, #1a56bf 100%);
  box-shadow: var(--shadow);
  color: #fff;
  text-align: center;
  padding: 36px 24px;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.cta-box p {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.84);
  font-size: 18px;
}

.cta-actions {
  justify-content: center;
}

/* FAQ */
.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

details {
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0 20px;
}

summary {
  list-style: none;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 800;
  color: var(--blue-900);
  font-size: 18px;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  background:
          radial-gradient(circle at 50% 0%, rgba(71, 159, 255, 0.18), transparent 26%),
          linear-gradient(180deg, #07152f 0%, #0a2354 50%, #081a3f 100%);
  color: #fff;
  text-align: center;
  padding: 58px 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(172, 222, 255, 0.9), transparent);
  box-shadow: 0 0 25px rgba(172, 222, 255, 0.55);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 92px;
  margin: 0 auto 12px;
}

.footer-brand {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.footer-sub {
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.25em;
  font-size: 14px;
}

.footer-copy {
  margin: 22px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  width: 220px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.preloader-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: amigoPulse 1.6s ease-in-out infinite;
}

.preloader-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid rgba(27, 87, 196, 0.12);
  border-top-color: var(--primary);
  border-right-color: var(--blue-500);
  animation: amigoSpin 1.1s linear infinite;
}

.preloader-inner p {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: .03em;
  text-align: center;
}

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

@keyframes amigoPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

/* Rendering optimization */
.plan-image img,
.logo-item img,
.mascot,
.brand-logo,
.footer-logo {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Responsive */
@media (max-width: 1120px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; }
  .spotlight-card { min-height: 0; }
  .spotlight-main { max-width: 100%; padding-right: 0; }

  .mascot.foxy {
    position: static;
    width: 140px;
  }

  .spotlight-card {
    display: grid;
    gap: 18px;
    justify-items: center;
  }

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

  .logo-item {
    min-width: 180px;
    height: 110px;
    padding: 12px 18px;
  }

  .logo-item img {
    max-width: 140px;
    max-height: 70px;
  }

  .logo-track {
    gap: 20px;
    animation-duration: 24s;
  }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { width: min(var(--container), calc(100% - 24px)); }
  .brand-copy strong { font-size: 24px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 18px; }
  .check-list { font-size: 16px; }
  .spotlight-price { font-size: 46px; }
  .spotlight-price span { font-size: 22px; }
  .plans-grid,
  .benefits-grid { grid-template-columns: 1fr; }
  .cta-box h2 { font-size: 28px; }
  .footer-brand { font-size: 34px; }

  .logo-carousel::before,
  .logo-carousel::after {
    width: 36px;
  }

  .logo-item {
    min-width: 200px;
    height: 120px;
    padding: 10px 14px;
    border-radius: 18px;
  }

  .logo-item img {
    max-width: 160px;
    max-height: 80px;
  }

  .logo-track {
    gap: 16px;
    animation-duration: 20s;
  }
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.apply-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.apply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 73, 0.45);
  backdrop-filter: blur(6px);
}

.apply-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(17, 58, 143, 0.22);
  border: 1px solid rgba(17, 63, 145, 0.12);
}

.apply-modal__header {
  padding: 28px 28px 16px;
  border-bottom: 1px solid rgba(17, 63, 145, 0.08);
}

.apply-modal__header h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
  color: var(--blue-900);
}

.apply-modal__header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.apply-modal__body {
  padding: 24px 28px 28px;
}

.apply-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 63, 145, 0.08);
  color: var(--blue-900);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.apply-modal__close:hover {
  background: rgba(17, 63, 145, 0.14);
}

.apply-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(17, 63, 145, 0.18);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: var(--muted);
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .apply-modal {
    padding: 12px;
  }

  .apply-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
  }

  .apply-modal__header {
    padding: 22px 20px 14px;
  }

  .apply-modal__header h2 {
    font-size: 26px;
  }

  .apply-modal__body {
    padding: 18px 20px 22px;
  }
}