:root {
  --bg: #070b14;
  --panel: rgba(14, 21, 37, 0.82);
  --panel-strong: #111b30;
  --text: #ebf1ff;
  --muted: #9dafd7;
  --primary: #3be3a7;
  --primary-strong: #2dcc93;
  --secondary: #5d8bff;
  --border: rgba(147, 172, 236, 0.22);
  --shadow: 0 14px 32px rgba(4, 10, 25, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 5%, #142449 0%, transparent 30%),
    radial-gradient(circle at 95% 0%, #1b304f 0%, transparent 26%),
    var(--bg);
  scroll-behavior: smooth;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(59, 227, 167, 0.1), transparent 24%),
    radial-gradient(circle at 75% 65%, rgba(93, 139, 255, 0.12), transparent 24%);
  z-index: -1;
  animation: glow-pulse 10s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

section {
  margin-top: 48px;
}

.hero {
  background: linear-gradient(140deg, rgba(17, 27, 48, 0.95), rgba(8, 14, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 34px;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(59, 227, 167, 0.16);
  color: var(--primary);
  animation: float-badge 4s ease-in-out infinite;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #06141a;
  box-shadow: 0 10px 20px rgba(59, 227, 167, 0.24);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(13, 20, 36, 0.72);
}

.btn-secondary:hover {
  background: rgba(21, 32, 56, 0.92);
}

.btn-small {
  width: 100%;
  margin-top: 14px;
  background: rgba(59, 227, 167, 0.16);
  color: var(--primary);
  border-color: rgba(59, 227, 167, 0.3);
}

.header-cta {
  text-decoration: none;
  font-weight: 700;
  color: #06141a;
  background: var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
}

.hero-stats {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hero-stats article {
  background: rgba(14, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.hero-stats h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.4rem;
}

.hero-stats p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.plan-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.plan-card.featured {
  outline: 2px solid rgba(59, 227, 167, 0.36);
}

.plan-card.selected {
  border-color: rgba(59, 227, 167, 0.6);
  transform: translateY(-2px);
}

.plan-title {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 700;
}

.plan-card h3,
.plan-card h4 {
  margin: 12px 0 0;
  font-size: 1.6rem;
}

.arrow {
  margin: 4px 0;
  color: var(--muted);
}

.ratio {
  margin: 12px 0 0;
  color: var(--muted);
}

.calculator-card,
.disclaimer {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

select {
  width: 100%;
  max-width: 370px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  font-size: 1rem;
}

.result-panel {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
}

.result-panel strong {
  color: var(--text);
}

#calculator-cta {
  margin-top: 18px;
}

.disclaimer h2 {
  margin: 0 0 10px;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.disclaimer p + p {
  margin-top: 8px;
}

.site-footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

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

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

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

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

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

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.hero.reveal.is-visible h1 {
  animation: fadeSlideIn 0.7s ease both;
}

.hero.reveal.is-visible .hero-copy {
  animation: fadeSlideIn 0.75s ease 0.08s both;
}

.hero.reveal.is-visible .hero-actions {
  animation: fadeSlideIn 0.75s ease 0.14s both;
}

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

.hero.reveal.is-visible .hero-stats article {
  animation: fadeSlideIn 0.55s ease both;
}

.hero.reveal.is-visible .hero-stats article:nth-child(1) {
  animation-delay: 0.1s;
}

.hero.reveal.is-visible .hero-stats article:nth-child(2) {
  animation-delay: 0.18s;
}

.hero.reveal.is-visible .hero-stats article:nth-child(3) {
  animation-delay: 0.26s;
}

.plans.reveal.is-visible .plan-card {
  animation: cardPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.plans.reveal.is-visible .plan-card:nth-child(1) {
  animation-delay: 0.04s;
}

.plans.reveal.is-visible .plan-card:nth-child(2) {
  animation-delay: 0.1s;
}

.plans.reveal.is-visible .plan-card:nth-child(3) {
  animation-delay: 0.16s;
}

.plans.reveal.is-visible .plan-card:nth-child(4) {
  animation-delay: 0.22s;
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(4, 10, 25, 0.55);
}

.testimonials {
  margin-top: 48px;
}

.testimonial-carousel {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 18px;
  box-shadow: var(--shadow);
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 28px 22px 20px;
  text-align: center;
}

.testimonial-slide blockquote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.testimonial-slide figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13, 20, 36, 0.85);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  transform: scale(1.05);
  border-color: rgba(59, 227, 167, 0.45);
  background: rgba(21, 32, 56, 0.95);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(157, 175, 215, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, width 0.25s ease;
}

.carousel-dot[aria-selected="true"] {
  background: var(--primary);
  width: 22px;
}

.faq {
  margin-top: 48px;
}

.faq-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 21, 37, 0.55);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(59, 227, 167, 0.35);
  box-shadow: 0 8px 24px rgba(4, 10, 25, 0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s ease, border-color 0.25s ease, background 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, background 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item.is-open .faq-icon {
  border-color: rgba(59, 227, 167, 0.45);
  background: rgba(59, 227, 167, 0.1);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.lead {
  margin-top: 48px;
}

.lead-grid {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.lead-form,
.lead-aside {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.lead-aside h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.lead-aside ul {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.lead-aside .btn {
  width: 100%;
}

.form-row {
  margin-bottom: 14px;
}

.form-row input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus {
  outline: none;
  border-color: rgba(59, 227, 167, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 227, 167, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--primary);
}

#lead-submit {
  width: 100%;
  position: relative;
  min-height: 48px;
}

#lead-submit.is-loading .btn-label {
  opacity: 0.35;
}

#lead-submit.is-loading .btn-spinner {
  opacity: 1;
}

.btn-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(6, 20, 26, 0.25);
  border-top-color: #06141a;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.75s linear infinite;
  pointer-events: none;
}

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

.form-error {
  margin: 10px 0 0;
  color: #ff8b8b;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-success {
  margin: 10px 0 0;
  color: var(--primary);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header {
    padding: 14px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 34px 18px;
  }
}
