/* ============================================================
   Market Intent — Component CSS
   components.css · Shared UI components across all pages
   ============================================================ */

/* ── Buttons ── */
.btn-primary {
  display:        inline-block;
  padding:        18px 44px;
  border-radius:  var(--radius-md);
  border:         none;
  background:     linear-gradient(135deg, var(--accent-dark), var(--accent));
  color:          #fff;
  font-size:      17px;
  font-weight:    700;
  font-family:    var(--font-head);
  cursor:         pointer;
  transition:     transform 0.15s, box-shadow 0.15s;
  box-shadow:     0 4px 20px var(--accent-glow);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.btn-primary:hover {
  transform:   translateY(-2px);
  box-shadow:  0 8px 32px var(--accent-glow);
}

.btn-ghost {
  padding:       8px 18px;
  border-radius: var(--radius-sm);
  border:        1px solid var(--glass-border);
  background:    transparent;
  color:         var(--text-light);
  font-size:     13px;
  font-weight:   600;
  font-family:   var(--font-head);
  cursor:        pointer;
  transition:    border-color 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-sm {
  padding:   8px 22px;
  font-size: 13px;
}

.btn-banner {
  padding:       10px 24px;
  border-radius: var(--radius-sm);
  background:    rgba(255,255,255,0.2);
  border:        1px solid rgba(255,255,255,0.4);
  color:         #fff;
  font-size:     14px;
  font-weight:   700;
  font-family:   var(--font-head);
  cursor:        pointer;
  transition:    background 0.15s;
  vertical-align: middle;
}
.btn-banner:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Badge ── */
.badge {
  display:        inline-block;
  padding:        5px 13px;
  border-radius:  6px;
  background:     var(--accent-mid);
  border:         1px solid rgba(255,255,255,0.15);
  color:          var(--accent-light, var(--accent));
  font-size:      11px;
  font-weight:    700;
  font-family:    var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Site Header ── */
#site-header {
  position:         fixed;
  top:              0;
  left:             0;
  right:            0;
  z-index:          1000;
  padding:          0 24px;
  transition:       background 0.3s, border-color 0.3s;
  border-bottom:    1px solid transparent;
}
#site-header.scrolled {
  background:    rgba(12, 25, 41, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width:       var(--max-width);
  margin:          0 auto;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          64px;
}

.logo-wrap {
  display:         flex;
  align-items:     center;
  gap:             10px;
  text-decoration: none;
}
.logo-wrap img {
  width:         44px;
  height:        44px;
  border-radius: 10px;
  object-fit:    cover;
}
.logo-wrap span {
  color:          #fff;
  font-size:      17px;
  font-weight:    700;
  font-family:    var(--font-head);
  letter-spacing: -0.3px;
}

.nav-links {
  display:     flex;
  gap:         24px;
  align-items: center;
}
.nav-links a {
  color:           var(--text-muted);
  font-size:       13px;
  font-weight:     500;
  text-decoration: none;
  transition:      color 0.15s;
}
.nav-links a:hover {
  color: #fff;
}

.header-btns {
  display:     flex;
  gap:         10px;
  align-items: center;
}

/* ── Hero Layout (shared structure, not the card itself) ── */
.hero {
  position:       relative;
  overflow:       hidden;
  padding-top:    120px;
  padding-bottom: 80px;
  padding-left:   24px;
  padding-right:  24px;
}
.hero-glow {
  position:       absolute;
  top:            35%;
  left:           58%;
  transform:      translate(-50%, -50%);
  width:          700px;
  height:         500px;
  border-radius:  50%;
  background:     radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display:      flex;
  align-items:  center;
  gap:          60px;
  position:     relative;
  z-index:      1;
}
.hero-text {
  flex:      1;
  min-width: 0;
}
.hero-text h1 {
  color:          var(--text-white);
  font-size:      48px;
  font-weight:    800;
  line-height:    1.14;
  margin-bottom:  18px;
  letter-spacing: -0.5px;
}
.hero-text h1 .accent {
  color: var(--accent);
}
.hero-text .sub {
  color:         var(--text-light);
  font-size:     17px;
  line-height:   1.65;
  max-width:     480px;
  margin-bottom: 10px;
}
.hero-text .sub2 {
  color:         var(--text-muted);
  font-size:     14px;
  line-height:   1.6;
  max-width:     460px;
  margin-bottom: 32px;
}
.hero-btns {
  display:     flex;
  gap:         14px;
  align-items: center;
  flex-wrap:   wrap;
}
.hero-btns span {
  color:     var(--text-muted);
  font-size: 14px;
}
.hero-visual {
  flex:      0 0 460px;
  max-width: 460px;
}

/* ── How It Works Steps ── */
.steps-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   32px;
}
.step {
  text-align: center;
}
.step-icon {
  width:         72px;
  height:        72px;
  border-radius: 20px;
  margin:        0 auto 20px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     32px;
}
.step-num {
  font-size:   13px;
  font-weight: 700;
  font-family: var(--font-head);
  color:       var(--accent);
  margin-bottom: 6px;
}
.step h3 {
  font-size:     20px;
  font-weight:   700;
  color:         var(--text-dark);
  margin-bottom: 10px;
}
.step p {
  font-size:   14px;
  line-height: 1.65;
  color:       var(--text-body);
}

/* ── Feature Cards ── */
.features-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   20px;
}
.feat-card {
  padding:       28px;
  border-radius: var(--radius-lg);
  background:    rgba(255,255,255,0.04);
  border:        1px solid var(--border);
  transition:    border-color 0.2s, transform 0.2s;
}
.feat-card:hover {
  border-color: var(--accent);
  transform:    translateY(-3px);
}
.feat-icon {
  width:         48px;
  height:        48px;
  border-radius: 14px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     22px;
  margin-bottom: 14px;
  background:    var(--accent-mid);
  border:        1px solid rgba(255,255,255,0.1);
}
.feat-card h4 {
  color:         var(--text-white);
  font-size:     17px;
  font-weight:   700;
  font-family:   var(--font-head);
  margin-bottom: 8px;
}
.feat-card p {
  color:       var(--text-light);
  font-size:   14px;
  line-height: 1.6;
}

