/* =======================
   BOOKMATIC — CUSTOM THEME
   ======================= */

/* --- Variables --- */
:root {
  --bg-primary: #111318;
  --bg-card: #1a1d24;
  --bg-card-hover: #1f232d;
  --accent: #E8922A;
  --accent-dim: rgba(232,146,42,0.12);
  --text-primary: #F0EDE6;
  --text-secondary: #8A8B93;
  --text-muted: #565760;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(17,19,24,0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-cta {
  padding: 9px 20px;
  background: var(--accent);
  color: #111318;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.88; }
.nav-cta:active { transform: scale(0.96); }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 40px 100px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,146,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,146,42,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,146,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero-text .accent { color: var(--accent); }

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #111318;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-block;
  padding: 14px 20px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text-primary); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 100px;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Widget Card --- */
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(232,146,42,0.08);
}

.widget-header {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.widget-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.widget-dot.red { background: #FF5F57; }
.widget-dot.yellow { background: #FFBD2E; }
.widget-dot.green { background: #28CA41; }

.widget-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.chat-thread {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 90%;
}

.chat-msg.bot {
  background: rgba(232,146,42,0.12);
  border: 1px solid rgba(232,146,42,0.2);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg.user {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.confirmed {
  background: rgba(40,202,65,0.1);
  border: 1px solid rgba(40,202,65,0.2);
  color: #28CA41;
}

.micro { font-size: 11px; opacity: 0.7; }

.widget-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #28CA41;
  font-weight: 500;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28CA41;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Proof Section --- */
.proof {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-inner { max-width: 1200px; margin: 0 auto; }

.proof-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.proof-stats { display: flex; flex-direction: column; gap: 24px; }

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.proof-icon { flex-shrink: 0; margin-top: 2px; }

.proof-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.proof-text strong { color: var(--text-primary); }

/* --- Value Props (3-column) --- */
.value-props { padding: 100px 40px; border-bottom: 1px solid var(--border); }

.value-props-inner { max-width: 1200px; margin: 0 auto; }

.value-props-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.vp-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.vp-card:hover { background: var(--bg-card-hover); }

/* --- Social Proof Strip --- */
.proof-strip {
  padding: 36px 40px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #15181f 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.proof-strip-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.proof-strip-qmark {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  line-height: 0;
  position: relative;
  top: 8px;
}

.proof-strip-text {
  font-style: italic;
  color: var(--text-secondary);
  max-width: 320px;
}

.proof-strip-attr {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
  margin-left: 6px;
  white-space: nowrap;
}

.proof-strip-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}

/* --- Features --- */
.features { padding: 100px 40px; }

.features-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}

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

.feat-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.feat-card:hover { background: var(--bg-card-hover); }

.feat-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feat-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Automation --- */
.automation {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0f1117 100%);
}

.automation-inner { max-width: 1200px; margin: 0 auto; }

.auto-text { margin-bottom: 64px; }

.auto-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.5;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  margin-top: 40px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: 0;
  margin-right: 0;
}

/* --- Pricing --- */
.pricing { padding: 100px 40px; }

.pricing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  text-align: left;
  margin: 48px 0 40px;
}

.price-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232,146,42,0.06) 0%, var(--bg-card) 60%);
}

.price-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: #111318;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-tier {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.price-per {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23E8922A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.price-note {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.pricing-footer { margin-top: 40px; }

.pricing-footer p { font-size: 14px; color: var(--text-muted); }

.pricing-value {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-secondary) !important;
  font-weight: 500;
}

/* --- Closer --- */
.closer {
  padding: 120px 40px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.closer-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232,146,42,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.closer-inner { max-width: 800px; margin: 0 auto; position: relative; }

.closer-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.closer-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.closer-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Lead Capture Form --- */
.lead-form-wrap {
  margin-bottom: 40px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lead-form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.lead-form-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  flex-wrap: wrap;
  justify-content: center;
}

.lead-form-row input {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form-row input::placeholder {
  color: var(--text-muted);
}

.lead-form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.lead-form-row input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.lead-form-row button {
  padding: 12px 24px;
  background: var(--accent);
  color: #111318;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.lead-form-row button:hover { opacity: 0.9; }
.lead-form-row button:active { transform: scale(0.97); }
.lead-form-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.lead-form-msg {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 4px;
}

.lead-form-msg.success {
  background: rgba(40,202,65,0.1);
  border: 1px solid rgba(40,202,65,0.25);
  color: #28CA41;
}

.lead-form-msg.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #EF4444;
}

/* --- CTA --- */
.closer-cta {
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: inline-block;
  text-align: left;
}

.cta-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cta-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col-head {
  font-weight: 600;
  color: var(--text-secondary) !important;
  margin-bottom: 12px !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .value-props-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .auto-steps { flex-direction: column; }
  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0;
    align-self: flex-start;
    margin-left: 24px;
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .value-props-grid { grid-template-columns: 1fr; }
  .features, .proof, .value-props, .automation, .pricing, .closer { padding: 64px 24px; }
  .proof-strip { padding: 28px 24px; }
  .proof-strip-inner { flex-direction: column; gap: 16px; text-align: center; }
  .proof-strip-divider { display: none; }
  .proof-strip-text { max-width: 100%; }
  .nav-inner { padding: 14px 24px; }
  .nav-tag { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-headline { font-size: 28px; }
}
