/* ============================================================
   HypaLinkr — landing page styles
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #F7F8FB;
  --bg-tint:   #F5F4FD;   /* violet whisper */
  --ink:       #0F1726;
  --ink-2:     #4A5567;
  --ink-3:     #8290A4;
  --line:      #E7EAF0;
  --line-2:    #EFF1F6;

  --blue:      #2563EB;
  --blue-700:  #1D4FD7;
  --blue-300:  #93B4FB;
  --blue-bg:   #ECF2FE;

  --violet-sel:#F5F3FF;
  --black-chip:#111827;
  --mark:      #FEF08A;

  --radius:    18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.05);
  --shadow-md: 0 10px 30px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.04);
  --shadow-lg: 0 30px 70px rgba(16,24,40,.10), 0 8px 24px rgba(16,24,40,.06);
  --shadow-pop:0 18px 50px rgba(16,24,40,.16), 0 4px 12px rgba(16,24,40,.09);

  --maxw: 1140px;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #DBE6FE; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ── Shared type ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg);
}
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
.section-h {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700; color: var(--ink);
  letter-spacing: -.03em; text-wrap: balance;
}
.section-sub {
  margin-top: 18px; font-size: 18.5px; color: var(--ink-2);
  max-width: 600px; text-wrap: pretty;
}
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

section { position: relative; }
.pad { padding: clamp(72px, 11vw, 132px) 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  padding: 13px 20px; transition: transform .15s ease, background .15s ease,
    box-shadow .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.35), 0 8px 20px rgba(37,99,235,.22);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37,99,235,.4), 0 12px 28px rgba(37,99,235,.3); }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #D3D9E3; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 26px; font-size: 16.5px; border-radius: 13px; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.chrome-mark { width: 19px; height: 19px; border-radius: 50%;
  background:
    conic-gradient(from -90deg, #EA4335 0 33.33%, #FBBC05 0 66.66%, #34A853 0 100%);
  position: relative; flex-shrink: 0; }
.chrome-mark::before { content: ""; position: absolute; inset: 5.5px;
  border-radius: 50%; background: #4285F4; box-shadow: 0 0 0 1.5px #fff inset; }
.chrome-mark::after { content: ""; position: absolute; left: 50%; top: 4px; right: -3px;
  height: 1.5px; background: rgba(255,255,255,.0); }

/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(160deg, #4D8BFF, #2563EB 75%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em;
  box-shadow: 0 2px 6px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand-name b { color: var(--blue); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero { padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 6vw, 64px); text-align: center;
  overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -8%, var(--blue-bg) 0%, rgba(236,242,254,0) 60%);
}
.hero-grid {
  position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; opacity: .5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 30%, transparent 72%);
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 30%, transparent 72%);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 76px);
  letter-spacing: -.04em; line-height: 1.02; font-weight: 800;
  text-wrap: balance; max-width: 16ch; margin: 0 auto;
}
.hero h1 .accent {
  background: linear-gradient(105deg, var(--blue) 20%, #5B8DEF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 26px auto 0; max-width: 600px;
  font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); text-wrap: pretty;
}
.hero-cta { margin-top: 36px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px; font-size: 13.5px; color: var(--ink-3);
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .dot { color: #C7CEDB; }
.check { color: #16A34A; }

/* ── Demo window ───────────────────────────────────────────── */
.demo-stage { margin: clamp(48px,7vw,72px) auto 0; max-width: 940px; position: relative; }
.demo-glow {
  position: absolute; inset: -6% 6% auto 6%; height: 70%; z-index: 0;
  background: radial-gradient(60% 80% at 50% 40%, rgba(37,99,235,.18), transparent 70%);
  filter: blur(36px);
}
.demo-window {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.dw-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 46px; border-bottom: 1px solid var(--line-2);
  background: #FBFCFE;
}
.dw-dots { display: flex; gap: 7px; }
.dw-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dw-tabs { display: flex; gap: 4px; margin-left: 6px; }
.dw-tab { font-size: 12.5px; color: var(--ink-3); padding: 5px 12px; border-radius: 7px;
  font-weight: 500; }
.dw-tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-2); }
.dw-url {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 5px 12px;
}
.dw-url .lock { width: 11px; height: 11px; color: #9AA6B8; }

.dw-body { display: grid; grid-template-columns: 1fr; }
.ticket {
  padding: 22px 26px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; gap: 13px; align-items: flex-start;
}
.ticket-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, #FDA4AF, #F472B6); color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.ticket-meta { min-width: 0; }
.ticket-from { font-size: 14.5px; font-weight: 600; }
.ticket-from .badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line-2);
  padding: 1px 7px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.ticket-text { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }

.composer { padding: 22px 26px 20px; min-height: 384px; position: relative;
  display: flex; flex-direction: column; }
.composer-label { font-size: 12px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.reply {
  font-size: 15.5px; line-height: 1.72; color: var(--ink);
  min-height: 96px; white-space: pre-wrap; word-break: break-word;
}
.reply .q {            /* the live search query typed into the field */
  color: var(--blue); background: var(--blue-bg);
  border-radius: 4px; padding: 0 2px; box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.reply a.ins {
  color: var(--blue); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--blue-300); padding-bottom: .5px;
}
.reply .caret {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: text-bottom;
  background: var(--blue); margin-left: 1px; transform: translateY(2px);
  animation: blink 1.05s steps(1) infinite;
}
.reply.done .caret { display: none; }
@keyframes blink { 0%,50%{opacity:1;} 50.01%,100%{opacity:0;} }

.composer-tools {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line-2);
}
.composer-tools .send {
  background: var(--blue); color: #fff; font-weight: 600; font-size: 13.5px;
  border-radius: 9px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 7px;
}
.tool-ico { width: 30px; height: 30px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; color: var(--ink-3);
  border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; }
.composer-tools .spacer { flex: 1; }

/* keyboard hint chip floating near caret */
.kbd-hint {
  position: absolute; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500;
  padding: 7px 11px 7px 12px; border-radius: 10px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(4px) scale(.96); pointer-events: none;
  transition: transform .22s ease;
  white-space: nowrap;
}
.kbd-hint.show { opacity: 1; transform: translateY(0) scale(1); }
.kbd-hint::after {           /* little pointer */
  content: ""; position: absolute; top: -5px; left: 18px;
  width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}
kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: #fff;
}

