/* ============================================================
   First Coast AI Consulting — Stylesheet
   Brand: Blue #2563eb + Purple #7c3aed gradients
   ============================================================ */

/* ── Variables ── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #3b82f6;
  --purple:      #7c3aed;
  --purple-lt:   #a78bfa;
  --green:       #10b981;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --gray:        #64748b;
  --gray-lt:     #f1f5f9;
  --white:       #ffffff;

  --grad:        linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-soft:   linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);

  --radius:      16px;
  --shadow:      0 4px 24px rgba(37,99,235,.12);
  --shadow-lg:   0 12px 48px rgba(37,99,235,.2);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); color: var(--dark); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ── */
.w-full { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  transition: all .22s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.48); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.22); }

.btn-nav {
  background: var(--grad);
  color: var(--white);
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(37,99,235,.3);
}

.btn-lg  { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-xl  { padding: 18px 48px; font-size: 18px; border-radius: 14px; }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  background: rgba(37,99,235,.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-label.light  { color: rgba(255,255,255,.8); background: rgba(255,255,255,.15); }
.section-label.purple { color: var(--purple-lt); background: rgba(167,139,250,.15); }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title.white { color: var(--white); }

.section-sub {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}
.section-sub.muted { color: rgba(255,255,255,.55); }

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  padding: 12px 0;
}

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

.logo {
  font-size: 22px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.logo span { font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: opacity .2s;
}
.nav.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { opacity: .7; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .3s;
}
.nav.scrolled .hamburger span { background: var(--dark); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 899;
  border-top: 1px solid #e2e8f0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a    { font-size: 16px; font-weight: 600; color: var(--dark); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060d1f 0%, #0f172a 30%, #1e1b4b 60%, #1e3a8a 100%);
  z-index: 0;
}

/* subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 70%);
  bottom: -100px; right: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.68);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num   { font-size: 34px; font-weight: 900; color: var(--white); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,.18); }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 2px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(.7); }
  50%      { opacity: 1;  transform: scaleY(1);  }
}

/* ================================================================
   PROBLEM / SOLUTION
   ================================================================ */
.problems {
  padding: 100px 0;
  background: var(--gray-lt);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s;
}
.problem-card:hover { transform: translateY(-4px); }
.problem-icon { font-size: 44px; margin-bottom: 16px; }
.problem-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.problem-card p  { color: var(--gray); line-height: 1.7; font-size: 15px; }

/* Bridge */
.bridge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
.bridge-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(37,99,235,.4));
}
.bridge-line:last-child { background: linear-gradient(to left, transparent, rgba(124,58,237,.4)); }
.bridge-badge {
  font-weight: 800;
  font-size: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  padding: 0 4px;
}

/* Solution box */
.solution-box {
  background: var(--grad);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.solution-copy p {
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  font-size: 16px;
  margin-bottom: 32px;
}

/* Before / After bars */
.solution-visual { display: flex; flex-direction: column; gap: 20px; }

.vs-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 24px;
}
.vs-after { background: rgba(255,255,255,.18); }

.vs-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}

.vs-bars { display: flex; flex-direction: column; gap: 12px; }

.vs-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.vs-row em { font-style: normal; font-weight: 600; }

