/* =============================================
   BuyerPro Landing Page — Design System
   Clean, modern SaaS aesthetic
   ============================================= */

/* --- CSS Variables --- */
:root {
  --brand-900: #0B1D33;
  --brand-800: #0D2544;
  --brand-700: #0F3460;
  --brand-500: #1A5276;
  --brand-100: #EBF5FB;
  --brand-50: #F4F9FD;

  --accent: #2ECC71;
  --accent-hover: #27AE60;
  --accent-light: rgba(46, 204, 113, 0.1);

  --red: #E74C3C;
  --yellow: #F1C40F;
  --green: #2ECC71;

  --gray-900: #1A1A2E;
  --gray-600: #5D6D7E;
  --gray-400: #ABB2B9;
  --gray-200: #EAECEE;
  --gray-100: #F8F9FA;
  --white: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  color: var(--brand-900);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-nav {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-nav:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-700) !important;
  letter-spacing: -0.02em;
}

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

.logo::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
}

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

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
#hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--brand-500) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 82, 118, 0.2) 0%, transparent 50%);
}

/* Hero Split Layout */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  text-align: left;
}

.beta-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

#hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--white);
  background: rgba(46, 204, 113, 0.15);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95em;
}

/* Hero Email Preview */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}

.mockup-dots span:first-child { background: var(--red); }
.mockup-dots span:nth-child(2) { background: var(--yellow); }
.mockup-dots span:last-child { background: var(--green); }

.traffic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-dot-green { background: var(--green); }
.traffic-dot-yellow { background: var(--yellow); }
.traffic-dot-red { background: var(--red); }

/* Coaching Email Preview Card */
.coaching-email-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  text-align: left;
  overflow: hidden;
  font-size: 0.8125rem;
}

.preview-header {
  background: var(--gray-100);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.preview-header-text {
  flex: 1;
}

.preview-from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-hover) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.preview-sender {
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.8125rem;
}

.preview-via {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.6875rem;
}

.preview-to {
  font-size: 0.6875rem;
  color: var(--gray-400);
}

.preview-subject {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-200);
}

.preview-subject .traffic-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.preview-body {
  padding: 0.875rem 1rem;
}

.preview-section {
  margin-bottom: 0.75rem;
}

.preview-section:last-child {
  margin-bottom: 0;
}

.preview-section-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}

.preview-section p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.5;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.preview-meta strong {
  color: var(--brand-900);
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-list-item {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.4;
  display: flex;
  gap: 0.5rem;
}

.preview-date {
  font-weight: 600;
  color: var(--brand-700);
  white-space: nowrap;
  min-width: 3rem;
  flex-shrink: 0;
}

.preview-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: rgba(241, 196, 15, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.preview-alert strong {
  color: var(--brand-900);
}

.preview-alert-icon {
  color: var(--yellow);
  font-size: 1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.preview-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 500;
}

.preview-avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-hover) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- How It Works --- */
#how-it-works {
  padding: 6rem 0;
  background: var(--brand-50);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  text-align: center;
  max-width: 280px;
  flex: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.step-icon {
  color: var(--brand-700);
  margin-bottom: 1rem;
}

.step-connector {
  display: flex;
  align-items: center;
  color: var(--gray-400);
  padding-top: 2.5rem;
}

/* --- Social Proof --- */
#social-proof {
  padding: 6rem 0;
  background: var(--white);
}

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

.proof-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proof-quote {
  position: relative;
  flex: 1;
  margin-bottom: 1.25rem;
}

.proof-quote-icon {
  position: absolute;
  top: -4px;
  left: -4px;
  color: var(--brand-700);
}

.proof-quote p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
  padding-left: 0.25rem;
}

.proof-quote strong {
  color: var(--brand-900);
  font-weight: 600;
}

.proof-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(46, 204, 113, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-900);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.proof-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.proof-persona {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.proof-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-900);
}

.proof-role {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* --- Traffic Light Section --- */
#traffic-light {
  padding: 6rem 0;
  background: var(--white);
}

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

.traffic-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.traffic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.traffic-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.traffic-circle.green {
  background: var(--green);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.traffic-circle.yellow {
  background: var(--yellow);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.traffic-circle.red {
  background: var(--red);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.traffic-green { border-top: 3px solid var(--green); }
.traffic-yellow { border-top: 3px solid var(--yellow); }
.traffic-red { border-top: 3px solid var(--red); }

/* --- Features --- */
#features {
  padding: 6rem 0;
  background: var(--brand-50);
}

#features h2 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Security --- */
#security {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: var(--white);
}

.security-inner {
  text-align: center;
}

#security h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

#security p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

#security strong {
  color: var(--white);
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.security-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Waitlist --- */
#waitlist {
  padding: 6rem 0;
  background: var(--white);
}

.waitlist-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--brand-900);
  transition: var(--transition);
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--gray-400);
}

.waitlist-note {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

.waitlist-success {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-hover);
  font-weight: 500;
}

.waitlist-error {
  padding: 1rem 1.5rem;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.9375rem;
}

/* --- Footer --- */
footer {
  padding: 3rem 0;
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-footer {
  color: rgba(255, 255, 255, 0.9) !important;
}

.logo-footer span {
  color: var(--white) !important;
}

.footer-brand p {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-tagline p {
  font-size: 0.8125rem;
  font-style: italic;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  h2 {
    font-size: 1.75rem;
  }

  .section-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Nav mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
  }

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

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

  /* Hero mobile */
  #hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .coaching-email-preview {
    max-width: 100%;
  }

  /* Steps mobile */
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  /* Social proof mobile */
  .proof-grid {
    grid-template-columns: 1fr;
  }

  /* Traffic light mobile */
  .traffic-grid {
    grid-template-columns: 1fr;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Security badges mobile */
  .security-badges {
    flex-direction: column;
    align-items: center;
  }

  /* Waitlist mobile */
  .waitlist-form {
    flex-direction: column;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
