:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --primary: #6d28d9;
  --primary-2: #2563eb;
  --teal: #0f766e;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

code {
  color: #475569;
  background: #e9eef7;
  border-radius: 6px;
  padding: 2px 6px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.logo {
  width: 42px;
  height: 42px;
}

.logo.small {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4c1d95;
  font-weight: 700;
}

.nav-links a:not(.btn):hover,
.list a:hover,
.contact-list a:hover {
  color: var(--primary-2);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
  cursor: pointer;
}

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

.btn-sm {
  min-height: 40px;
  padding: 10px 18px;
}

.btn-ghost {
  color: var(--primary);
  background: #fff;
  border: 1px solid #ddd6fe;
  box-shadow: none;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(109, 40, 217, 0.08), rgba(15, 118, 110, 0.1)),
    #f8fbff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
  animation: grid-drift 18s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 20px;
  height: 120px;
  background: repeating-linear-gradient(
    96deg,
    transparent 0 34px,
    rgba(245, 158, 11, 0.2) 35px,
    transparent 36px 74px
  );
  opacity: 0.42;
  transform: skewY(-2deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0 90px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: 0;
}

.grad {
  color: transparent;
  background: linear-gradient(100deg, var(--primary), var(--primary-2), var(--teal), var(--primary));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-flow 7s ease-in-out infinite;
}

.hero-copy p,
.section-subtitle,
.footer p {
  color: var(--muted);
  font-size: 18px;
}

.hero-cta,
.center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.trust li {
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 9px 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trust li:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.hero-media {
  position: relative;
  isolation: isolate;
  perspective: 900px;
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 24px 45px rgba(15, 23, 42, 0.14));
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.badge {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 10%;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #0f172a;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  animation: badge-pulse 3.8s ease-in-out infinite;
}

.research-ring {
  position: absolute;
  inset: -26px;
  z-index: 1;
  animation: ring-spin 24s linear infinite;
  pointer-events: none;
}

.research-ring span {
  position: absolute;
  min-width: 86px;
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: #312e81;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  animation: ring-counter 24s linear infinite;
}

.research-ring span:nth-child(1) {
  left: 8%;
  top: 9%;
}

.research-ring span:nth-child(2) {
  right: 0;
  top: 32%;
}

.research-ring span:nth-child(3) {
  left: 12%;
  bottom: 10%;
}

.research-ring span:nth-child(4) {
  right: 12%;
  bottom: 4%;
}

.route-panel {
  position: absolute;
  left: 5%;
  top: 15%;
  z-index: 3;
  width: min(230px, 48%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.route-line {
  position: absolute;
  left: 31px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  overflow: hidden;
  background: #dbeafe;
}

.route-line::after {
  content: "";
  position: absolute;
  inset: -70% 0 0;
  background: linear-gradient(180deg, transparent, var(--primary-2), transparent);
  animation: route-scan 2.8s ease-in-out infinite;
}

.route-node {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: #334155;
  font-weight: 800;
}

.route-node + .route-node {
  margin-top: 12px;
}

.route-node b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  color: var(--primary-2);
  background: #fff;
  font-size: 12px;
}

.route-node.is-hot b {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.12);
}

.wave {
  height: 20px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--primary));
  background-size: 220% 100%;
  animation: wave-flow 6s ease-in-out infinite;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--soft);
}

.section-title {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.14;
}

.section-subtitle {
  margin: 0 0 34px;
  max-width: 760px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step,
.video-card,
.price-card,
.testimonial,
.form,
.resource-card,
.legal-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.step::after,
.video-card::after,
.price-card::after,
.testimonial::after,
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 34%, rgba(37, 99, 235, 0.12) 45%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-32%);
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events: none;
}

.step:hover::after,
.video-card:hover::after,
.price-card:hover::after,
.testimonial:hover::after,
.resource-card:hover::after {
  opacity: 1;
  transform: translateX(32%);
}

.fx-card {
  transform: rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.fx-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.11);
}

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

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

.step {
  padding: 22px;
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.step h3,
.video-card h3,
.price-card h3 {
  margin: 16px 0 8px;
}

.step p,
.video-card p,
.price-card li,
.testimonial,
.resource-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.video-grid,
.pricing,
.testimonials,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  overflow: hidden;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2ff;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 22px;
  cursor: pointer;
}

.video-card h3,
.video-card p {
  padding: 0 18px;
}

.video-card p {
  padding-bottom: 20px;
}

.mt-20 {
  margin-top: 28px;
  justify-content: center;
}

.price-card {
  position: relative;
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(109, 40, 217, 0.4);
  box-shadow: var(--shadow);
}

.price {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 15px;
}

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #713f12;
  background: #fef3c7;
  font-weight: 900;
  font-size: 13px;
}

.testimonials {
  align-items: stretch;
}

.testimonial {
  margin: 0;
  padding: 26px;
}

.testimonial blockquote {
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 800;
}

.cta {
  color: #fff;
  background: #0f172a;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: 40px;
}

.cta p,
.cta a,
.contact-list {
  color: #dbe4ef;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.form {
  padding: 26px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: #334155;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: var(--primary-2);
}

.form-msg {
  margin: 12px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.footer {
  padding: 46px 0 22px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 26px;
}

.list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.copy {
  width: min(100% - 40px, 1200px);
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.74);
}

.modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.video-wrap {
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.32);
  font-size: 26px;
}

.page-hero {
  padding: 72px 0;
  background: var(--soft);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.1;
}

.resource-card,
.legal-card {
  padding: 26px;
}

.legal-card {
  max-width: 880px;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }

  .route-panel {
    width: min(230px, 56%);
  }

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

  .video-grid,
  .pricing,
  .testimonials,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .nav {
    min-height: 66px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .nav-links .btn {
    margin-top: 12px;
    border-bottom: 0;
  }

  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 52px 0 70px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .research-ring {
    display: none;
  }

  .route-panel {
    left: 0;
    top: 10%;
    width: min(220px, 52%);
  }

  .section {
    padding: 62px 0;
  }

  .section-title,
  .cta h2 {
    font-size: 31px;
  }
}

@media (max-width: 620px) {
  .hero-cta,
  .hero-cta .btn,
  .center .btn {
    width: 100%;
  }

  .timeline,
  .video-grid,
  .pricing,
  .testimonials,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    display: grid;
  }

  .route-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-media img {
    transform: none !important;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 92px 46px, 46px 92px;
  }
}

@keyframes text-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes ring-counter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes route-scan {
  0% {
    transform: translateY(-30%);
  }
  100% {
    transform: translateY(130%);
  }
}

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

@keyframes wave-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

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