/* ============================================
   HomeProMatcher — Advertiser Portal Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #003366;
  --blue-800: #004d99;
  --blue-700: #005bb5;
  --blue-600: #0066cc;
  --blue-500: #1a7adb;
  --blue-400: #4a9ae6;
  --blue-300: #7eb8f0;
  --blue-200: #b3d4f7;
  --blue-100: #dceaf7;
  --blue-50:  #f0f6fc;

  --green-600: #16883a;
  --green-500: #1da750;
  --green-400: #34c468;
  --green-100: #d4f5e0;
  --green-50:  #edfbf2;

  --orange-500: #e67e22;
  --orange-100: #fef0db;

  --red-500: #e74c3c;
  --red-100: #fde8e6;

  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #4a4a5a;
  --gray-600: #666680;
  --gray-500: #8888a0;
  --gray-400: #adadc0;
  --gray-300: #d0d0dd;
  --gray-200: #e5e5ee;
  --gray-100: #f2f2f7;
  --gray-50:  #f8f9fa;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: inherit;
  text-decoration: none;
  gap: 8px;
}
.btn-primary { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue-600); border-color: var(--blue-200); }
.btn-secondary:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- Navbar ---- */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-900);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.navbar-links { display: flex; gap: 28px; }
.navbar-links a { font-size: 14px; font-weight: 500; color: var(--gray-700); transition: color 0.2s; }
.navbar-links a:hover { color: var(--blue-600); }
.navbar-cta { display: flex; gap: 10px; align-items: center; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-700); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--green-50) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,102,204,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,102,204,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--blue-600); }
.hero-text > p { font-size: 17px; color: var(--gray-600); margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat strong { display: block; font-size: 26px; color: var(--gray-900); }
.hero-stat span { font-size: 13px; color: var(--gray-500); }

/* Service cards in hero */
.hero-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card .icon { font-size: 32px; margin-bottom: 8px; }
.service-card h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }

/* ---- Section common ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 34px;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Value Props ---- */
.value-props { padding: 80px 0; background: var(--white); }
.props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prop-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.prop-icon { font-size: 28px; margin-bottom: 12px; }
.prop-card h3 { font-size: 17px; color: var(--gray-900); margin-bottom: 8px; }
.prop-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ---- How It Works ---- */
.how-it-works { padding: 80px 0; background: var(--gray-50); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ---- Services Grid ---- */
.services-section { padding: 80px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-large-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
}
.service-large-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.service-large-card .svc-icon { font-size: 40px; margin-bottom: 12px; }
.service-large-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.service-large-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.service-large-card .svc-stats { font-size: 13px; color: var(--blue-600); font-weight: 600; }

/* Services CTA */
.services-cta-line {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}
.services-cta-line a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.services-cta-line a:hover { color: var(--blue-700); }

/* ---- Pricing ---- */
.pricing { padding: 80px 0; background: var(--gray-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 720px; margin: 0 auto; }
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--blue-600); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
}
.pricing-icon { font-size: 32px; margin-bottom: 12px; }
.pricing-card h3 { font-size: 20px; color: var(--gray-900); margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 800; color: var(--gray-900); }
.price-label { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 6px 0; font-size: 14px; color: var(--gray-700); position: relative; padding-left: 24px; }
.pricing-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--green-500); font-weight: 700; }

/* ---- Testimonials ---- */
.testimonials { padding: 80px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 14px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-author .name { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.testimonial-author .company { font-size: 12px; color: var(--gray-500); }

/* ---- FAQ ---- */
.faq-section { padding: 80px 0; background: var(--gray-50); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--blue-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  gap: 16px;
}
.faq-icon {
  font-size: 20px;
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-size: 32px; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.9; max-width: 560px; margin: 0 auto 24px; }
.cta-banner .btn-primary { background: var(--white); color: var(--blue-600); border-color: var(--white); }
.cta-banner .btn-primary:hover { background: var(--blue-50); }

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo-icon { background: var(--blue-500); }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--gray-500); }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 13px; color: var(--gray-500); transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer a { color: var(--gray-500); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-services { max-width: 400px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
  .navbar-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 30px; }
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 26px; }
}
