/* ===========================================================
   Design tokens
   =========================================================== */
:root{
  --bg: #FFFFFF;
  --bg-alt: #FAF9F6;
  --ink: #161A1F;
  --muted: #5C6570;
  --border: #E6E4DD;
  --accent: #2B4C7E;
  --accent-ink: #FFFFFF;
  --flag: #E8623D;
  --flag-bg: #FDEDE6;
  --card: #FFFFFF;
  --radius: 14px;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

a{ color: inherit; }

img, svg{ max-width: 100%; }

.section-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   Nav
   =========================================================== */
.nav{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn{
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43,76,126,0.25);
}
.btn-small{ padding: 10px 20px; font-size: 15px; }
.btn-medium{ padding: 14px 26px; font-size: 16px; }
.btn-large{ padding: 18px 36px; font-size: 19px; }
.btn-light{ background: #FFFFFF; color: var(--accent); }
.btn-light:hover{ box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

.link-arrow{
  display: inline-block;
  margin-top: 36px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 88px 0 60px;
  background: var(--bg);
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(92,101,112,0.16) 1px, transparent 1.4px) 0 0 / 30px 30px,
    repeating-radial-gradient(circle at 88% 8%,
      rgba(232,98,61,0.18) 0, rgba(232,98,61,0.18) 1.5px,
      transparent 1.5px, transparent 54px),
    radial-gradient(circle at 88% 8%, rgba(232,98,61,0.08), transparent 46%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 92%);
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.eyebrow{
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 22px;
  display: block;
}
.hero h1{
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.08;
}
.hero-sub{
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 560px;
}

.hero-cta-wrap{
  position: relative;
  display: inline-block;
  margin-top: 44px;
}
.arrow{
  position: absolute;
  pointer-events: none;
}
.arrow-to-cta{
  width: 150px;
  top: -62px;
  left: calc(100% - 10px);
}
.annotation{
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--flag);
  position: absolute;
  white-space: nowrap;
}
.annotation-cta{
  top: -92px;
  left: calc(100% + 110px);
  transform: rotate(-4deg);
}

.hero-visual{
  position: relative;
  margin: 100px auto 0;
  max-width: 460px;
}
.chat-card{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-align: left;
}
.chat-q{
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
}
.chat-bubble{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 17px;
}
.highlight-circle{
  position: relative;
  font-weight: 600;
  color: var(--flag);
}

.arrow-to-bubble{
  width: 130px;
  position: absolute;
  top: -58px;
  right: -40px;
}
.annotation-bubble{
  position: absolute;
  top: -92px;
  right: -36px;
  transform: rotate(3deg);
}

/* ===========================================================
   Demo
   =========================================================== */
.demo{
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.demo h2{ font-size: clamp(30px, 4vw, 42px); }
.section-sub{
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin: 16px auto 0;
}
.section-sub.light{ color: rgba(255,255,255,0.85); }

.demo-box{
  max-width: 640px;
  margin: 44px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.demo-inputs{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-inputs input{
  flex: 1 1 160px;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.demo-inputs input:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }

.demo-output{
  margin-top: 24px;
  min-height: 90px;
  text-align: left;
  border-radius: 12px;
}
.demo-placeholder{
  color: var(--muted);
  font-size: 16px;
  padding: 20px;
  text-align: center;
}
.demo-answer{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp .5s ease forwards;
}
.demo-answer .business-line{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.demo-answer .badge{
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-miss{ background: var(--flag-bg); color: var(--flag); }
.badge-hit{ background: #E4EEE7; color: #2F6B4F; }
.demo-note{
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

@keyframes fadeUp{ to{ opacity: 1; transform: translateY(0); } }

/* ===========================================================
   Why / stats
   =========================================================== */
.why{ padding: 100px 0; text-align: center; }
.why h2{ font-size: clamp(30px, 4vw, 42px); }

.stat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 120px;
}
.stat-card{
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
}
.stat-num{
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--accent);
}
.stat-card-flag .stat-num{ color: var(--flag); }
.stat-label{
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.arrow-to-stat{
  width: 110px;
  position: absolute;
  top: -70px;
  right: -20px;
}
.annotation-stat{
  position: absolute;
  top: -98px;
  right: -10px;
  transform: rotate(-6deg);
}

/* ===========================================================
   How it works
   =========================================================== */
.how{ padding: 20px 0 110px; }
.how h2{ text-align: center; font-size: clamp(30px, 4vw, 42px); margin-bottom: 50px; }
.how-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.how-num{
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--flag);
  letter-spacing: 0.1em;
}
.how-card h3{
  font-size: 24px;
  margin: 14px 0 10px;
}
.how-card p{
  color: var(--muted);
  font-size: 16px;
}

/* ===========================================================
   Final CTA
   =========================================================== */
.cta-final{
  background: var(--accent);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.cta-final h2{ font-size: clamp(32px, 5vw, 48px); color: #fff; }

.report-form{
  max-width: 520px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[hidden]{ display: none !important; }

.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.report-form input{
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  padding: 16px 18px;
  border-radius: 10px;
  border: none;
}
.report-form input:focus{ outline: 3px solid rgba(255,255,255,0.5); }
.report-form .btn{ margin-top: 8px; }
.form-note{
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* ===========================================================
   Footer
   =========================================================== */
.footer{
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===========================================================
   Scroll reveal
   =========================================================== */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.arrow-path{
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1s ease;
}
.arrow.is-drawn .arrow-path{ stroke-dashoffset: 0; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 760px){
  body{ font-size: 17px; }
  .stat-grid, .how-grid{ grid-template-columns: 1fr; }
  .arrow-to-cta, .annotation-cta{ display: none; }
  .hero-visual{ margin-top: 60px; }
  .arrow-to-bubble, .annotation-bubble{ display: none; }
  .arrow-to-stat, .annotation-stat{ display: none; }
  .demo-inputs{ flex-direction: column; }
}