/* ── The recreated HypaLinkr popup — faithful to the real extension ── */
.hl-popup {
  position: absolute; z-index: 7; width: 340px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
  overflow: hidden;
  opacity: 0; transform: scale(.97) translateY(-4px); transform-origin: top left;
  transition: transform .14s ease;
  pointer-events: none; font-family: var(--sans);
}
.hl-popup.show { opacity: 1; transform: scale(1) translateY(0); }

/* filter bar — three dropdown buttons */
.hl-filters { display: flex; align-items: center; gap: 5px; padding: 8px 10px;
  border-bottom: 1px solid #F3F4F6; }
.hl-filter {
  flex: 1; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 1px solid #E5E7EB; background: #fff; color: #6B7280;
  font-size: 12px; font-weight: 500; display: flex; align-items: center;
  justify-content: center; gap: 5px; min-width: 0; font-family: inherit;
  white-space: nowrap;
}
.hl-filter span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hl-filter svg { flex-shrink: 0; transition: transform .15s; }
.hl-filter.has-value { background: #111827; border-color: #111827; color: #fff; }
.hl-filter.open { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.hl-filter.open svg { transform: rotate(180deg); }

/* dropdown (shown when a filter is open) */
.hl-dropdown { border-bottom: 1px solid #F3F4F6; }
.hl-dropdown ul { list-style: none; padding: 4px; max-height: 180px; overflow-y: auto; }
.hl-ditem { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: #1F2937; cursor: pointer; transition: background .06s; }
.hl-ditem:hover, .hl-ditem.hot { background: #F5F5F5; }
.hl-ditem.active { color: #111827; font-weight: 600; }
.hl-dcheck { width: 14px; flex-shrink: 0; color: #3B82F6; text-align: center; }

/* results */
.hl-results { list-style: none; max-height: 232px; overflow: hidden; }
.hl-sec { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: #9CA3AF; padding: 7px 12px 3px; }
.hl-card {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  cursor: pointer; border-bottom: 1px solid #F9FAFB; transition: background .06s;
}
.hl-card:last-child { border-bottom: none; }
.hl-card[data-sel="1"] { background: #F5F3FF; }
.hl-title { font-size: 13px; font-weight: 500; color: #111827; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.hl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.hl-url { font-size: 11px; color: #9CA3AF; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hl-env { font-size: 10px; color: #D1D5DB; white-space: nowrap; flex-shrink: 0; letter-spacing: .01em; }
.hl-empty { padding: 12px; font-size: 12px; color: #9CA3AF; text-align: center; }
.hl-title mark, .hl-url mark { background: #FEF08A; color: inherit; border-radius: 2px; padding: 0 1px; }

/* replay control */
.demo-replay {
  position: absolute; right: 14px; bottom: -34px; z-index: 8;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-3); cursor: pointer; font-weight: 500;
  background: transparent; border: none; font-family: var(--sans);
  opacity: 0; transition: opacity .2s;
}
.demo-stage:hover .demo-replay { opacity: 1; }
.demo-replay:hover { color: var(--ink); }

/* ── works-in strip ───────────────────────────────────────── */
.worksin { margin-top: clamp(56px, 8vw, 84px); text-align: center; }
.worksin-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); }
.worksin-row { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.worksin-chip {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.worksin-chip .glyph { width: 8px; height: 8px; border-radius: 2px; }

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9DFEA; }
.step-num {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 9px;
}
.step-num::before { content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: var(--blue-bg); border: 1px solid #D6E3FD; display: inline-flex; flex-shrink: 0;
  background-position: center; }
.step h3 { font-size: 20px; margin-top: 18px; letter-spacing: -.02em; }
.step p { font-size: 15px; color: var(--ink-2); margin-top: 9px; }
.step-visual {
  margin-top: 20px; height: 116px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-soft); overflow: hidden; position: relative;
}

/* step 1 — keyboard */
.kbcap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.keycap {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 9px; padding: 11px 14px; box-shadow: var(--shadow-sm);
}
.keycap.hot { color: #fff; background: var(--blue); border-color: var(--blue-700);
  box-shadow: 0 2px 0 var(--blue-700), 0 8px 18px rgba(37,99,235,.3); }
.kbcap .plus { color: var(--ink-3); font-weight: 600; }

/* step 2 — filter chips + search */
.minfilters { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.minrow { display: flex; gap: 6px; }
.minchip { height: 24px; border-radius: 7px; font-size: 10.5px; display: flex; align-items: center;
  justify-content: center; padding: 0 10px; font-weight: 600; }
.minchip.k { background: #111827; color: #fff; }
.minchip.o { background: #fff; border: 1px solid var(--line); color: var(--ink-3); flex: 1; }
.minresult { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm); }
.minresult .t { font-size: 11.5px; font-weight: 600; }
.minresult .t mark { background: var(--mark); border-radius: 2px; }
.minresult .u { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }

/* step 3 — inserted link */
.mininsert { position: absolute; inset: 0; padding: 20px; font-size: 12.5px; line-height: 1.7;
  color: var(--ink-2); }
.mininsert a { color: var(--blue); font-weight: 600; border-bottom: 1.5px solid var(--blue-300); }
.mininsert .cur { display: inline-block; width: 2px; height: 1em; background: var(--blue);
  vertical-align: text-bottom; animation: blink 1.05s steps(1) infinite; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════════ */
.features-sec { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9DFEA; }
.feat-ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-bg); color: var(--blue); margin-bottom: 18px;
  border: 1px solid #DBE7FD;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 18.5px; letter-spacing: -.02em; }
.feat p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.feat .kbd-inline { font-family: var(--mono); font-size: 12px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-2); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   USE CASES
   ════════════════════════════════════════════════════════════ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.case {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-top { padding: 18px 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line-2); }
.case-logo { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.case-name { font-weight: 700; font-size: 16px; }
.case-name small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3);
  letter-spacing: 0; margin-top: 1px; }
.case-mock { background: var(--bg-soft); padding: 18px 20px; min-height: 150px; }
.mock-line { height: 9px; border-radius: 5px; background: #E4E8EF; margin-bottom: 9px; }
.mock-line.s { width: 55%; } .mock-line.m { width: 78%; }
.mock-reply { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px;
  margin-top: 14px; box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.mock-reply a { color: var(--blue); font-weight: 600; border-bottom: 1.5px solid var(--blue-300); }
.case-desc { padding: 16px 20px 20px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* ════════════════════════════════════════════════════════════
   SCRAPER
   ════════════════════════════════════════════════════════════ */
.scraper-sec { background: var(--bg-tint); border-top: 1px solid #E9E7F8; border-bottom: 1px solid #E9E7F8; }
.scraper-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.scraper-copy .feat-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feat-line { display: flex; gap: 13px; align-items: flex-start; }
.feat-line .tick { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  background: #fff; border: 1px solid #E4E1F5; display: flex; align-items: center; justify-content: center;
  color: var(--blue); }
.feat-line b { font-weight: 600; }
.feat-line p { font-size: 15px; color: var(--ink-2); margin-top: 2px; }

/* scraper visual = chat guide + virtual browser */
.scraper-visual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.sv-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(160deg,#4D8BFF,#2563EB);
  color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sv-head b { font-size: 14px; } .sv-head small { display: block; font-size: 11.5px; color: var(--ink-3); }
.sv-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.sv-url { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 9px 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.sv-bubble { font-size: 13px; line-height: 1.55; padding: 11px 13px; border-radius: 12px; max-width: 90%; }
.sv-bubble.bot { background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.sv-tree { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.sv-node { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; box-shadow: var(--shadow-sm); }
.sv-node .fold { color: var(--ink-3); }
.sv-node.child { margin-left: 22px; font-size: 12px; color: var(--ink-2); }
.sv-node .cnt { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  background: var(--bg-soft); padding: 1px 7px; border-radius: 20px; }
.sv-node .dotb { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.sv-actions { display: flex; gap: 8px; margin-top: 4px; }
.sv-btn { font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 9px; }
.sv-btn.p { background: var(--blue); color: #fff; }
.sv-btn.g { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 900px) { .scraper-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════ */
.cta-sec { padding: clamp(72px, 10vw, 120px) 0; }
.cta-card {
  background: linear-gradient(150deg, #16233B 0%, #0F1726 55%);
  border-radius: 28px; padding: clamp(44px, 6vw, 76px); text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% -10%, rgba(37,99,235,.5), transparent 60%);
}
.cta-card .glow2 { position: absolute; right: -10%; bottom: -40%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(91,141,239,.3), transparent 65%); pointer-events: none; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { color: #93B4FB; justify-content: center; }
.cta-card .eyebrow::before { background: #93B4FB; box-shadow: 0 0 0 4px rgba(147,180,251,.18); }
.cta-card h2 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.035em; margin-top: 18px;
  text-wrap: balance; max-width: 18ch; margin-inline: auto; }
.cta-card p { margin: 20px auto 0; max-width: 520px; font-size: 18.5px; color: #B9C2D4; }
.cta-card .hero-cta { margin-top: 38px; }
.cta-mini { margin-top: 20px; font-size: 13.5px; color: #8492A8; font-family: var(--mono); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand-name { font-size: 18px; }
.footer-tag { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  font-weight: 700; font-family: var(--mono); }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 12px; transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-base { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); }

/* ════════════════════════════════════════════════════════════
   TEST DRIVE (interactive sandbox)
   ════════════════════════════════════════════════════════════ */
.td-sec { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.td-kbd { font-family: var(--mono); font-size: .85em; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.td-stage { max-width: 760px; margin: clamp(40px,6vw,60px) auto 0; position: relative; }
.td-window { box-shadow: var(--shadow-lg); }
.td-composer { position: relative; min-height: 440px; padding-bottom: 24px; }
.td-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.td-toprow .composer-label { margin-bottom: 0; }
.td-controls { display: flex; gap: 8px; }
.td-clear, .td-open {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer;
  border-radius: 9px; padding: 7px 13px; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.td-clear { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.td-clear:hover { border-color: #D3D9E3; color: var(--ink); }
.td-open { background: var(--blue); border: 1px solid var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.3), 0 4px 12px rgba(37,99,235,.2); }
.td-open:hover { background: var(--blue-700); transform: translateY(-1px); }
.td-open.armed { background: var(--ink); border-color: var(--ink); box-shadow: none; }

.td-field {
  min-height: 120px; outline: none; cursor: text;
  border-radius: 10px; padding: 4px; margin: -4px;
  transition: box-shadow .15s;
}
.td-field:focus { box-shadow: 0 0 0 3px var(--blue-bg); }
.td-field a.ins {
  color: var(--blue); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--blue-300); padding-bottom: .5px;
}
.td-field a.ins:hover { background: var(--blue-bg); border-radius: 3px; }
.td-empty-caret { color: var(--ink-3); }

/* interactive popup */
.td-popup { pointer-events: auto; width: 340px; }
.td-typed { white-space: pre-wrap; }
.td-popup .hl-results { max-height: 200px; overflow-y: auto; }
.td-popup .hl-results::-webkit-scrollbar { width: 5px; }
.td-popup .hl-results::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 3px; }
.td-popup .hl-card:hover { background: #F5F3FF; }
.td-popup .hl-empty { padding: 16px 12px; font-size: 12.5px; color: #9CA3AF; text-align: center; }

.td-foot-note { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.td-foot-note.win { color: #16A34A; font-weight: 600; }

@media (max-width: 560px) {
  .td-controls { gap: 6px; }
  .td-open, .td-clear { padding: 7px 10px; }
}

/* content is visible by default (robust for capture / print / PDF / no-JS) */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
