/* GravityLead reference template — styles.css
   Colors are driven by CSS variables set at runtime from config.js theme. */

:root {
  --primary: #1f6feb;
  --primary-dark: #124a9c;
  --accent: #ff7a18;
  --bg: #0e1621;
  --surface: #16202e;
  --text: #e8eef6;
  --muted: #9fb0c3;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Demo banner (only visible in demo mode) ---- */
.demo-banner {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff; text-align: center; font-size: 13px; font-weight: 600;
  padding: 7px 12px; letter-spacing: .3px;
}

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 9px; }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; transition: transform .15s, background .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-phone { color: var(--muted); font-weight: 600; margin-right: 18px; font-size: 14px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 14px 0 16px; letter-spacing: -.5px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; }
.hero-emoji { font-size: clamp(90px, 14vw, 150px); line-height: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.btn-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.18); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Trust strip ---- */
.trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.trust span {
  background: var(--surface); border: 1px solid rgba(255,255,255,.07);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-title { font-size: 30px; margin-bottom: 8px; letter-spacing: -.4px; }
.section-sub { color: var(--muted); margin-bottom: 34px; }

/* ---- Services ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 26px 22px; transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .icon { font-size: 34px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---- FAQ ---- */
.faq { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 18px; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 28px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 22px; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }

/* ---- Footer ---- */
footer { border-top: 1px solid rgba(255,255,255,.07); padding: 30px 0; color: var(--muted); font-size: 13.5px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.powered { opacity: .7; }
.powered a { color: var(--accent); font-weight: 700; }

/* ---- Chat widget ---- */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 26px; box-shadow: var(--shadow);
  transition: transform .18s; display: flex; align-items: center; justify-content: center;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .pulse {
  position: absolute; inset: 0; border-radius: 50%; background: var(--primary);
  animation: pulse 2.2s infinite; z-index: -1;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }

.chat-window {
  position: fixed; bottom: 96px; right: 22px; z-index: 100;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
.chat-window.open { display: flex; animation: slideup .22s ease; }
@keyframes slideup { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-head { background: var(--primary); color: #fff; padding: 15px 18px; display: flex; align-items: center; gap: 11px; }
.chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-head .meta b { display: block; font-size: 15px; }
.chat-head .meta small { opacity: .85; font-size: 12px; }
.chat-head .demo-tag { margin-left: auto; background: var(--accent); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; }
.msg.bot { background: rgba(255,255,255,.07); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; align-self: flex-start; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s } .typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{ opacity:.3 } 30%{ opacity:1 } }
.quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.quick button {
  background: transparent; border: 1.5px solid var(--primary); color: var(--text);
  padding: 7px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.quick button:hover { background: var(--primary); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-input input { flex: 1; background: var(--bg); border: 1px solid rgba(255,255,255,.12); color: var(--text); border-radius: 999px; padding: 11px 15px; font-size: 14px; outline: none; }
.chat-input input:focus { border-color: var(--primary); }
.chat-input button { background: var(--primary); border: none; color: #fff; width: 42px; border-radius: 50%; cursor: pointer; font-size: 17px; }

/* ---- GravityLead Sales Sections ---- */
.gl-sales { padding: 56px 0; }

.gl-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.gl-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.gl-divider-text { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

.gl-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.gl-headline { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin-bottom: 16px; }
.gl-headline .highlight { color: var(--accent); }
.gl-sub { color: var(--muted); font-size: 18px; line-height: 1.5; }

.gl-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gl-feature {
  background: var(--surface); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  transition: transform .18s, border-color .18s;
}
.gl-feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.gl-feature-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.gl-feature h3 { font-size: 17px; margin-bottom: 8px; }
.gl-feature p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 32px 24px; text-align: center; position: relative;
  transition: transform .18s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 20%, transparent);
  transform: scale(1.04);
}
.price-card.featured:hover { transform: scale(1.06); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-tier { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 12px; }
.price-amount { font-size: 48px; font-weight: 900; line-height: 1; }
.price-amount sup { font-size: 24px; vertical-align: super; }
.price-recur { color: var(--muted); font-size: 15px; margin-top: 4px; margin-bottom: 24px; }
.price-list { list-style: none; text-align: left; margin-bottom: 28px; }
.price-list li { padding: 7px 0; font-size: 14.5px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.04); }
.price-list li:last-child { border-bottom: none; }
.price-cta { width: 100%; text-align: center; display: block; }

/* ---- Lead Form ---- */
.gl-form-wrap {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 40px 32px;
}
.gl-form-wrap h2 { font-size: 28px; margin-bottom: 8px; }
.gl-form-wrap > p { color: var(--muted); margin-bottom: 28px; }

.gl-form { text-align: left; }
.gl-field { margin-bottom: 18px; }
.gl-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.gl-field input,
.gl-field select {
  width: 100%; padding: 12px 15px; font-size: 15px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: var(--bg); color: var(--text);
  outline: none; transition: border-color .15s; font-family: inherit;
}
.gl-field input:focus,
.gl-field select:focus { border-color: var(--primary); }
.gl-field select { appearance: none; cursor: pointer; }

.gl-submit { width: 100%; margin-top: 8px; font-size: 16px; padding: 15px; }

.gl-form-success { display: none; padding: 20px 0; }
.gl-form-success.show { display: block; }
.gl-success-icon { font-size: 48px; margin-bottom: 12px; }
.gl-form-success h3 { font-size: 24px; margin-bottom: 8px; }
.gl-form-success p { color: var(--muted); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emoji { display: none; }
  .nav-phone { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .gl-form-wrap { padding: 28px 20px; }
}
