/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 25%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-sub { font-size: 1.1rem; max-width: 540px; margin: 0 auto 36px; }
.hero-trusted { margin-top: 52px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-trusted > span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.trust-logos span { font-size: .82rem; color: var(--dim); font-style: italic; }

/* Screen mockup */
.hero-visual { margin-top: 72px; position: relative; z-index: 1; }
.hero-screen {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px var(--shadow-color), 0 0 60px rgba(15,196,196,.1);
}
.screen-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border-dim);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.screen-url { flex: 1; text-align: center; font-size: .75rem; color: var(--dim); background: rgba(255,255,255,.04); border-radius: 6px; padding: 4px 10px; }
.screen-body { padding: 24px; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.mini-stat { background: rgba(255,255,255,.03); border: 1px solid var(--border-dim); border-radius: 10px; padding: 14px; text-align: center; }
.mini-stat-val { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--teal); }
.mini-stat-label { font-size: .72rem; color: var(--dim); margin-top: 3px; display: block; }
.mini-bar-wrap { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.mini-bar { flex: 1; background: rgba(15,196,196,.13); border-radius: 3px 3px 0 0; }
.mini-bar.active { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
.mini-chart-label { font-size: .72rem; color: var(--dim); text-align: center; margin-top: 8px; }

/* ══ STATS STRIP ══ */
.stats-section { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: 48px 20px; border-right: 1px solid var(--border-dim); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--text); letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: var(--dim); margin-top: 5px; display: block; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-dim); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border-dim); }
}

/* ══ SERVICES ══ */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card { display: flex; flex-direction: column; }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-glow); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 18px; transition: all .3s;
}
.service-card:hover .service-icon { background: rgba(15,196,196,.22); transform: scale(1.06); }
.service-card h3 { margin-bottom: 9px; }
.service-card p  { flex: 1; margin-bottom: 18px; font-size: .93rem; }
.service-link { display: inline-flex; align-items: center; gap: 5px; font-size: .83rem; color: var(--teal); font-weight: 500; transition: gap .2s; margin-top: auto; }
.service-link:hover { gap: 10px; }

/* ══ WHY US ══ */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.why-card--wide { grid-column: 2 / 4; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } .why-card--wide { grid-column: 1/3; } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } .why-card--wide { grid-column: auto; } }

.why-visual {
  height: 110px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,.02);
  margin-bottom: 18px; overflow: hidden;
}
.avatar-stack { display: flex; }
.avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bg-card); margin-left: -10px; object-fit: cover; }
.avatar:first-child { margin-left: 0; }

.why-visual.chat { flex-direction: column; align-items: flex-start; padding: 14px; gap: 7px; justify-content: center; }
.chat-bubble { padding: 9px 13px; border-radius: 10px; font-size: .79rem; max-width: 90%; color: var(--text); }
.chat-bubble.sent { background: rgba(15,196,196,.15); border: 1px solid rgba(15,196,196,.2); align-self: flex-end; }
.chat-bubble.received { background: rgba(255,255,255,.06); border: 1px solid var(--border-dim); }
.chat-typing { display: flex; gap: 4px; padding: 9px 13px; background: rgba(255,255,255,.04); border-radius: 10px; width: fit-content; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); animation: bop 1.4s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bop { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

.why-visual.metrics { flex-direction: column; align-items: stretch; padding: 14px; gap: 7px; justify-content: center; }
.uptime-label { font-size: .75rem; color: var(--dim); font-weight: 500; }
.uptime-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; flex: 1; }
.ub { flex: 1; background: rgba(255,255,255,.08); border-radius: 2px 2px 0 0; }
.ub.active { background: var(--teal); }
.uptime-note { font-size: .72rem; color: var(--dim); line-height: 1.4; }

.why-visual.icon-center { justify-content: center; align-items: center; }
.why-visual.timeline-visual { height: auto; flex-wrap: wrap; padding: 16px; gap: 7px; justify-content: flex-start; }
.tl-item { padding: 5px 13px; border-radius: 999px; font-size: .76rem; border: 1px solid var(--border-dim); color: var(--dim); background: rgba(255,255,255,.02); }
.tl-item.done   { border-color: rgba(15,196,196,.3); color: var(--teal); background: rgba(15,196,196,.08); }
.tl-item.active { border-color: var(--teal); color: var(--text); background: rgba(15,196,196,.14); }
.why-card h3 { margin-bottom: 8px; }

