
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

:root {
  --ink:    #0F1923;
  --blue:   #1B5CFF;
  --blue-lt:#EEF3FF;
  --green:  #16A34A;
  --green-lt:#DCFCE7;
  --border: #E5E9F0;
  --muted:  #6B7A8D;
  --bg:     #F9FAFB;
  --white:  #FFFFFF;

  --head: 'Lora', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --px:   clamp(20px, 5vw, 64px);
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 58px; display: flex; align-items: center;
  padding: 0 var(--px);
  background: rgba(249,250,251,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  width: 100%; max-width: 1020px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--head); font-style: italic; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.logo span { font-style: normal; color: var(--blue); font-family: var(--body); font-weight: 700; }
.nav-btn {
  background: var(--ink); color: var(--white);
  font-family: var(--body); font-weight: 600; font-size: .83rem;
  padding: 9px 20px; border-radius: 50px; text-decoration: none;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s;
  display: none;
}
.nav-btn:hover { background: var(--blue); transform: translateY(-1px); }
.ham {
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 10px; transition: background .2s; margin-right: -10px;
}
.ham:hover { background: var(--border); }
.ham span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.ham.o span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.o span:nth-child(2) { opacity: 0; }
.ham.o span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--white); padding: 24px var(--px) 40px;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.77,0,.18,1);
  display: flex; flex-direction: column; gap: 0;
}
.drawer.o { transform: translateX(0); }
.drawer a {
  font-size: 1.3rem; font-family: var(--head); font-style: italic;
  color: var(--ink); text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid var(--border); display: block;
  transition: color .2s;
}
.drawer a:hover { color: var(--blue); }
.drawer-cta { margin-top: 28px; }

@media(min-width:700px) {
  .nav-btn { display: block; }
  .ham { display: none; }
  .drawer { display: none !important; }
}

/* ── HERO ── */
.hero {
  padding: calc(58px + clamp(56px,10vw,100px)) var(--px) 0;
  max-width: 1020px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-lt); color: var(--blue);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 50px;
  margin-bottom: 18px;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  font-family: var(--head); font-style: italic;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 18px;
}
h1 b { font-style: normal; color: var(--blue); font-family: var(--body); font-weight: 700; }