.bar {
  height: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  width: var(--w);
}
.bar-fill.before { background: rgba(255,255,255,.35); }
.bar-fill.after  { background: linear-gradient(to right, #10b981, #34d399); }

/* ================================================================
   SERVICES
   ================================================================ */
.services { padding: 100px 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.pillar:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }

.pillar-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(to bottom, #eff6ff 0%, var(--white) 40%);
}
.pillar-featured:hover { transform: translateY(-6px); }

.pillar-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--grad);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pillar-num {
  font-size: 56px;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 20px;
}
.pillar-featured .pillar-num { color: #bfdbfe; }

.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon.map      { background: #eff6ff; color: var(--blue); }
.pillar-icon.optimize { background: #f5f3ff; color: var(--purple); }
.pillar-icon.automate { background: #ecfdf5; color: var(--green); }

.pillar h3 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.pillar p  { color: var(--gray); line-height: 1.7; font-size: 15px; margin-bottom: 24px; }

.pillar ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pillar ul li {
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar ul li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

.pillar-result {
  background: var(--grad-soft);
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing {
  padding: 100px 0;
  background: var(--dark);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

/* Left: visual */
.pricing-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.price-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(37,99,235,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.price-pct { font-size: 52px; font-weight: 900; color: var(--white); line-height: 1; }
.price-sub { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; text-align: center; margin-top: 4px; }

.price-split { width: 100%; display: flex; flex-direction: column; gap: 16px; }

.ps-row {
  display: grid;
  grid-template-columns: 68px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.ps-who { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }
.ps-who.muted { color: rgba(255,255,255,.35); }

.ps-bar {
  height: 12px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
}
.ps-fill { height: 100%; background: var(--grad); border-radius: 6px; }
.ps-fill.fee { background: rgba(255,255,255,.2); }

.ps-val { font-size: 14px; font-weight: 700; color: var(--white); text-align: right; }
.ps-val.muted { color: rgba(255,255,255,.4); }

/* Right: card */
.pricing-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 44px;
}
.pricing-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 20px; }

.math { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.math-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: rgba(255,255,255,.65);
  padding: 2px 0;
}
.math-row span:last-child { font-weight: 600; }
.math-row.muted { color: rgba(255,255,255,.35); font-size: 14px; }
.math-row.total { color: var(--white); font-weight: 700; padding-top: 6px; }
.math-row .green { color: var(--green); }
.math-row .big   { font-size: 24px; }
.math-divider { height: 1px; background: rgba(255,255,255,.1); margin: 4px 0; }

.pricing-perks { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 28px; }
.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.75);
}
.check { color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
  padding: 100px 0;
  background: var(--grad-soft);
}

.testimonial-carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  transition: height 0.5s ease;
}

.testimonial-card {
  background: var(--white);
  border-radius: 24px;
  padding: 64px;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(37,99,235,.08);
}

.testimonial-card.tc-active {
  opacity: 1;
  pointer-events: auto;
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.t-dot.tc-active {
  background: var(--blue);
  transform: scale(1.35);
}

.quote-mark {
  position: absolute;
  top: -8px; left: 40px;
  font-size: 140px;
  color: var(--blue);
  opacity: .06;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.testimonial-card blockquote {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--dark);
  line-height: 1.82;
  font-style: italic;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.t-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}
.t-info strong { display: block; font-size: 16px; font-weight: 700; }
.t-info span   { font-size: 14px; color: var(--gray); }
.t-stars { margin-left: auto; font-size: 22px; color: #f59e0b; letter-spacing: 2px; }

.t-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.tm-val {
  display: block;
  font-size: 32px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tm-label { font-size: 13px; color: var(--gray); font-weight: 500; margin-top: 4px; display: block; }

/* ================================================================
   ABOUT
   ================================================================ */
.about { padding: 100px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-copy p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 18px;
}

.values { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }

.value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.val-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.value strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--gray); line-height: 1.6; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }

.as-card {
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.as-card.grad-1 { background: var(--grad); }
.as-card.grad-2 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.as-card.grad-3 { background: linear-gradient(135deg, #064e3b, #065f46); }

.as-num   { font-size: 48px; font-weight: 900; color: var(--white); line-height: 1; }
.as-label { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.78); line-height: 1.4; }

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  padding: 100px 0;
  background: var(--grad);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.final-cta p { font-size: 18px; color: rgba(255,255,255,.72); margin-bottom: 40px; }
.cta-fine     { font-size: 14px; color: rgba(255,255,255,.42); margin-top: 16px !important; margin-bottom: 0 !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { padding: 52px 0 32px; background: var(--dark); }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand .logo { display: inline-block; margin-bottom: 8px; }
.footer-brand p  { color: rgba(255,255,255,.45); font-size: 14px; line-height: 1.7; }

.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-nav a,
.footer-assess {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  transition: color .2s;
}
.footer-nav a:hover,
.footer-assess:hover { color: var(--white); }
.footer-assess { cursor: pointer; }

.footer-copy { color: rgba(255,255,255,.25); font-size: 13px; }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  animation: modalIn .28s ease;
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
  line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,.15); color: var(--white); }

.modal-head {
  background: var(--grad);
  padding: 32px 32px 28px;
  position: relative;
}
.modal-logo {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.modal-logo span { font-weight: 400; }
.modal-head h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.modal-head p  { font-size: 14px; color: rgba(255,255,255,.68); }

/* Chat */
.chat-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  scroll-behavior: smooth;
}

.chat-msg { max-width: 88%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}
.bot .bubble {
  background: var(--gray-lt);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}
.user .bubble {
  background: var(--grad);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing { display: flex; gap: 5px; align-items: center; padding: 13px 16px; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray);
  animation: bounce 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-8px); }
}

/* Chat input area */
.chat-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opt-btn {
  background: var(--white);
  border: 2px solid #e2e8f0;
  color: var(--dark);
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  font-family: var(--font);
}
.opt-btn:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }

.chat-text-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-input-line {
  display: flex;
  gap: 10px;
}
.chat-consent {
  font-size: 11px;
  color: var(--gray);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
.chat-consent a {
  color: var(--gray);
  text-decoration: underline;
}
.chat-text-row input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  color: var(--dark);
}
.chat-text-row input:focus { border-color: var(--blue); }

/* Result card inside chat */
.result-card {
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.result-card h4 { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.result-card p  { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.result-savings {
  font-size: 40px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}
.result-label { font-size: 13px; color: var(--gray); margin-bottom: 20px; display: block; }
.result-card .btn { margin-top: 8px; font-size: 14px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .solution-box   { padding: 48px; gap: 40px; }
  .about-grid     { gap: 48px; }
  .pricing-layout { gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links            { display: none; }
  .hamburger            { display: flex; }

  .problems-grid        { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .solution-box         { grid-template-columns: 1fr; }

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

  .pricing-layout       { grid-template-columns: 1fr; }
  .pricing-visual       { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .price-split          { width: 100%; max-width: 360px; }

  .about-grid           { grid-template-columns: 1fr; }
  .about-stats          { flex-direction: row; flex-wrap: wrap; }
  .as-card              { flex: 1; min-width: 180px; }

  .t-metrics            { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero-stats     { gap: 28px; }
  .stat-divider   { display: none; }

  .section-header { margin-bottom: 36px; }
  .section-sub    { font-size: 16px; }

  .solution-box   { padding: 32px 24px; }

  .testimonial-card { padding: 40px 24px; }
  .t-metrics        { grid-template-columns: 1fr; gap: 16px; }
  .t-dots           { margin-top: 24px; }

  .pricing-card   { padding: 28px 20px; }

  .about-stats    { flex-direction: column; }
  .as-card        { padding: 28px 28px; }

  .modal          { border-radius: 16px; max-height: 95vh; }
  .modal-head     { padding: 28px 24px 22px; }
  .chat-messages  { padding: 16px; }
  .chat-footer    { padding: 12px 16px 16px; }
}

/* ================================================================
   ASSESSMENT PROGRESS BAR (fixed strip, injected above #chat-messages)
   ================================================================ */
#assessment-progress {
  padding: 10px 20px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: var(--white);
  flex-shrink: 0;
}

.ap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ap-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
}

.ap-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
}

.ap-track {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.ap-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  transition: width .45s ease;
}

/* ================================================================
   ASSESSMENT CHAT — EXTENDED STYLES
   Progress bar · Error · Proposal card · Savings calc · Next steps
   ================================================================ */

/* ── Progress indicator ── */
.chat-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
  width: 100%;
}
.cp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
}
.cp-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
}
.cp-track {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.cp-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  transition: width .5s ease;
}

/* ── Hint text ── */
.hint-text {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ── Inline error ── */
.chat-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  padding: 6px 2px 4px;
  line-height: 1.4;
}

/* ── Proposal wrapper ── */
.proposal-msg {
  max-width: 100% !important;
  width: 100%;
}
.proposal-msg > .bubble {
  padding: 0;
  background: none;
  border-radius: 0;
}

/* ── Proposal card ── */
.proposal-card {
  background: var(--white);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

/* Proposal header */
.proposal-head {
  background: var(--grad);
  padding: 22px 24px 20px;
}
.prop-logo {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.prop-logo span { font-weight: 400; }
.proposal-head h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}
.proposal-head p {
  font-size: 13px;
  color: rgba(255,255,255,.72);
  margin-bottom: 12px;
}
.prop-score { margin-top: 4px; }
.score-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .3px;
}

/* Proposal sections */
.prop-section {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.prop-last { border-bottom: none; }

.prop-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Opportunity cards */
.opp-list { display: flex; flex-direction: column; gap: 10px; }

.opp-card {
  background: var(--gray-lt);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 11px 14px;
}
.opp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.opp-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.55;
}

/* Savings calculation */
.savings-calc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
  padding: 1px 0;
}
.sc-row strong      { color: var(--dark); font-weight: 700; }
.sc-row strong.sc-green { color: var(--green); }

.sc-fee             { color: rgba(100,116,139,.7); font-size: 12px; }
.sc-fee strong      { color: rgba(100,116,139,.7); font-weight: 600; }

.sc-total {
  background: var(--grad-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 2px -12px 0;
  font-weight: 700;
  color: var(--dark);
}
.sc-total strong {
  font-size: 16px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sc-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

/* Prop text + next steps */
.prop-text {
  font-size: 13px;
  color: var(--dark);
  line-height: 1.65;
}

.next-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.5;
  counter-increment: steps;
}
.next-steps li::before {
  content: counter(steps);
  min-width: 22px;
  height: 22px;
  background: var(--grad);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA inside proposal */
.prop-btn {
  display: flex;
  width: 100%;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}
.prop-fine {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 10px;
}

/* ── Standalone post-proposal CTA (appended after AI proposal bubble) ── */
.proposal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 0 4px;
  width: 100%;
  max-width: 88%;  /* matches .chat-msg max-width */
}
.proposal-actions .prop-btn {
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.proposal-actions .prop-fine {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 8px;
}
.proposal-actions .prop-fine a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Error message below input ── */
.chat-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  padding: 5px 2px 3px;
  line-height: 1.4;
}

/* ── Hint text (bot messages) ── */
.hint-text {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