/* ══ IMPACT ══ */
.impact-section {
  padding: 120px 0;
  background: radial-gradient(ellipse 80% 55% at 50% 100%, rgba(5,79,90,.38) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.impact-inner { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; }
.impact-inner::before {
  content: ''; position: absolute; bottom: -55px; left: 50%; transform: translateX(-50%);
  width: 580px; height: 190px; border: 1px solid rgba(15,196,196,.14); border-bottom: none;
  border-radius: 580px 580px 0 0; pointer-events: none;
}
.impact-inner::after {
  content: ''; position: absolute; bottom: -85px; left: 50%; transform: translateX(-50%);
  width: 780px; height: 260px; border: 1px solid rgba(15,196,196,.06); border-bottom: none;
  border-radius: 780px 780px 0 0; pointer-events: none;
}
.impact-eyebrow { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.impact-inner h2 { margin-bottom: 56px; }
.impact-stats { display: flex; justify-content: center; gap: 72px; flex-wrap: wrap; }
.impact-stat { text-align: center; }
.impact-num { display: block; font-family: var(--font-display); font-size: clamp(2.8rem,5vw,4.2rem); font-weight: 300; color: var(--text); letter-spacing: -.02em; }
.impact-label { display: block; font-size: .83rem; color: var(--dim); margin-top: 5px; }

/* ══ TESTIMONIALS ══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.stars { color: #fbbf24; font-size: .9rem; letter-spacing: 2px; }
.testi-text { flex: 1; font-style: italic; color: var(--text); }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-author img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.testi-author strong { display: block; font-size: .9rem; font-weight: 500; color: var(--text); }
.testi-author span   { font-size: .8rem; color: var(--dim); }

/* ══ PRICING ══ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.pricing-card { display: flex; flex-direction: column; gap: 20px; }
.pricing-popular {
  border-color: rgba(15,196,196,.3);
  background: linear-gradient(160deg, #0a1e2e 0%, #071820 100%);
  box-shadow: 0 0 40px rgba(15,196,196,.12);
  transform: scale(1.02);
}
@media (max-width: 900px) { .pricing-popular { transform: none; } }
.popular-badge { display: inline-flex; padding: 4px 14px; border-radius: 999px; background: rgba(15,196,196,.15); border: 1px solid rgba(15,196,196,.3); color: var(--teal); font-size: .75rem; font-weight: 500; width: fit-content; }
.plan-name { font-weight: 600; font-size: 1.1rem; color: var(--text); }
.plan-desc { font-size: .9rem; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--text); letter-spacing: -.03em; }
.price-period { font-size: .9rem; color: var(--dim); }
.plan-btn { width: 100%; justify-content: center; margin-top: auto; }

/* ══ FAQ ══ */
.faq-container { max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-dim); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; background: none; border: none; color: var(--text);
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  cursor: pointer; text-align: left; transition: color .25s;
}
.faq-question:hover { color: var(--teal); }
.faq-icon { flex-shrink: 0; color: var(--dim); transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--teal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 24px; font-size: .93rem; }

/* ══ CONTACT ══ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { padding-top: 20px; }
.contact-info h2 { margin: 14px 0; }
.contact-info p  { margin-bottom: 30px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--muted); transition: color .25s; }
.contact-item:hover { color: var(--teal); }
.contact-item svg { color: var(--teal); flex-shrink: 0; }

/* Contact form card */
.contact-form-card { display: flex; flex-direction: column; gap: 0; }
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; letter-spacing: .03em; }

/* ── FIX: inputs fully interactable, text always visible ── */
.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--teal);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  /* make sure nothing sits on top */
  position: relative;
  z-index: 1;
}
.form-input:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(15,196,196,.15);
  background: var(--input-bg);
}
.form-input::placeholder {
  color: var(--dim);
  -webkit-text-fill-color: var(--dim);
  opacity: 1;
}
.form-input option {
  background: var(--option-bg);
  color: var(--option-text);
}
textarea.form-input { resize: vertical; min-height: 100px; }

#form-status { font-size: .8rem; text-align: center; margin-top: 12px; color: var(--dim); }

/* ══ LIGHT MODE OVERRIDES ══ */
[data-theme="light"] .hero-screen {
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 0 40px rgba(10,154,154,.06);
}
[data-theme="light"] .mini-stat {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .mini-bar { background: rgba(10,154,154,.12); }
[data-theme="light"] .mini-bar.active { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
[data-theme="light"] .screen-bar { background: rgba(0,0,0,.03); border-bottom-color: rgba(0,0,0,.06); }
[data-theme="light"] .screen-url { background: rgba(0,0,0,.04); }
[data-theme="light"] .chat-bubble.sent { background: rgba(10,154,154,.1); border-color: rgba(10,154,154,.15); }
[data-theme="light"] .chat-bubble.received { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.06); }
[data-theme="light"] .chat-typing { background: rgba(0,0,0,.04); }
[data-theme="light"] .ub { background: rgba(0,0,0,.07); }
[data-theme="light"] .ub.active { background: var(--teal); }
[data-theme="light"] .tl-item { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .tl-item.done { background: rgba(10,154,154,.06); border-color: rgba(10,154,154,.2); }
[data-theme="light"] .tl-item.active { background: rgba(10,154,154,.1); border-color: var(--teal); }
[data-theme="light"] .impact-section {
  background: radial-gradient(ellipse 80% 55% at 50% 100%, rgba(10,154,154,.08) 0%, transparent 70%);
}
[data-theme="light"] .pricing-popular {
  background: linear-gradient(160deg, #f0fafa 0%, #e8f6f6 100%);
  border-color: rgba(10,154,154,.25);
  box-shadow: 0 0 40px rgba(10,154,154,.08);
}
[data-theme="light"] .footer-cta-banner {
  background: linear-gradient(135deg, #e8f4f6 0%, #f0f6f8 50%, #e8f4f6 100%);
}
[data-theme="light"] .glow-blob { opacity: .5; }
[data-theme="light"] .btn-primary:hover {
  background: var(--teal);
  color: #fff;
}
[data-theme="light"] .accent {
  background: linear-gradient(120deg, var(--teal), #065e66);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .stars { color: #d4960a; }
