:root {
  /* Extended Palette for Modern Landing Look (reusing base.css variables) */
  --accent-glow: rgba(78, 74, 229, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-primary: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    #7c3aed 100%
  );
  --gradient-soft: linear-gradient(
    180deg,
    var(--brand-primary-ultra) 0%,
    #ffffff 100%
  );

  /* Spacing & Radius Overrides / Additions */
  --radius-20: 20px;
  --radius-30: 30px;
}

body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Layout Utils (using base.css .container) --- */
section {
  padding: 100px 0;
}

/* --- Glassmorphism --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* --- Button Overrides for Premium Look --- */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px -5px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-gray-900);
  border: 1px solid var(--color-gray-200);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--color-gray-50);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background:
    radial-gradient(
      circle at top right,
      var(--brand-primary-ultra),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      var(--brand-primary-ultra),
      transparent 40%
    );
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-black);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 20px;
  color: var(--color-gray-600);
  margin-bottom: 48px;
}

.hero-search-bar {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  padding: 8px;
  background: white;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 8px;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-search-bar:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(78, 74, 229, 0.2);
}

.hero-search-bar input {
  flex: 1;
  border: none;
  padding: 0 24px;
  font-size: 18px;
  outline: none;
  border-radius: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
}

.ticker-wrap {
  height: 30px;
  overflow: hidden;
  font-size: 14px;
  color: var(--color-gray-500);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticker-item {
  animation: slideUp 3s infinite;
}

@keyframes slideUp {
  0%,
  20% {
    transform: translateY(0);
    opacity: 1;
  }

  25%,
  45% {
    transform: translateY(-30px);
    opacity: 0;
  }

  50% {
    transform: translateY(30px);
    opacity: 0;
  }

  55%,
  75% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Grid Sections --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 40px;
  background: white;
  border-radius: var(--radius-30);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.03;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px -12px rgba(78, 74, 229, 0.15);
  border-color: var(--brand-primary-light);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-primary-ultra);
  color: var(--brand-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 24px;
}

.bento-item {
  background: white;
  border-radius: var(--radius-30);
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
  transition: all 0.3s ease;
}

.bento-item:hover {
  transform: scale(1.02);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.medium {
  grid-column: span 2;
}

.bento-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
}

.bento-content {
  position: relative;
  z-index: 1;
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-20);
  margin: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* --- Become an Expert CTA --- */
.expert-cta-section {
  padding: 20px 0 96px;
}

.expert-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 4vw, 54px);
  border-radius: 28px;
  border: 1px solid rgba(78, 74, 229, 0.14);
  background: linear-gradient(135deg, #f8f8ff 0%, #eef2ff 52%, #ffffff 100%);
  box-shadow: 0 24px 55px -30px rgba(51, 65, 85, 0.45);
}

.expert-cta-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(78, 74, 229, 0.22) 0%,
    rgba(78, 74, 229, 0) 70%
  );
}

.expert-cta-content {
  position: relative;
  z-index: 1;
}

.expert-cta-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(78, 74, 229, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.expert-cta-content h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.expert-cta-content p {
  color: var(--color-gray-700);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 560px;
}

.expert-cta-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.expert-cta-points li {
  color: var(--color-gray-700);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.expert-cta-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(78, 74, 229, 0.16);
}

.expert-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
}

.expert-cta-image-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.expert-cta-image {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 36px rgba(51, 65, 85, 0.18));
}

/* --- Contact & Footer --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  background: white;
  padding: 64px;
  border-radius: var(--radius-30);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

/* --- Form Element Overrides --- */
.form-group input,
.form-group textarea {
  padding: 16px;
  border-radius: 12px;
}

.footer {
  padding: 80px 0 40px;
  background: var(--color-black);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer h4 {
  margin-bottom: 24px;
  font-size: 18px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

/* --- Mobile Menu --- */
/* Note: .nav-toggle visibility is handled entirely in base.css */

.mobile-menu-actions {
  display: none;
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-inner {
    column-gap: 18px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtext {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .hero-search-bar {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 28px;
  }

  .hero-search-bar input {
    min-width: 0;
    font-size: 16px;
    padding: 0 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
  }

  .expert-cta-section {
    padding-top: 0;
    padding-bottom: 72px;
  }

  .expert-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .expert-cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .expert-cta-points {
    justify-items: center;
  }

  .expert-cta-points li {
    max-width: 420px;
    text-align: left;
  }

  .expert-cta-image-wrap {
    justify-content: center;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  nav {
    display: block;
    width: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);

    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;

    padding: 110px 28px 24px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);

    z-index: 999;
    transform: translateX(110%);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;

    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header .nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 700;
  }

  .header .nav-link::after {
    display: none;
  }

  .mobile-menu-actions {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--color-gray-200);
    width: 100%;
    list-style: none;
    display: grid;
    gap: 10px;
  }

  .mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-black);
    transition: all 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-actions {
    display: none;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.35);
    z-index: 998;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento-item {
    grid-column: span 2 !important;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: clamp(32px, 10vw, 44px);
    margin-bottom: 16px;
  }

  .hero-subtext {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-search-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .hero-search-bar input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    background: var(--color-white);
  }

  .hero-search-bar .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat-badge {
    width: 100%;
    justify-content: center;
  }

  .expert-cta-section {
    padding-bottom: 56px;
  }

  .expert-cta-card {
    border-radius: 20px;
    padding: 24px 20px;
  }

  .expert-cta-btn {
    width: 100%;
  }

  .expert-cta-image {
    width: min(100%, 330px);
  }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- How it Works Cards Hover Effects --- */
.how-card {
  transition: all 0.4s ease !important;
}

/* Card 1: Very light purple */
.how-card.how-card-1:hover {
  /* background: #f3e8ff !important; */
  background: rgba(78, 74, 229, 0.2) !important;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1) !important;
  border-color: #f3e8ff !important;
}
.how-card.how-card-1:hover .how-card-badge {
  background: white !important;
}

/* Card 2: A little darker purple */
.how-card.how-card-2:hover {
  /* background: #d8b4fe !important; */
  background: rgba(78, 74, 229, 0.4) !important;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15) !important;
  border-color: #d8b4fe !important;
}
.how-card.how-card-2:hover .how-card-badge {
  background: white !important;
}

/* Card 3: More dark purple */
.how-card.how-card-3:hover {
  /* background: #a855f7 !important; */
  background: rgba(78, 74, 229, 0.6) !important;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25) !important;
  border-color: #a855f7 !important;
}
.how-card.how-card-3:hover h3,
.how-card.how-card-3:hover p {
  color: white !important;
}
.how-card.how-card-3:hover .how-card-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Card 4: Most dark purple */
.how-card.how-card-4:hover {
  /* background: #7e22ce !important; */
  background: rgba(78, 74, 229, 0.8) !important;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3) !important;
  border-color: #7e22ce !important;
}
.how-card.how-card-4:hover h3,
.how-card.how-card-4:hover p {
  color: white !important;
}
.how-card.how-card-4:hover .how-card-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.how-card h3,
.how-card p,
.how-card .how-card-badge {
  transition: all 0.4s ease !important;
}
