/*
 * Promptua — Visual Enhancement Layer v2
 * Loaded AFTER main.css + animations.css
 * Fixes: stats strip, section contrast, how-steps, footer, hero, typography
 */

/* ══════════════════════════════════════════
   1. STATS STRIP
   (classes had ZERO styles in main.css)
   ══════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.25s ease;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: rgba(48, 102, 255, 0.03); }

.stat-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
}

.count-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -1.5px;
  line-height: 1;
}

.count-suffix {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.count-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; }
}

[data-theme="dark"] .stats-strip {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .stat-item { border-right-color: var(--border); }


/* ══════════════════════════════════════════
   2. SECTION ALT — much more distinct
   ══════════════════════════════════════════ */
.section-alt {
  background: linear-gradient(180deg, #EEF3FF 0%, #F4F7FF 100%);
}

[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, #0D1529 0%, #0A1020 100%);
}


/* ══════════════════════════════════════════
   3. SECTION HEADINGS — accent underline
   ══════════════════════════════════════════ */
.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.section-heading { margin-bottom: 0; }


/* ══════════════════════════════════════════
   4. HOW-IT-WORKS — fix gap:0 squish bug
   ══════════════════════════════════════════ */
.how-steps {
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.how-step {
  background: var(--white);
  border-radius: 0;
  padding: 36px 24px;
}

.how-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.how-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

@media (max-width: 900px) {
  .how-step:first-child  { border-radius: var(--radius) var(--radius) 0 0; }
  .how-step:last-child   { border-radius: 0 0 var(--radius) var(--radius); }
  .how-step:not(:first-child):not(:last-child) { border-radius: 0; }
}

[data-theme="dark"] .how-step { background: #141F35; }
[data-theme="dark"] .how-steps { background: #0D1528; }


/* ══════════════════════════════════════════
   5. PAGE HERO (About + Portfolio)
   ══════════════════════════════════════════ */
.page-hero.section-alt {
  background: linear-gradient(140deg, #E8F0FF 0%, #EDF5FF 40%, #F0FAFA 100%);
  border-bottom: 1px solid rgba(48, 102, 255, 0.12);
}

[data-theme="dark"] .page-hero.section-alt {
  background: linear-gradient(140deg, #0D1529 0%, #0A1422 100%);
  border-bottom-color: var(--border);
}


/* ══════════════════════════════════════════
   6. HERO SECTION — stronger gradient
   ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, #E8F0FF 0%, transparent 70%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0D1529 0%, transparent 70%);
}

/* Make orb blobs actually visible */
.hero-gradient-bg .orb { opacity: 0.25; }

[data-theme="dark"] .hero-gradient-bg .orb { opacity: 0.12; }


/* ══════════════════════════════════════════
   7. DARK FOOTER (light mode override)
   ══════════════════════════════════════════ */
.site-footer {
  background: #060D1A;
  border-top: none;
}

html:not([data-theme="dark"]) .site-footer .brand-text             { color: #E2E8F0; }
html:not([data-theme="dark"]) .site-footer .brand-dot              { color: #00D1B2; }
html:not([data-theme="dark"]) .site-footer .footer-brand > p       { color: #475569; }
html:not([data-theme="dark"]) .site-footer .footer-col > h4        { color: rgba(255,255,255,0.3); letter-spacing: 0.8px; }
html:not([data-theme="dark"]) .site-footer .footer-links > a       { color: #4B5563; }
html:not([data-theme="dark"]) .site-footer .footer-links > a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
html:not([data-theme="dark"]) .site-footer .footer-bottom          { border-top-color: rgba(255,255,255,0.06); }
html:not([data-theme="dark"]) .site-footer .footer-bottom p,
html:not([data-theme="dark"]) .site-footer .footer-bottom a        { color: #374151; }
html:not([data-theme="dark"]) .site-footer .footer-social a        {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: #4B5563;
}
html:not([data-theme="dark"]) .site-footer .footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

[data-theme="dark"] .site-footer { background: #040A15; }


/* ══════════════════════════════════════════
   8. TYPOGRAPHY — slightly more dramatic
   ══════════════════════════════════════════ */
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }


/* ══════════════════════════════════════════
   9. FEATURED PRICING PLAN — lift up
   ══════════════════════════════════════════ */
.plan.featured {
  transform: scale(1.03);
}
.plan.featured:hover {
  transform: scale(1.03) translateY(-6px);
}
@media (max-width: 600px) {
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-4px); }
}


/* ══════════════════════════════════════════
   10. WHY-FOUNDERS section — remove wrong " mark
   ══════════════════════════════════════════ */
#why-us .testimonial-card::before { display: none; }

#why-us .testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ══════════════════════════════════════════
   11. NAV — tighter spacing for 6 links
   ══════════════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1150px) {
  .desktop-nav a { padding: 8px 9px; font-size: 0.84rem; }
  .header-inner  { gap: 12px; }
}


/* ══════════════════════════════════════════
   12. MARQUEE — more visible text
   ══════════════════════════════════════════ */
.marquee-item {
  color: var(--dark-navy);
  opacity: 0.6;
  font-weight: 600;
}


/* ══════════════════════════════════════════
   13. KICKER BADGE — more visual presence
   ══════════════════════════════════════════ */
.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 7px 18px;
  box-shadow: 0 2px 8px rgba(48, 102, 255, 0.12);
}


/* ══════════════════════════════════════════
   14. ABOUT/PORTFOLIO page inline cards
       (improved hover + shadow)
   ══════════════════════════════════════════ */
.apple-glow-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.apple-glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(48, 102, 255, 0.4);
  box-shadow: 0 24px 48px -8px rgba(48, 102, 255, 0.18),
              0 8px 16px -4px rgba(0, 209, 178, 0.08);
}


/* ══════════════════════════════════════════
   15. FAQ ITEMS — cleaner open state
   ══════════════════════════════════════════ */
.faq-item[open] {
  border-color: rgba(48, 102, 255, 0.3);
  box-shadow: 0 4px 20px rgba(48, 102, 255, 0.06);
}


/* ══════════════════════════════════════════
   16. MARQUEE SECTION — subtle blue tint
   ══════════════════════════════════════════ */
.marquee-section {
  background: var(--white);
}

[data-theme="dark"] .marquee-section {
  background: #0A1020;
}


/* ══════════════════════════════════════════
   17. SERVICE CARDS — stronger hover
   ══════════════════════════════════════════ */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px -12px rgba(48, 102, 255, 0.2);
  border-color: rgba(48, 102, 255, 0.25);
}

/* ══════════════════════════════════════════
   18. MISSING BRAND COLOR VARIABLES
   (Fixes uncolored text in services modal/specs)
   ══════════════════════════════════════════ */
:root {
  --brand-blue: var(--primary);
  --brand-navy: var(--dark-navy);
}

[data-theme="dark"] {
  --brand-blue: var(--primary);
  --brand-navy: var(--dark-navy);
}

/* ══════════════════════════════════════════
   19. AVAILABILITY DOT (Contact Page)
   ══════════════════════════════════════════ */
.availability-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  position: relative;
  vertical-align: middle;
}

.availability-dot.online {
  background-color: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.availability-dot.online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--success);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.availability-dot.offline {
  background-color: var(--muted);
}

/* ══════════════════════════════════════════
   20. CHECKOUT CONTAINER (Order Page)
   ══════════════════════════════════════════ */
.checkout-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .checkout-main {
  background: #151D2E;
  border-color: var(--border);
}

/* ══════════════════════════════════════════
   21. ENHANCED FORM INPUTS & INTERACTIONS
   ══════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #162032;
  border-color: #24324D;
}

