/* ============ Tokens ============ */
:root {
  --ink: #0d0c0b;
  --ink-2: #131210;
  --cream: #f2ede6;
  --muted: #b8b0a6;
  --dim: #786f63;
  --copper: #c8532c;
  --copper-bright: #e5744a;
  --hair: rgba(242,237,230,0.14);
  --hair-soft: rgba(242,237,230,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

em { font-style: italic; font-weight: 300; color: var(--copper); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 3px;
  background: var(--copper);
  color: var(--ink);
  border: 1px solid var(--copper);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--copper-bright); border-color: var(--copper-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--hair); }
.btn-ghost:hover { background: var(--hair-soft); border-color: var(--copper); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,12,11,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 1px;
}
.main-nav { display: flex; gap: 36px; }
.main-nav a { font-size: 15px; color: var(--muted); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--cream); }

/* ============ Hero ============ */
.hero {
  padding: 140px 0 110px;
  background-image:
    radial-gradient(circle at 85% 10%, rgba(200,83,44,0.14), transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(200,83,44,0.08), transparent 42%);
}
.hero h1 { font-size: 58px; line-height: 1.14; max-width: 780px; margin-top: 22px; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; margin-top: 26px; }
.hero-cta { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }

/* ============ Offers ============ */
.offers { padding: 100px 0; border-top: 1px solid var(--hair); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 38px; margin-top: 16px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.offer-card {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.offer-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--copper);
  border: 1px solid rgba(200,83,44,0.4);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.offer-card h3 { font-size: 24px; margin-bottom: 12px; }
.offer-lead { font-size: 16px; font-weight: 600; color: var(--cream); margin-bottom: 12px; }
.offer-body { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.offer-proof {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hair);
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  background: #000;
}
.offer-proof img { width: 100%; height: 100%; object-fit: cover; }
.offer-caption { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--dim); margin-top: auto; }

/* ============ Proof band ============ */
.proof-band { padding: 90px 0; border-top: 1px solid var(--hair); background: var(--ink-2); }
.proof-inner { max-width: 780px; }
.proof-quote { font-family: 'Fraunces', serif; font-weight: 300; font-style: italic; font-size: 26px; line-height: 1.5; color: var(--cream); }
.proof-sign { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--dim); margin-top: 24px; }

/* ============ Funnel widget ============ */
.funnel-section { padding: 100px 0 140px; border-top: 1px solid var(--hair); }
.funnel-intro { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 560px; }
.funnel-widget {
  max-width: 640px;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 48px;
  position: relative;
  min-height: 280px;
}
.funnel-progress { display: flex; gap: 8px; margin-bottom: 36px; }
.step-dot { width: 28px; height: 3px; background: var(--hair); border-radius: 2px; transition: background 0.2s ease; }
.step-dot.active, .step-dot.done { background: var(--copper); }
.funnel-step { display: none; }
.funnel-step.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.funnel-q { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; margin-bottom: 26px; }
.funnel-choices { display: flex; flex-direction: column; gap: 12px; }
.choice-btn {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-btn:hover { border-color: var(--copper); background: rgba(200,83,44,0.08); }
.funnel-result { text-align: left; }
.result-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 22px;
}
.result-msg { font-size: 18px; line-height: 1.6; color: var(--cream); margin-bottom: 30px; }
.result-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.funnel-restart {
  display: block; margin-top: 22px;
  background: none; border: none; color: var(--dim);
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  cursor: pointer; text-decoration: underline;
}
.funnel-brief-link {
  display: block; margin-top: 14px;
  color: var(--copper); font-size: 14px; font-weight: 500;
}
.funnel-brief-link:hover { text-decoration: underline; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--hair); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.footer-brand .name { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: 1px; }
.footer-brand .role { font-size: 14px; color: var(--dim); margin-top: 4px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--copper); }

/* ============ Agent widget (floating) ============ */
.agent-widget { position: fixed; bottom: 28px; right: 28px; z-index: 100; }
.agent-toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--copper); color: var(--ink);
  border: none; border-radius: 100px;
  padding: 14px 22px;
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}
.agent-toggle:hover { transform: translateY(-2px); }
.agent-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.agent-panel[hidden] { display: none; }
.agent-panel {
  position: absolute; bottom: 66px; right: 0;
  width: 340px; max-height: min(600px, 80vh);
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.agent-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.agent-header .kicker { font-size: 12px; }
.agent-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.agent-close:hover { color: var(--cream); }
.agent-messages { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; min-height: 90px; }
.agent-msg { font-size: 14.5px; line-height: 1.5; padding: 11px 14px; border-radius: 8px; max-width: 88%; animation: fadeUp 0.25s ease; }
.agent-msg.bot { background: rgba(242,237,230,0.06); color: var(--cream); align-self: flex-start; border-bottom-left-radius: 2px; }
.agent-msg.user { background: var(--copper); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 2px; }
.agent-quick-replies { padding: 14px 18px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.agent-reply-btn {
  font-family: 'Inter', sans-serif; font-size: 14px; text-align: left;
  background: transparent; color: var(--cream);
  border: 1px solid var(--hair); border-radius: 4px;
  padding: 10px 14px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.agent-reply-btn:hover { border-color: var(--copper); background: rgba(200,83,44,0.08); }

.agent-input-row { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--hair); }
.agent-input-row input {
  flex: 1; background: var(--ink); border: 1px solid var(--hair); border-radius: 4px;
  color: var(--cream); font-family: 'Inter', sans-serif; font-size: 14px; padding: 10px 12px;
}
.agent-input-row input:focus { outline: none; border-color: var(--copper); }
.agent-send {
  width: 38px; height: 38px; border-radius: 4px; border: none;
  background: var(--copper); color: var(--ink); font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.agent-send:hover { background: var(--copper-bright); }
.agent-msg.pending { color: var(--dim); font-style: italic; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .main-nav { display: none; }
}

@media (max-width: 860px) {
  .offer-grid { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 80px; }
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 30px; }
  .funnel-widget { padding: 32px 24px; }
  .agent-panel { width: calc(100vw - 40px); right: -8px; }
}
