:root {
  /* High-end Color Palette */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: #ec4899;
  --accent: #f59e0b;
  --dark: #0f172a;
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #ffffff;
  --bg-soft: #f8fafc;

  /* Spacing & Borders */
  --section-padding: clamp(5rem, 10vw, 8rem);
  --container-max: 1280px;
  --border-radius-lg: 2rem;
  --border-radius-md: 1rem;

  /* Shadows */
  --shadow-subtle: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-elevated: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Refresh */
h1,
h2,
h3,
h4,
h5 {
  color: var(--dark);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
}

/* Navigation */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 0px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  height: 80px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-subtle);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: rgb(88, 88, 88);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.main-menu {
  font-size: 12.5px;
  font-weight: 700;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-signin {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-signup {
  text-decoration: none;
  background: var(--dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s, background 0.3s;
}

.btn-signup:hover {
  transform: translateY(-2px);
  background: var(--primary);
}

.mobile-cta-group {
  display: none;
}

.nav-close-wrapper {
  display: none;
}

/* Hamburger Menu - Award Winning Styling */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-box {
  width: 24px;
  height: 14px;
  position: relative;
  margin: 0 auto;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  position: absolute;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -8px;
  left: 0;
}

.hamburger-inner::after {
  content: "";
  bottom: -8px;
  left: 0;
}

.hamburger.active .hamburger-inner {
  background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay - Refined */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 900;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1400px) {
  .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(2.5rem, 5vw, 4rem);
  }
}


@media (max-width: 991px) {
  .hamburger {
    display: block;
  }

  .nav-auth {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    z-index: 1200;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-close-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
  }

  .nav-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark);
  }

  .nav-close span:first-child {
    transform: rotate(45deg);
  }

  .nav-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-cta-group .btn-signup {
    text-align: center;
    color: white;
  }
}

/* Hero Section Refined */
.hero {
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: var(--section-padding);
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(9, 22, 126, 0.05) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 5rem;
}

.label-wrapper {
  margin-bottom: 2rem;
}

.label {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: 2rem;
}

.highlight {
  color: var(--primary);
}

.hero-text {
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 540px;
  font-size: 1.2rem;
}


.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}


.btn {
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--dark);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2);
  background: var(--primary);
}

.btn-video {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
  font-weight: 800;
}


.play-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  color: var(--dark);
}

.play-icon i {
  font-size: 20px;
}

/* Visual Components */
.hero-visual {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-elevated);
}

.floating-ui {
  position: absolute;
  background: white;
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-elevated);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.badge-success {
  top: 15%;
  right: -5%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-ai {
  width: 40px;
  height: 40px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
}

.badge-text .value {
  font-weight: 900;
  font-size: 1.25rem;
  display: block;
  line-height: 1;
}

.badge-text .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-analytics {
  bottom: 10%;
  left: -10%;
  width: 260px;
  animation-delay: -3s;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar {
  flex: 1;
  background: var(--primary);
  border-radius: 4px;
}

.bar:nth-child(even) {
  background: var(--secondary);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Services Refresh */
.services {
  margin-top: -40px;
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  padding: 4rem 2.5rem;
  background: var(--bg-soft);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-12px);
  background: white;
  border-color: rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-elevated);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.icon-match {
  background: #e0e7ff;
  color: var(--primary);
}

.icon-tailor {
  background: #fce7f3;
  color: var(--secondary);
}

.icon-data {
  background: #fef3c7;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Mission / About */
.mission {
  padding: var(--section-padding) 0;
  background: var(--bg-soft);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.mission-image {
  position: relative;
}

.mission-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-elevated);
  position: relative;
  z-index: 1;
  filter: grayscale(1);
}

.image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  opacity: 0.1;
  border-radius: var(--border-radius-lg);
}

.mission-content h2 {
  margin-bottom: 2rem;
}

.mission-content p {
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.btn-link {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary-glow);
  padding-bottom: 4px;
  transition: border 0.3s;
}

.btn-link:hover {
  border-color: var(--primary);
}

/* Footer - Minimalist Mended Refresh */
.footer {
  background: white;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.footer-brand .logo img {
  height: 28px;
}

.footer-brand .logo span {
  font-weight: 900;
  color: var(--dark);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
  opacity: 0.5;
  pointer-events: none;
}

.footer-col a:hover {
  color: var(--primary);
}



.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

  .hero .container,
  .mission-grid,
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin-top: -80px;
    order: 2;
  }

  .hero-visual {
    order: 1;
    max-width: 600px;
    margin: 0 auto 3rem;
  }

  .hero-text {
    margin: 0 auto 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .footer-nav {
    text-align: left;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    margin-bottom: 3rem;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-video {
    justify-content: center;
  }

  .card-analytics {
    display: none;
  }
}

/* ===========================================
   Waitlist Modal Styles
   =========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.modal-close:hover {
  background: rgba(148, 163, 184, 0.2);
}

.modal-close:hover svg {
  color: var(--dark);
}

.modal-content {
  padding: 3rem;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-glow);
  border-radius: 1.25rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.modal-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg-soft);
  transition: all 0.3s;
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-group input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}

.error-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius-md);
  background: var(--dark);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit .btn-text {
  display: inline-block;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-submit .btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-submit .btn-loader svg {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.btn-submit.loading .btn-text {
  opacity: 0;
  transform: translateY(10px);
}

.btn-submit.loading .btn-loader {
  opacity: 1;
}

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

/* Success State */
.modal-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.modal-success.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw 0.6s ease 0.3s forwards;
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-success h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.modal-success p {
  color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.5rem;
  }

  .modal-icon {
    width: 56px;
    height: 56px;
  }

  .modal-icon svg {
    width: 28px;
    height: 28px;
  }
}