:root{
  --bg:#FFFFFF;
  --bg-soft:#F7F8FC;
  --ink:#12142B;
  --ink-muted:#5B5E76;
  --blue:#5468FF;
  --blue-deep:#3F52E8;
  --blue-tint:#EEF1FF;
  --line:#E7E9F2;
  --green:#1FAA6B;
  --green-tint:#E8F8F0;
  --red-muted:#D6584B;
  --red-tint:#FCEDEB;
  --radius:10px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Plus Jakarta Sans', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.mono{ font-family:'IBM Plex Mono', monospace; }
a{ color:inherit; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 28px; }

/* NAV */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px;
  max-width:1100px; margin:0 auto;
}
.logo{
  font-weight:800;
  font-size:19px;
  letter-spacing:-0.01em;
  display:flex; align-items:center; gap:9px;
  text-decoration:none;
  color:var(--ink);
}
.logo img{ height:28px; width:28px; display:block; }
.nav-links{ display:flex; gap:30px; font-size:14.5px; color:var(--ink-muted); font-weight:500; }
.nav-links a{ text-decoration:none; }
.nav-links a:hover{ color:var(--ink); }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--blue);
  color:#fff;
  font-weight:600;
  font-size:14.5px;
  padding:11px 20px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-family:'Plus Jakarta Sans', sans-serif;
  transition:transform .15s ease, background .15s ease;
}
.btn:hover{ background:var(--blue-deep); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-ghost:hover{ background:var(--bg-soft); }
@media (max-width:760px){ .nav-links{display:none;} }

/* HERO */
.hero{ padding:76px 0 60px; position:relative; overflow:hidden; }
.hero::before{
  content:"";
  position:absolute; left:-10%; right:-10%; top:-40px; height:480px;
  background-image: radial-gradient(var(--blue-tint) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, black 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, black 35%, transparent 75%);
  pointer-events:none;
  z-index:0;
}
.hero .wrap{ position:relative; z-index:1; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--blue-tint); color:var(--blue-deep);
  font-size:13px; font-weight:600;
  padding:7px 14px; border-radius:100px;
  margin-bottom:22px;
}
.badge::before{ content:"●"; font-size:8px; color:var(--green); }
h1{
  font-size:clamp(34px, 5vw, 54px);
  line-height:1.1;
  font-weight:800;
  margin:0 0 20px;
  letter-spacing:-0.02em;
  max-width:820px;
  color:var(--ink);
}
h1 span{ color:var(--blue); }
.lede{ font-size:18.5px; color:var(--ink-muted); max-width:560px; margin:0 0 32px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:56px; }

