/* ============================================================
   PRO CORTEX LANDING – Premium Marketing Styles
   ============================================================ */
:root {
  --blue: #173CF5;
  --blue-dark: #0f35dc;
  --blue-light: #E8EDFF;
  --blue-glow: rgba(23, 60, 245, 0.15);
  --navy: #111827;
  --muted: #4B5563;
  --light-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(23, 60, 245, 0.12);
  --radius: 2px;
  --radius-lg: 4px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  background: transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 60, 245, 0.25);
}
.btn-outline {
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-large {
  min-height: 60px;
  padding: 0 2.8rem;
  font-size: 1.1rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-secondary {
  background: var(--border);
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: #d1d5db;
  border-color: #d1d5db;
}

.badge {
  display: inline-block;
  background: rgba(23, 60, 245, 0.1);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius);
}

.section-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title .highlight {
  color: var(--blue);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.landing-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand-mark span {
  color: var(--navy);
}
.landing-nav nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.landing-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.landing-nav nav a:hover {
  color: var(--blue);
}
.landing-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1.5rem;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
}
.landing-nav .nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--navy);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding: 5rem 0 4rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 60%);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content .badge {
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-content h1 .highlight {
  color: var(--blue);
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 3rem;
}
.hero-stats .stat {
  text-align: left;
}
.hero-stats .stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-dashboard-mock {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  padding: 1.5rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  border-radius: var(--radius-lg);
}
.hero-dashboard-mock .mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.hero-dashboard-mock .mock-header .dots {
  display: flex;
  gap: 0.4rem;
}
.hero-dashboard-mock .mock-header .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.hero-dashboard-mock .mock-header .dots span:nth-child(1) { background: #EF4444; }
.hero-dashboard-mock .mock-header .dots span:nth-child(2) { background: #F59E0B; }
.hero-dashboard-mock .mock-header .dots span:nth-child(3) { background: #10B981; }
.hero-dashboard-mock .mock-header .mock-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-dashboard-mock .mock-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-dashboard-mock .mock-digit {
  background: var(--bg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-dashboard-mock .mock-digit .digit {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue);
}
.hero-dashboard-mock .mock-digit .label {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}
.hero-dashboard-mock .mock-chart {
  grid-column: 1 / -1;
  background: var(--bg);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  padding-top: 1.5rem;
}
.hero-dashboard-mock .mock-chart .bar {
  flex: 1;
  background: var(--blue);
  opacity: 0.6;
  min-height: 20px;
  border-radius: var(--radius);
  transition: height 0.4s ease;
}
.hero-dashboard-mock .mock-chart .bar:nth-child(2) { background: var(--blue); opacity: 0.7; height: 60px; }
.hero-dashboard-mock .mock-chart .bar:nth-child(3) { background: var(--blue); opacity: 0.9; height: 80px; }
.hero-dashboard-mock .mock-chart .bar:nth-child(5) { background: var(--blue); opacity: 1; height: 90px; }
.hero-dashboard-mock .mock-chart .bar:nth-child(8) { background: var(--blue); opacity: 1; height: 100px; }
.hero-dashboard-mock .mock-chart .bar:nth-child(10) { background: var(--blue); opacity: 0.8; height: 85px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: 5rem 0;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 5rem 0;
  background: var(--bg);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}
.how-step {
  text-align: center;
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.how-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 5rem 0;
  background: var(--white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}
.testimonial-stars {
  color: #F59E0B;
  margin-bottom: 0.8rem;
}
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 1rem;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  padding: 5rem 0;
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.pricing-badge {
  position: absolute;
  top: -0.8rem;
  right: 1rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius);
  text-transform: uppercase;
}
.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-card .price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 1rem;
}
.pricing-card .price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.8rem;
}
.pricing-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.pricing-card li i {
  color: var(--blue);
  width: 1.2rem;
}
.pricing-card li .fa-times {
  color: #EF4444;
}
.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-section {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
}
.trust-item span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 5rem 0;
  background: var(--bg);
}
.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover {
  background: var(--bg);
}
.faq-question i {
  transition: transform 0.3s ease;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer[hidden] {
  display: none;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: 4rem 0;
  background: var(--blue);
}
.cta-box {
  text-align: center;
  color: #fff;
}
.cta-box h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-box h2 .highlight {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.cta-box p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-box .btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.cta-box .btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}
.footer-grid .brand-mark {
  color: var(--blue);
}
.footer-grid .brand-mark span {
  color: #fff;
}
.footer-grid nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-grid nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-grid nav a:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2.5rem;
  }
  .hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .landing-nav nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow);
  }
  .landing-nav nav.open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-stats .stat {
    text-align: center;
  }
  .hero-dashboard-mock {
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid nav {
    justify-content: center;
  }
  .hero-overlay {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%);
  }
}

