/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF8F4;
  --fg: #111110;
  --accent: #C85B00;
  --accent-light: #FDF0E4;
  --ink: #1A1A18;
  --muted: #6B6860;
  --border: #E2DDD6;
  --widget-bg: #111110;
  --widget-fg: #FAF8F4;
  --nav-bg: #111110;
  --nav-fg: #FAF8F4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.1; }

/* Nav */
.nav {
  background: var(--nav-bg);
  color: var(--nav-fg);
  padding: 20px 0;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: #888;
  border-left: 1px solid #333;
  padding-left: 20px;
}

/* Hero */
.hero {
  padding: 100px 40px 80px;
  max-width: 1120px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}

/* Widget Stack */
.hero-visual { display: flex; justify-content: flex-end; }
.widget-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget {
  background: var(--widget-bg);
  color: var(--widget-fg);
  padding: 16px 22px;
  border-radius: 12px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.widget:hover { transform: translateX(-4px); }
.w-label { font-size: 0.78rem; color: #888; }
.w-value { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; }
.w-time { font-size: 0.72rem; color: #555; text-align: right; }
.w1 { border-left: 3px solid #22C55E; }
.w2 { border-left: 3px solid #3B82F6; }
.w3 { border-left: 3px solid #F59E0B; }
.w4 { border-left: 3px solid #A855F7; }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stat { flex: 1; padding: 0 40px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.stat-divider { width: 1px; background: var(--border); margin: 0 40px; }

/* Problem */
.problem {
  background: #111110;
  color: #FAF8F4;
  padding: 100px 40px;
}
.problem-inner { max-width: 1120px; margin: 0 auto; }
.problem-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 28px;
}
.problem-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #FAF8F4;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  max-width: 700px;
}
.problem-body {
  font-size: 1.05rem;
  color: #aaa;
  max-width: 640px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.problem-body.accent { color: #FAF8F4; margin-top: 32px; }

/* Services */
.services {
  padding: 100px 40px;
  max-width: 1120px;
  margin: 0 auto;
}
.services-header { margin-bottom: 64px; }
.services-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.services-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 540px;
  letter-spacing: -0.02em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.sc-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.sc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
}
.sc-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Outcomes */
.outcomes {
  background: #111110;
  padding: 80px 40px;
}
.outcomes-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.outcome-stat {
  padding: 32px 40px;
  border-right: 1px solid #222;
}
.outcome-stat:last-child { border-right: none; }
.os-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #FAF8F4;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.os-label {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
}

/* Process */
.process {
  padding: 100px 40px;
  max-width: 1120px;
  margin: 0 auto;
}
.process-header { margin-bottom: 64px; }
.process-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.process-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
}
.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Closing */
.closing {
  background: var(--accent);
  padding: 100px 40px;
}
.closing-inner { max-width: 1120px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.closing-body {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: #0A0A08;
  color: #888;
  padding: 60px 40px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #FAF8F4;
  margin-bottom: 12px;
  display: block;
}
.footer-desc { font-size: 0.85rem; line-height: 1.6; }
.footer-copy { font-size: 0.78rem; }

/* ── Chatbot Widget ─────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent, #C85B00);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200, 91, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(200, 91, 0, 0.55);
}

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.05);
  flex-direction: column;
  overflow: hidden;
  animation: cw-slide-up 0.18s ease-out;
}

@keyframes cw-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cw-header {
  background: var(--nav-bg, #111110);
  color: var(--nav-fg, #FAF8F4);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cw-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.cw-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cw-messages {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.cw-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 88%;
  word-break: break-word;
}
.cw-msg-user {
  background: var(--accent, #C85B00);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.cw-msg-bot {
  background: #F4F1ED;
  color: var(--ink, #1A1A18);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.cw-form-area { border-top: 1px solid #EDE9E3; }
.cw-typing {
  padding: 8px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.dot {
  width: 7px; height: 7px;
  background: var(--muted, #6B6860);
  border-radius: 50%;
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
  30% { transform: scale(1.2); opacity: 1; }
}

.cw-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}
#chat-input {
  flex: 1;
  border: 1.5px solid var(--border, #E2DDD6);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
#chat-input:focus { border-color: var(--accent, #C85B00); }

.cw-send-btn {
  background: var(--accent, #C85B00);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cw-send-btn:hover { background: #b04e00; }

/* Qualified form */
.qf-wrap { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.qf-title { font-weight: 600; margin-bottom: 4px; color: var(--ink, #1A1A18); }
.qf-input {
  border: 1.5px solid var(--border, #E2DDD6);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.qf-input:focus { border-color: var(--accent, #C85B00); }
.qf-textarea { resize: vertical; min-height: 60px; }
.qf-btn {
  background: var(--accent, #C85B00);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  margin-top: 4px;
}
.qf-btn:hover { background: #b04e00; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { justify-content: flex-start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcome-stat { border-right: none; border-bottom: 1px solid #222; }
  .step { grid-template-columns: 60px 1fr; gap: 24px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 24px 60px; }
  .nav-inner { padding: 0 24px; }
  .services, .process { padding: 60px 24px; }
  .problem { padding: 60px 24px; }
  .closing { padding: 60px 24px; }
  .footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .chat-window { width: calc(100vw - 28px); }
}