/* ── Stats Bar ── */
.stats-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:                   24px;
}
.stat-card {
  text-align:    center;
  padding:       20px;
  border-radius: 14px;
  background:    var(--glass);
  border:        1px solid var(--glass-border);
}
.stat-val {
  font-size:   36px;
  font-weight: 800;
  font-family: var(--font-head);
  line-height: 1;
  color:       var(--accent);
}
.stat-label {
  color:      var(--text-muted);
  font-size:  12px;
  margin-top: 6px;
}

/* ── Final CTA Section ── */
.final-cta {
  padding:    80px 24px;
  text-align: center;
  position:   relative;
  overflow:   hidden;
}
.final-glow {
  position:       absolute;
  top:            50%;
  left:           50%;
  transform:      translate(-50%, -50%);
  width:          600px;
  height:         400px;
  border-radius:  50%;
  background:     radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  color:         var(--text-white);
  font-size:     40px;
  font-weight:   800;
  line-height:   1.2;
  margin-bottom: 16px;
  position:      relative;
  z-index:       1;
}
.final-cta p {
  color:         var(--text-light);
  font-size:     17px;
  max-width:     500px;
  margin:        0 auto 32px;
  line-height:   1.65;
  position:      relative;
  z-index:       1;
}
.final-cta .btn-primary {
  position:  relative;
  z-index:   1;
  font-size: 18px;
  padding:   20px 52px;
}
.final-note {
  color:      var(--text-muted);
  font-size:  12px;
  margin-top: 16px;
  position:   relative;
  z-index:    1;
}

/* ── Site Footer ── */
footer {
  background:  var(--dark);
  border-top:  1px solid var(--border);
  padding:     40px 24px;
}
.footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   40px;
  margin-bottom:         32px;
}
.footer-brand-name {
  color:       #fff;
  font-size:   15px;
  font-weight: 700;
  font-family: var(--font-head);
}
.footer-tagline {
  color:      var(--text-muted);
  font-size:  13px;
  line-height: 1.6;
  max-width:  280px;
  margin-top: 10px;
}
.footer-col-title {
  color:         var(--text-light);
  font-size:     13px;
  font-weight:   700;
  font-family:   var(--font-head);
  margin-bottom: 14px;
}
.footer-col a {
  display:         block;
  color:           var(--text-muted);
  font-size:       13px;
  text-decoration: none;
  margin-bottom:   8px;
  transition:      color 0.15s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top:  1px solid var(--border);
  padding-top: 20px;
}
.footer-copy {
  color:     var(--text-muted);
  font-size: 12px;
}

/* ── Orange Accent Banner ── */
.accent-banner {
  padding:    24px;
  text-align: center;
}
.accent-banner p {
  color:       #fff;
  font-size:   17px;
  font-weight: 600;
  font-family: var(--font-head);
  display:     inline;
}

/* ── Trust Strip ── */
.trust-strip {
  background:    var(--accent-subtle);
  border-top:    1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding:       16px 24px;
}
.trust-inner {
  max-width:       var(--max-width);
  margin:          0 auto;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             32px;
  flex-wrap:       wrap;
}
.trust-item {
  display:     flex;
  align-items: center;
  gap:         7px;
  color:       var(--text-light);
  font-size:   13px;
  font-family: var(--font-head);
}
.trust-icon {
  color:     var(--accent);
  font-size: 15px;
}

/* ── Section Headers (shared pattern) ── */
.section-head {
  text-align:    center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size:     36px;
  font-weight:   800;
  margin-bottom: 12px;
}
.section-head p {
  font-size:   16px;
  max-width:   560px;
  margin:      0 auto;
  line-height: 1.65;
}

/* ── Two-column Pain/Solution Callout ── */
.callout-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   20px;
  max-width:             860px;
  margin:                0 auto;
}
.callout-card {
  padding:       28px;
  border-radius: var(--radius-lg);
}
.callout-card h4 {
  font-size:     17px;
  font-weight:   700;
  margin-bottom: 10px;
}
.callout-card ul {
  margin-top: 10px;
  display:    flex;
  flex-direction: column;
  gap:        7px;
}
.callout-card li {
  font-size:   14px;
  line-height: 1.55;
  list-style:  none;
  display:     flex;
  gap:         8px;
  align-items: flex-start;
}

/* ── Responsive overrides ── */
@media (max-width: 768px) {
  .hero-grid         { flex-direction: column; }
  .hero-text h1      { font-size: 30px; }
  .hero-visual       { max-width: 100%; flex: 1; margin-top: 32px; }
  .steps-grid        { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: 1fr 1fr; }
  .callout-grid      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .trust-inner       { gap: 16px; }
  .accent-banner .btn-banner { margin-left: 0; margin-top: 12px; display: block; }
  .final-cta h2      { font-size: 28px; }

  /* Hide desktop nav on mobile */
  .nav-links         { display: none; }
}