.hero-sub {
  font-size: clamp(.97rem, 2vw, 1.08rem); color: var(--muted);
  font-weight: 400; line-height: 1.75; max-width: 500px; margin-bottom: 32px;
}
.hero-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 16px 30px; min-height: 54px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(27,92,255,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
  width: fit-content;
}
.btn-main:hover { background: #1348d4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,92,255,.4); }
.btn-main:active { transform: scale(.97); }
.btn-vapi.calling { background: #dc2626; box-shadow: 0 4px 20px rgba(220,38,38,.4); }
.btn-vapi.calling:hover { background: #b91c1c; }
.btn-vapi.connecting { background: #4b6bfb; opacity: .75; cursor: wait; pointer-events: none; }
.btn-sec {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; color: var(--muted); font-weight: 500;
  text-decoration: none; cursor: pointer; background: none; border: none;
  padding: 4px 0; transition: color .2s; width: fit-content;
}
.btn-sec:hover { color: var(--ink); }

/* Hero proof strip */
.hero-proof {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.proof-avs {
  display: flex;
}
.proof-av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--muted);
  margin-left: -8px;
}
.proof-av:first-child { margin-left: 0; }
.pa1 { background: #DBEAFE; color: #1E40AF; }
.pa2 { background: #D1FAE5; color: #065F46; }
.pa3 { background: #FEF3C7; color: #92400E; }
.pa4 { background: #FCE7F3; color: #831843; }
.proof-text { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.proof-text strong { color: var(--ink); font-weight: 600; }

/* Hero right — mini testimonial */
.hero-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 4px 24px rgba(15,25,35,.06);
}
.hero-card-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-bottom: 16px;
}
.result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-icon { font-size: 1.3rem; width: 36px; text-align: center; flex-shrink: 0; }
.result-body strong { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); }
.result-body span { font-size: .78rem; color: var(--muted); }

@media(min-width:860px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-btns { flex-direction: row; align-items: center; }
}

/* ── HOW ── */
.how {
  background: var(--ink);
  padding: clamp(56px,8vw,96px) var(--px);
}
.how-in { max-width: 1020px; margin: 0 auto; }
.sec-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.sec-label-inv { color: rgba(27,92,255,.8); }
h2 { font-family: var(--head); font-style: italic; font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
h2.inv { color: var(--white); }
.sec-sub { font-size: .97rem; color: var(--muted); line-height: 1.75; max-width: 480px; margin-bottom: 48px; }
.sec-sub.inv { color: rgba(255,255,255,.5); }

.steps { display: grid; grid-template-columns: 1fr; gap: 2px; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: background .2s;
}
.step:hover { background: rgba(255,255,255,.07); }
.step-n {
  font-family: var(--head); font-style: italic; font-size: 2rem;
  color: rgba(27,92,255,.6); line-height: 1; flex-shrink: 0;
  width: 36px; text-align: center;
}
.step-body h3 { font-size: .97rem; font-weight: 600; color: var(--white); margin-bottom: 5px; }
.step-body p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; }

@media(min-width:640px) { .steps { grid-template-columns: repeat(2,1fr); gap: 12px; } }

/* ── AGENT CTA ── */
.agent-sec {
  padding: clamp(56px,8vw,96px) var(--px);
  background: var(--white);
}
.agent-in { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

.agent-text h2 { color: var(--ink); }
.agent-text .sec-sub { color: var(--muted); margin-bottom: 0; }
.wa-contact {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; font-size: 1.1rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: color .2s;
}
.wa-contact:hover { color: #25D366; }
.agent-benefits { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.ab {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--ink);
}
.ab::before {
  content: '✓'; width: 22px; height: 22px; flex-shrink: 0;
  background: var(--green-lt); color: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
}

/* Chat box */
.chat-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 32px rgba(15,25,35,.08);
}
.chat-top {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.chat-av {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.chat-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
.chat-sub { font-size: .74rem; color: var(--muted); }
.online { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; }
.online::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.chat-msgs { padding: 16px; min-height: 240px; display: flex; flex-direction: column; gap: 10px; }
.cm { display: flex; gap: 8px; align-items: flex-end; opacity: 0; transform: translateY(5px); }
.cm.bot { flex-direction: row; }
.cm.usr { flex-direction: row-reverse; }
.cm.vis { animation: cmIn .35s ease forwards; }
@keyframes cmIn { to { opacity: 1; transform: translateY(0); } }
.cb {
  max-width: 80%; padding: 10px 14px;
  font-size: .84rem; line-height: 1.55; border-radius: 14px;
}
.cm.bot .cb { background: var(--white); color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cm.usr .cb { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }

.typing-dots {
  display: flex; gap: 4px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content; opacity: 0; transition: opacity .3s;
}
.typing-dots.vis { opacity: 1; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: td 1.1s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes td { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-4px)} }

.chat-inp-row {
  border-top: 1px solid var(--border); padding: 12px 14px;
  display: flex; gap: 8px; align-items: center;
  background: var(--white);
}
.chat-inp {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 9px 16px; font-size: .85rem; color: var(--ink);
  font-family: var(--body); outline: none; transition: border-color .2s;
}
.chat-inp:focus { border-color: var(--blue); }
.chat-inp::placeholder { color: var(--muted); }
.chat-go {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white); border: none;
  cursor: pointer; font-size: .9rem; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s, transform .15s; flex-shrink: 0;
}
.chat-go:hover { background: #1348d4; transform: scale(1.07); }

@media(min-width:860px) { .agent-in { grid-template-columns: 1fr 1fr; } }

/* ── TESTIMONIALS ── */
.testi {
  padding: clamp(56px,8vw,96px) var(--px);
  background: var(--bg);
}
.testi-in { max-width: 1020px; margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.tc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.tc:hover { box-shadow: 0 6px 28px rgba(15,25,35,.08); transform: translateY(-3px); }
.tc-stars { color: #FBBF24; font-size: .9rem; margin-bottom: 12px; }
.tc-text { font-size: .9rem; color: var(--ink); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.tc-text::before { content: '"'; }
.tc-text::after { content: '"'; }
.tc-foot { display: flex; align-items: center; gap: 10px; }
.tc-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.tc-name { font-size: .85rem; font-weight: 600; color: var(--ink); }
.tc-role { font-size: .75rem; color: var(--muted); }
.tc-tag {
  margin-left: auto; font-size: .7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
}

@media(min-width:600px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .cards-grid { grid-template-columns: repeat(3,1fr); } }

/* ── FOR WHO ── */
.forwho {
  padding: clamp(48px,7vw,80px) var(--px);
  background: var(--white);
}
.forwho-in { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sector {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 7px 16px;
  font-size: .83rem; font-weight: 500; color: var(--ink);
  transition: background .2s, border-color .2s;
}
.sector:hover { background: var(--blue-lt); border-color: rgba(27,92,255,.3); color: var(--blue); }
.sector span { font-size: .95rem; }

.wins { display: flex; flex-direction: column; gap: 10px; }
.win {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s;
}
.win:hover { border-color: rgba(27,92,255,.3); }
.win-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 6px; }
.win-body strong { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.win-body span { font-size: .82rem; color: var(--muted); line-height: 1.6; }

@media(min-width:800px) { .forwho-in { grid-template-columns: 1fr 1fr; } }

/* ── CTA FINAL ── */
.cta-final {
  padding: clamp(56px,8vw,96px) var(--px);
  background: var(--ink); text-align: center;
}
.cta-final h2 { color: var(--white); margin: 0 auto 12px; max-width: 600px; }
.cta-final .sec-sub { margin: 0 auto 32px; color: rgba(255,255,255,.5); text-align: center; }
.cta-final-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cta-final-btns a:last-child { font-size: .85rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.cta-final-btns a:last-child:hover { color: rgba(255,255,255,.7); }
.cta-note { margin-top: 24px; font-size: .78rem; color: rgba(255,255,255,.25); }

@media(min-width:480px) { .cta-final-btns { flex-direction: row; justify-content: center; } }

/* ── FOOTER ── */
footer {
  background: #080E17; padding: 28px var(--px);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.f-logo { font-family: var(--head); font-style: italic; font-size: 1rem; color: rgba(255,255,255,.6); }
.f-logo span { font-style: normal; color: var(--blue); font-family: var(--body); font-weight: 700; }
.f-copy { font-size: .73rem; color: rgba(255,255,255,.25); line-height: 1.8; }
.f-link { background: none; border: none; padding: 0; font-size: inherit; font-family: inherit; color: rgba(255,255,255,.45); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-link:hover { color: rgba(255,255,255,.75); }
@media(min-width:580px) { footer { flex-direction: column; align-items: flex-start; text-align: left; } }

/* ── LEGAL MODAL ── */
.legal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(8,14,23,.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 16px;
}
.legal-overlay.open { display: flex; }
.legal-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 680px;
  max-height: 88vh; overflow-y: auto; padding: 36px 32px 40px;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.legal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: #6b7280;
}
.legal-close:hover { color: #111; }
.legal-tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid #e5e7eb; padding-bottom: 0; }
.legal-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: .9rem; font-weight: 600;
  color: #9ca3af; padding: 8px 4px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.legal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.legal-content h2 { font-family: var(--head); font-size: 1.4rem; margin-bottom: 4px; color: #0f172a; }
.legal-content h3 { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 24px 0 6px; }
.legal-content p, .legal-content li { font-size: .88rem; color: #374151; line-height: 1.75; }
.legal-content ul { padding-left: 20px; margin: 8px 0; }
.legal-content a { color: var(--blue); }
.legal-updated { font-size: .78rem; color: #9ca3af; margin-bottom: 20px; }

/* ── WA FLOAT ── */
.wa {
  position: fixed; bottom: 20px; right: 18px; z-index: 200;
  width: 52px; height: 52px; background: #25D366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  animation: wain .5s .6s both;
}
.wa:hover { transform: scale(1.1); }
@keyframes wain { from{opacity:0;transform:scale(.5)} to{opacity:1;transform:scale(1)} }

/* ── REVEAL ── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