/* DEMO WIDGET */
.demo{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 40px -24px rgba(18,20,43,0.18);
}
.demo-bar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  background:var(--bg-soft);
}
.demo-search{
  flex:1; min-width:200px;
  display:flex; align-items:center; gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 14px;
  font-size:15px;
  color:var(--ink);
}
.demo-search svg{ flex-shrink:0; color:var(--ink-muted); }
.toggle{ display:flex; background:#fff; border:1px solid var(--line); border-radius:8px; padding:3px; gap:2px; }
.toggle button{
  font-size:13px; font-weight:600;
  padding:8px 14px;
  border:none; background:transparent; color:var(--ink-muted);
  border-radius:6px; cursor:pointer;
  transition:all .15s ease;
  white-space:nowrap;
  font-family:'Plus Jakarta Sans', sans-serif;
}
.toggle button.active{ background:var(--ink); color:#fff; }
.toggle button.active.good{ background:var(--green); }
.toggle button.active.bad{ background:var(--red-muted); }

.demo-body{ padding:24px; }
.demo-status{
  font-size:13.5px; font-weight:600;
  margin-bottom:16px;
  padding:10px 14px;
  border-radius:8px;
  display:inline-block;
}
.demo-status.bad{ background:var(--red-tint); color:var(--red-muted); }
.demo-status.good{ background:var(--green-tint); color:var(--green); }

.results{ display:grid; gap:9px; }
.result{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px;
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:8px;
  font-size:14.5px;
  opacity:0; transform:translateY(4px);
  animation:rise .35s ease forwards;
}
.result:nth-child(1){animation-delay:.02s;}
.result:nth-child(2){animation-delay:.08s;}
.result:nth-child(3){animation-delay:.14s;}
.result:nth-child(4){animation-delay:.20s;}
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
.result .name{ color:var(--ink); }
.result .name mark{ background:var(--blue-tint); color:var(--blue-deep); font-weight:700; padding:1px 3px; border-radius:3px; }
.result .tag{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-muted); }
.result.dim{ opacity:0.6 !important; }
.result.dim .tag{ color:var(--red-muted); }

/* BENEFITS strip */
.benefits{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  margin-top:56px;
}
@media (max-width:760px){ .benefits{ grid-template-columns:1fr 1fr; } }
.benefit{ background:#fff; padding:26px 22px; }
.benefit .icn{
  width:36px; height:36px; border-radius:9px;
  background:var(--blue-tint); color:var(--blue-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.benefit h4{ font-size:15px; margin:0 0 6px; font-weight:700; }
.benefit p{ margin:0; font-size:13.5px; color:var(--ink-muted); }

/* SECTION generic */
section{ padding:80px 0; }
section.soft{ background:var(--bg-soft); }
.kicker{ font-size:13px; font-weight:700; color:var(--blue-deep); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:14px; }
h2{ font-size:clamp(26px,3.4vw,34px); font-weight:800; margin:0 0 18px; max-width:640px; letter-spacing:-0.01em; }
.section-lede{ color:var(--ink-muted); font-size:16.5px; max-width:600px; margin-bottom:44px; }

.problem-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:48px; }
@media (max-width:760px){ .problem-grid{ grid-template-columns:1fr; } }
.problem-grid p{ color:var(--ink-muted); font-size:15.5px; }
.problem-grid strong{ color:var(--ink); }

.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:760px){ .stat-row{ grid-template-columns:1fr 1fr; } }
.stat .num{ font-size:32px; font-weight:800; color:var(--blue); letter-spacing:-0.01em; }
.stat .lbl{ font-size:13.5px; color:var(--ink-muted); margin-top:4px; }

/* SERVICES */
.services{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px){ .services{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .services{ grid-template-columns:1fr; } }
.service{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 22px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service:hover{ transform:translateY(-3px); box-shadow:0 16px 28px -20px rgba(18,20,43,0.22); border-color:var(--blue-tint); }
.service-num{
  width:32px; height:32px; border-radius:8px;
  background:var(--blue-tint); color:var(--blue-deep);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px;
  margin-bottom:16px;
}
.service h3{ font-size:16.5px; margin:0 0 8px; font-weight:700; }
.service p{ margin:0; color:var(--ink-muted); font-size:14px; }

/* ENGINE */
.engine{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
@media (max-width:760px){ .engine{ grid-template-columns:1fr; } }
.index-card{
  background:var(--ink); color:#fff;
  border-radius:14px; padding:24px;
  font-family:'IBM Plex Mono', monospace; font-size:13px;
}
.index-card .line{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.1); }
.index-card .line:last-child{ border-bottom:none; }
.index-card .k{ color:rgba(255,255,255,0.55); }
.index-card .v{ color:#8FE3BC; }

/* ICP */
.icp-table{ width:100%; border-collapse:collapse; }
.icp-table td{ padding:16px 0; border-bottom:1px solid var(--line); font-size:15px; }
.icp-table td:first-child{ color:var(--ink-muted); width:220px; font-weight:600; font-size:13.5px; }

.icp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:900px){ .icp-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .icp-grid{ grid-template-columns:1fr; } }
.icp-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.icp-label{ font-size:11.5px; color:var(--blue-deep); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:8px; }
.icp-card p{ margin:0; font-size:14.5px; color:var(--ink); line-height:1.5; }

/* REGEX BLOCK */
.regex-block{ margin-top:56px; }
.regex-copy{ max-width:760px; }
.regex-copy h3{ font-size:19px; margin:0 0 14px; font-weight:700; }
.regex-copy p{ color:var(--ink-muted); font-size:15px; margin:0 0 14px; }
.regex-copy code{
  background:var(--blue-tint); color:var(--blue-deep); padding:2px 6px; border-radius:4px;
  font-family:'IBM Plex Mono', monospace; font-size:13.5px;
}

/* VERTICALS */
.verticals{ margin-top:64px; }
.verticals h3{ font-size:19px; margin:0 0 12px; font-weight:700; }
.vertical-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:900px){ .vertical-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .vertical-grid{ grid-template-columns:1fr; } }
.vertical-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px 20px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vertical-card:hover{ transform:translateY(-3px); box-shadow:0 16px 28px -20px rgba(18,20,43,0.22); border-color:var(--blue-tint); }
.vertical-card .icn{
  width:34px; height:34px; border-radius:9px;
  background:var(--blue-tint); color:var(--blue-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.vertical-card h4{ font-size:15px; margin:0 0 8px; font-weight:700; }
.vertical-card p{ margin:0; font-size:13px; color:var(--ink-muted); line-height:1.5; }

/* ROI SIMULATOR */
.roi-simulator{ display:flex; flex-direction:column; gap:24px; }

.roi-inputs{
  background:var(--blue-tint);
  border:1px solid var(--blue);
  border-radius:16px;
  padding:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
@media (max-width:760px){ .roi-inputs{ grid-template-columns:1fr; gap:8px; } }
.roi-inputs h4{ font-size:13px; text-transform:uppercase; letter-spacing:0.05em; color:var(--blue-deep); margin:0 0 16px; font-weight:700; }
.roi-field{ margin-bottom:16px; }
.roi-field label{ display:block; font-size:13px; font-weight:600; color:var(--blue-deep); margin-bottom:6px; }
.roi-field input[type="number"]{
  width:100%; background:#fff; border:1px solid var(--blue); border-radius:8px;
  padding:10px 12px; font-size:14.5px; color:var(--ink); font-family:'Plus Jakarta Sans', sans-serif;
}
.roi-field input[type="number"]:focus{ outline:2px solid var(--blue-deep); outline-offset:1px; }
.roi-slider input[type="range"]{ width:100%; accent-color:var(--blue-deep); margin-top:4px; }
.roi-range-hint{ font-size:11.5px; color:var(--blue-deep); opacity:0.75; margin-top:4px; }

.roi-report{
  background:#fff;
  border:2px solid var(--blue);
  border-radius:16px;
  padding:28px;
  box-shadow:0 20px 40px -28px rgba(84,104,255,0.35);
}
.roi-report-title{ font-size:13px; text-transform:uppercase; letter-spacing:0.05em; color:var(--blue-deep); font-weight:700; margin-bottom:18px; }

.roi-highlights{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px; }
@media (max-width:760px){ .roi-highlights{ grid-template-columns:1fr 1fr; } }
.roi-highlight-tile{
  background:var(--blue-tint); border-radius:12px; padding:20px 18px;
}
.roi-highlight-tile .icn{
  width:32px; height:32px; border-radius:8px; background:var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.roi-highlight-value{ font-size:22px; font-weight:800; color:var(--blue-deep); letter-spacing:-0.01em; margin-bottom:4px; }
.roi-highlight-label{ font-size:12.5px; color:var(--ink-muted); }

.roi-secondary{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  padding-top:20px; border-top:1px solid var(--line);
}
@media (max-width:760px){ .roi-secondary{ grid-template-columns:1fr 1fr; } }
.roi-secondary-label{ font-size:12px; color:var(--ink-muted); margin-bottom:6px; }
.roi-secondary-value{ font-size:17px; font-weight:700; color:var(--ink); }

/* BLOG */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .blog-grid{ grid-template-columns:1fr; } }
.blog-card{
  display:block; background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:24px; text-decoration:none; color:var(--ink);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover{ transform:translateY(-3px); box-shadow:0 16px 28px -20px rgba(18,20,43,0.22); border-color:var(--blue-tint); }
.blog-date{ font-size:12px; color:var(--blue-deep); margin-bottom:10px; }
.blog-card h3{ font-size:16.5px; margin:0 0 10px; font-weight:700; line-height:1.35; }
.blog-card p{ margin:0 0 16px; font-size:13.5px; color:var(--ink-muted); line-height:1.55; }
.blog-link{ font-size:13.5px; font-weight:600; color:var(--blue-deep); }
.blog-cta{ margin-top:32px; text-align:center; }

/* BLOG INDEX PAGE HERO */
.blog-hero{ padding:64px 0 48px; border-bottom:1px solid var(--line); }
.blog-hero h1{ font-size:clamp(30px,4.4vw,44px); }
.blog-index-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .blog-index-grid{ grid-template-columns:1fr; } }

/* ARTICLE / POST */
.post{ padding:56px 0 90px; }
.post-wrap{ max-width:700px; }
.back-link{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--blue-deep); text-decoration:none; margin-bottom:28px; }
.back-link:hover{ text-decoration:underline; }
.post h1{ font-size:clamp(28px,4.4vw,40px); margin-bottom:14px; }
.post-lede{ font-size:18px; color:var(--ink-muted); margin-bottom:36px; }
.post-body{ font-size:16.5px; line-height:1.75; color:var(--ink); }
.post-body p{ margin:0 0 22px; }
.post-body h2{ font-size:23px; margin:40px 0 16px; max-width:none; }
.post-body h3{ font-size:18px; margin:32px 0 12px; font-weight:700; }
.post-body ul, .post-body ol{ margin:0 0 22px; padding-left:22px; }
.post-body li{ margin-bottom:8px; }
.post-body strong{ color:var(--ink); }
.post-body blockquote{
  margin:28px 0; padding:4px 0 4px 20px; border-left:3px solid var(--blue);
  color:var(--ink-muted); font-size:16px; font-style:italic;
}
.post-footer-cta{
  margin-top:56px; padding:28px; background:var(--bg-soft); border:1px solid var(--line);
  border-radius:14px; text-align:center;
}
.post-footer-cta p{ margin:0 0 16px; color:var(--ink-muted); }

/* CTA */
.cta-section{ text-align:center; padding:88px 0; }
.cta-section h2, .cta-section .section-lede{ margin-left:auto; margin-right:auto; }
.cta-form{
  max-width:480px; margin:0 auto;
  display:flex; flex-direction:column; gap:12px;
  text-align:left;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:28px;
  box-shadow:0 20px 40px -28px rgba(18,20,43,0.16);
}
.cta-form label{ font-size:13px; font-weight:600; color:var(--ink-muted); }
.cta-form input, .cta-form textarea{
  width:100%;
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 13px;
  color:var(--ink);
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:14.5px;
}
.cta-form input:focus, .cta-form textarea:focus{ outline:2px solid var(--blue); outline-offset:1px; }
.cta-form button{ margin-top:6px; justify-content:center; }
.form-note{ font-size:12.5px; color:var(--ink-muted); text-align:center; margin-top:14px; }
#form-feedback{ font-size:13.5px; font-weight:600; text-align:center; margin-top:4px; display:none; }
.contact-direct{ font-size:13.5px; color:var(--ink-muted); text-align:center; margin-top:10px; }
.contact-direct a{ color:var(--blue-deep); font-weight:600; text-decoration:none; }
.contact-direct a:hover{ text-decoration:underline; }

footer{ padding:40px 0; border-top:1px solid var(--line); }
.foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; align-items:center; }
.foot-legal{ color:var(--ink-muted); font-size:12.5px; line-height:1.7; max-width:520px; }
.foot-links{ display:flex; gap:18px; font-size:13px; font-weight:600; }
.foot-links a{ text-decoration:none; color:var(--ink-muted); }
.foot-links a:hover{ color:var(--blue-deep); }

::selection{ background:var(--blue-tint); color:var(--blue-deep); }
:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }

/* SCROLL REVEAL */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  .reveal{ opacity:1; transform:none; }
}