@media (max-width: 480px) {
  .hero-dashboard-mock .mock-body {
    grid-template-columns: 1fr;
  }
  .hero-dashboard-mock .mock-digit .digit {
    font-size: 2.5rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .faq-question {
    font-size: 0.95rem;
    padding: 1rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
}

/* ============================================================
   DARK THEME SUPPORT (optional)
   ============================================================ */
body.dark-theme {
  --bg: #0F172A;
  --white: #1E293B;
  --border: #334155;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 60px rgba(23, 60, 245, 0.2);
  --navy: #F1F5F9;
  --muted: #94A3B8;
  --light-muted: #64748B;
}

body.dark-theme .landing-header {
  background: rgba(30, 41, 59, 0.92);
  border-color: #334155;
}

body.dark-theme .landing-nav nav a {
  color: #94A3B8;
}
body.dark-theme .landing-nav nav a:hover {
  color: var(--blue);
}

body.dark-theme .brand-mark span {
  color: #F1F5F9;
}

body.dark-theme .hero-overlay {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.7) 60%);
}

body.dark-theme .hero-content h1,
body.dark-theme .hero-content .highlight {
  color: #F1F5F9;
}
body.dark-theme .hero-content p {
  color: #94A3B8;
}
body.dark-theme .hero-stats .stat strong {
  color: #F1F5F9;
}
body.dark-theme .hero-stats .stat span {
  color: #94A3B8;
}

body.dark-theme .hero-dashboard-mock {
  background: #1E293B;
  border-color: #334155;
}
body.dark-theme .hero-dashboard-mock .mock-header {
  border-color: #334155;
}
body.dark-theme .hero-dashboard-mock .mock-digit {
  background: #0F172A;
  border-color: #334155;
}
body.dark-theme .hero-dashboard-mock .mock-digit .digit {
  color: var(--blue);
}
body.dark-theme .hero-dashboard-mock .mock-chart {
  background: #0F172A;
  border-color: #334155;
}

body.dark-theme .features-section,
body.dark-theme .testimonials-section,
body.dark-theme .trust-section {
  background: #0F172A;
}

body.dark-theme .feature-card,
body.dark-theme .testimonial-card,
body.dark-theme .pricing-card {
  background: #1E293B;
  border-color: #334155;
}
body.dark-theme .feature-card p,
body.dark-theme .testimonial-card p {
  color: #94A3B8;
}
body.dark-theme .testimonial-card cite {
  color: #94A3B8;
}

body.dark-theme .how-section,
body.dark-theme .pricing-section,
body.dark-theme .faq-section {
  background: #0F172A;
}
body.dark-theme .how-step p {
  color: #94A3B8;
}

body.dark-theme .faq-item {
  background: #1E293B;
  border-color: #334155;
}
body.dark-theme .faq-question {
  color: #F1F5F9;
}
body.dark-theme .faq-question:hover {
  background: #0F172A;
}
body.dark-theme .faq-answer {
  color: #94A3B8;
}

body.dark-theme .trust-item strong {
  color: var(--blue);
}
body.dark-theme .trust-item span {
  color: #94A3B8;
}

body.dark-theme .cta-section {
  background: var(--blue);
}

body.dark-theme .landing-footer {
  background: #0F172A;
}
body.dark-theme .footer-grid .brand-mark span {
  color: #F1F5F9;
}

body.dark-theme .section-title {
  color: #F1F5F9;
}
body.dark-theme .section-subtitle {
  color: #94A3B8;
}
body.dark-theme .badge {
  background: rgba(23, 60, 245, 0.2);
}
body.dark-theme .pricing-card .price {
  color: var(--blue);
}
body.dark-theme .pricing-card li {
  color: #94A3B8;
}
body.dark-theme .btn-outline {
  border-color: #334155;
  color: #94A3B8;
}
body.dark-theme .btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}