/* =============================================
   AppointIQ Landing Page — theme.css
   ============================================= */

:root {
  --bg: #0A1628;
  --bg-card: #0F2040;
  --bg-card-hover: #142a54;
  --fg: #FFFFFF;
  --fg-muted: #8BA3C7;
  --accent: #F5A623;
  --accent-dim: #F5A62326;
  --border: #1E3A5F;
  --font-head: 'DM Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow { margin-bottom: 24px; }
.eyebrow-pill {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-headline {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--fg);
}
.headline-accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-serif);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 120px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Calendar card ─── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-dots { display: flex; gap: 6px; }
.cal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.cal-dots span:nth-child(1) { background: #FF5F57; }
.cal-dots span:nth-child(2) { background: #FFBD2E; }
.cal-dots span:nth-child(3) { background: #28CA41; }
.cal-title { font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.cal-events { display: flex; flex-direction: column; gap: 10px; }
.cal-event {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.cal-event.confirmed { border-color: rgba(245, 166, 35, 0.2); background: rgba(245, 166, 35, 0.04); }
.event-time { font-size: 11px; color: var(--fg-muted); font-weight: 600; }
.event-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.event-meta { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.event-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent);
  white-space: nowrap;
}
.event-badge.pending { background: rgba(139, 163, 199, 0.1); color: var(--fg-muted); }
.event-badge.outbound { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.cal-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cal-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ─── Lead tracker ─── */
.lead-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.tracker-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.tracker-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--fg-muted);
}
.tracker-item:last-child { border-bottom: none; }
.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.tracker-item.new .t-dot { box-shadow: 0 0 6px var(--accent); }
.t-time { font-size: 10px; opacity: 0.6; text-align: right; white-space: nowrap; }

/* ─── Proof bar ─── */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(245, 166, 35, 0.03);
  padding: 24px;
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}
.proof-icon { display: flex; }

/* ─── Sections ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--fg);
  max-width: 680px;
}

/* ─── How it works ─── */
.how-works { padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-top: 56px;
  align-items: start;
}
.step { padding: 0 24px 0 0; }
.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin-top: 56px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--accent);
  border-top: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.step-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(245, 166, 35, 0.15);
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.step-icon { margin-bottom: 20px; }
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-detail {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 6px;
  display: inline-block;
}

/* ─── Industries ─── */
.industries { padding: 100px 0; background: rgba(255,255,255,0.015); }
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.industries-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.industries-list { display: flex; flex-direction: column; gap: 0; }
.ind-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ind-item:last-child { border-bottom: none; }
.ind-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.ind-name { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.ind-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* ─── Outbound ─── */
.outbound { padding: 100px 0; }
.outbound-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.outbound-visuals { display: flex; flex-direction: column; gap: 12px; }
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.channel-card.email { border-left: 3px solid #3B82F6; }
.channel-card.sms { border-left: 3px solid #8B5CF6; }
.channel-card.phone { border-left: 3px solid #F5A623; }
.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.channel-label { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.channel-steps { display: flex; flex-direction: column; gap: 4px; }
.ch-step {
  font-size: 12px;
  color: var(--fg-muted);
  padding-left: 12px;
  position: relative;
}
.ch-step::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
}
.outbound-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 32px;
}
.outbound-list { display: flex; flex-direction: column; gap: 14px; }
.out-list-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--fg); font-weight: 500; }
.out-check { flex-shrink: 0; }

/* ─── Outcomes ─── */
.outcomes { padding: 100px 0; background: rgba(255,255,255,0.015); }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.outcome {
  background: var(--bg);
  padding: 36px 32px;
}
.outcome-icon { margin-bottom: 20px; }
.outcome h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.outcome p { font-size: 13px; color: var(--fg-muted); line-height: 1.7; }

/* ─── Closing ─── */
.closing { padding: 100px 0; }
.closing-inner { max-width: 760px; }
.closing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}
.closing-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}
.closing-philosophy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.phil-item { display: flex; flex-direction: column; gap: 6px; }
.phil-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.phil-value { font-size: 14px; font-weight: 600; color: var(--fg); }
.phil-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: var(--fg-muted); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: rgba(139, 163, 199, 0.5); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .step-connector { display: none; }
  .industries-grid { grid-template-columns: 1fr; gap: 48px; }
  .outbound-grid { grid-template-columns: 1fr; }
  .outbound-visuals { display: none; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .closing-philosophy { flex-direction: column; gap: 20px; }
  .phil-divider { display: none; }
  .proof-inner { justify-content: center; gap: 24px; }
}

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .stat-divider { display: none; }
}