/* =====================================================
   TOKENS
===================================================== */
:root {
  --bg:        #0D1117;
  --surface:   #14161C;
  --surface-2: #1B1E26;
  --border:    rgba(245, 243, 238, 0.09);
  --border-strong: rgba(245, 243, 238, 0.16);

  --gold:      #C9A66B;
  --gold-dim:  rgba(201, 166, 107, 0.16);
  --blue:      #5B8DEF;

  --text:      #F5F3EE;
  --text-muted:#9A9690;
  --text-faint:#5F6169;

  --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sans:  'Heebo', -apple-system, sans-serif;

  --container: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #14120C;
}
.btn--primary:hover { transform: translateY(-1px); background: #d8b57c; }
.btn--ghost {
  border: 1.5px solid var(--gold);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); }
.btn--large { padding: 17px 40px; font-size: 17px; }

/* =====================================================
   NAV
===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text);
  direction: ltr;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--border-strong);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  transition: border-color 0.18s ease;
}
.nav__cta:hover { border-color: var(--gold); }
@media (max-width: 780px) {
  .nav__links { display: none; }
}

/* =====================================================
   HERO
===================================================== */
.hero {
  padding: 96px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.25), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero__kicker {
  color: var(--gold);
  font-size: 15px;
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.01em;
}
.hero__sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__caption {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
  text-align: center;
}

/* =====================================================
   BROWSER MOCK / AGENT BUBBLE
===================================================== */
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.browser-frame__url {
  margin-right: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--sans);
  direction: ltr;
}
.browser-frame__body {
  position: relative;
  min-height: 380px;
  padding: 30px;
  background:
    radial-gradient(circle at 85% 90%, rgba(91,141,239,0.06), transparent 60%),
    var(--bg);
}

.mock-page__line {
  height: 11px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 12px;
  width: 78%;
}
.mock-page__line--title { height: 18px; width: 55%; margin-bottom: 20px; background: var(--border-strong); }
.mock-page__line.short { width: 42%; }
.mock-page__block {
  margin-top: 22px;
  height: 130px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.agent-bubble {
  position: absolute;
  bottom: 26px;
  left: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  background: linear-gradient(135deg, #5B3FE0 0%, #9B4FE0 55%, #D34FD1 100%);
  box-shadow: 0 10px 26px -8px rgba(120, 60, 220, 0.55);
  transition: transform 0.18s ease;
}
.agent-bubble:hover { transform: scale(1.05); }
.agent-bubble__icon { width: 26px; height: 26px; }
.agent-bubble__pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid #B278E8;
  opacity: 0.5;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chat-panel {
  position: absolute;
  bottom: 92px;
  left: 26px;
  width: min(300px, calc(100% - 52px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 4;
}
.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-panel__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.chat-panel__status {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(91,141,239,0.18);
}
.chat-panel__body {
  padding: 14px 16px;
  min-height: 150px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 85%;
  opacity: 0;
  animation: rise 0.35s ease forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.msg--user {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg--bot {
  align-self: flex-end;
  background: var(--gold-dim);
  color: var(--text);
  border: 1px solid rgba(201,166,107,0.3);
  border-bottom-right-radius: 4px;
}
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: blink 1.1s infinite ease-in-out;
}
.msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%,80%,100% { opacity: 0.25; } 40% { opacity: 1; } }

/* =====================================================
   TRUST STRIP
===================================================== */
.trust { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust__inner { text-align: center; }
.trust__label { color: var(--text-faint); font-size: 14px; }

/* =====================================================
   SECTION HEAD
===================================================== */
.section-head { max-width: 720px; margin: 0 0 56px; text-align: center; margin-inline: auto; }
.section-head--left { text-align: right; margin-inline: unset; }
.section-head__kicker { color: var(--gold); font-size: 14.5px; margin: 0 0 14px; }
.section-head__title { font-size: clamp(26px, 3.4vw, 38px); font-family: var(--sans); }

/* =====================================================
   HOW IT WORKS
===================================================== */
.how { padding: 96px 0; border-top: 1px solid var(--border); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
  box-shadow: 0 0 40px -12px rgba(70, 110, 220, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.step:hover {
  box-shadow: 0 0 55px -10px rgba(70, 110, 220, 0.5);
  transform: translateY(-2px);
}
.step__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.step__title { font-family: var(--sans); font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.step__text { color: var(--text-muted); line-height: 1.7; font-size: 15.5px; }

/* =====================================================
   DEMO
===================================================== */
.demo { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo__inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 56px;
  align-items: center;
}
.demo__text { margin-top: 18px; color: var(--text-muted); line-height: 1.7; font-size: 16px; max-width: 42ch; }

/* =====================================================
   FEATURES
===================================================== */
.features { padding: 110px 0 60px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
}
.feature-card__title { font-family: var(--sans); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.feature-card__text { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* =====================================================
   CTA
===================================================== */
.cta { padding: 60px 0 110px; text-align: center; border-top: 1px solid var(--border); }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta__title { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.cta__text { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin-top: 18px; margin-bottom: 34px; }
.cta__email { margin-top: 18px; color: var(--text-faint); font-size: 14px; direction: ltr; }

/* =====================================================
   FOOTER
===================================================== */
.footer { padding: 34px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: center; font-size: 14px; color: var(--text-faint); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero__inner, .demo__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-head--left { text-align: center; }
  .browser-frame__body { min-height: 320px; padding: 22px; }
}
.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}