:root {
  --red: #EE3124;
  --red-deep: #C8170C;
  --red-bright: #EA0000;
  --ink: #111111;
  --ink-2: #1C1C1E;
  --charcoal: #2A2A2D;
  --text: #2B2B2B;
  --muted: #6B6B70;
  --line: #E6E6E8;
  --soft: #F5F5F6;
  --white: #FFFFFF;
  --radius: 4px;
  --shadow: 0 14px 40px -18px rgba(17, 17, 17, .28);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 0;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(238, 49, 36, .7); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-admin {
  background: var(--ink); color: #fff; padding: 11px 18px; font-size: 11px;
}
.btn-admin:hover { background: var(--red); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.brand { display: flex; align-items: center; line-height: 1; }
.brand-logo { height: 46px; width: auto; }
.brand-light .brand-logo { height: 52px; filter: brightness(0) invert(1); }
.brand-mark {
  font-weight: 800; font-size: 34px; letter-spacing: -.02em; color: var(--ink);
  font-style: italic; transform: skewX(-4deg);
}
.brand-i { position: relative; color: var(--ink); }
.brand-dot {
  position: absolute; left: 50%; top: 2px; width: 9px; height: 9px;
  background: var(--red); transform: translateX(-30%) skewX(4deg); border-radius: 1px;
}
.brand-i { -webkit-text-stroke: 0; }
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-top: 3px; }
.brand-light .brand-mark, .brand-light .brand-i, .brand-light .brand-tag { color: #fff; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  position: relative; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--red); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Side tab ---------- */
.side-tab {
  position: fixed; right: 0; top: 50%; z-index: 40;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: var(--red); color: #fff;
  padding: 18px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: -4px 0 18px -6px rgba(0,0,0,.3);
  transition: padding .2s ease, background .2s;
}
.side-tab:hover { background: var(--red-deep); padding-right: 15px; }

/* ---------- Ribbon ---------- */
.demo-ribbon {
  background: var(--soft); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--text); padding: 9px 0; text-align: center;
}
.demo-ribbon .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ribbon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 30%, rgba(238,49,36,.22), transparent 60%),
    linear-gradient(135deg, #0E0E10 0%, #1B1B1E 55%, #26110F 100%);
  color: #fff;
  min-height: calc(100vh - 116px);
  display: flex; align-items: center;
  padding: 80px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow { fill: none; stroke: url(#fl); stroke-width: 1.6; stroke-dasharray: 8 14; animation: flow 6s linear infinite; }
.f2 { stroke-width: 1; animation-duration: 8s; opacity: .7; }
.f3 { stroke-width: 1.2; animation-duration: 7s; opacity: .8; }
.f4 { stroke-width: .8; animation-duration: 10s; opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -220; } }

.hero-fan {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; color: rgba(255,255,255,.07); pointer-events: none;
}
.hero-fan svg { width: 100%; height: 100%; }
.fan-blades { fill: currentColor; transform-origin: 100px 100px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  padding: 7px 14px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(238,49,36,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(238,49,36,0); } 100% { box-shadow: 0 0 0 0 rgba(238,49,36,0); } }

.hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em;
  margin: 26px 0 22px; text-transform: uppercase;
}
.hero h1 .red { text-transform: none; }
.hero .lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 560px; font-weight: 400; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hint { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.5); }

.scribble { position: absolute; right: 6%; bottom: 36px; z-index: 3; width: 420px; height: 420px; pointer-events: none; }
.scribble-text {
  position: absolute; left: 70px; top: 10px;
  font-family: var(--hand); font-size: 36px; font-weight: 700; color: #fff; transform: rotate(-6deg);
  white-space: nowrap;
}
.scribble-arrow { position: absolute; left: 0; top: 40px; width: 100%; height: calc(100% - 40px); overflow: visible; }
.scribble-arrow path { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.scribble-arrow path:first-child { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .6s ease forwards; }
.scribble-arrow path:last-child { opacity: 0; animation: fadein .3s 2.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Stats ---------- */
.stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; gap: 2px; }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .lbl { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow.light { color: #FF6A5E; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.rule { display: block; width: 64px; height: 4px; background: var(--red); margin-top: 22px; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-sub { margin-top: 22px; color: var(--muted); font-size: 16px; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.body-lg { font-size: 18px; line-height: 1.75; color: var(--text); }
.body-lg + .body-lg { margin-top: 18px; }
.muted { color: var(--muted); }

/* Solutions */
.solutions { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product {
  background: #fff; padding: 30px 26px 34px; position: relative; overflow: hidden;
  transition: background .25s ease;
}
.product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.product:hover::before { transform: scaleY(1); }
.product:hover { background: #FFFBFA; }
.p-num { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .14em; }
.product h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 12px 0 10px; line-height: 1.35; }
.product p { font-size: 14px; color: var(--muted); }
.industries { margin-top: 48px; display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.ind-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-top: 8px; min-width: 180px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.chips span { border: 1px solid #D6D6DA; background: #fff; padding: 7px 14px; font-size: 13px; font-weight: 500; transition: border-color .2s, color .2s; }
.chips span:hover { border-color: var(--red); color: var(--red); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(238,49,36,.08); color: var(--red); margin-bottom: 22px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* Trust (dark) */
.trust { background: var(--ink-2); color: #fff; }
.trust h2 { color: #fff; }
.card.dark { background: #232326; border-color: #34343A; }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.62); }
.card.dark .icon { background: rgba(238,49,36,.16); color: #FF6A5E; }
.trust-note { margin-top: 40px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); }
.trust-note svg { width: 22px; height: 22px; padding: 3px; background: var(--red); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* How */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: start; }
.step { text-align: left; }
.step-num {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 20px; margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.step:hover .step-num { background: var(--red); color: #fff; }
.step h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step-line { height: 2px; margin-top: 31px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); opacity: .5; }
.pillars { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 34px 30px 0 0; }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line); }
.pillar h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.pillar h4::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; vertical-align: middle; }
.pillar p { font-size: 14.5px; color: var(--muted); }

/* CTA */
.cta {
  background:
    radial-gradient(ellipse 60% 90% at 100% 100%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(120deg, var(--red-deep), var(--red));
  color: #fff;
}
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; text-transform: uppercase; }
.cta p { margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.88); max-width: 480px; }
.look { display: inline-block; margin-top: 26px; font-family: var(--hand); font-size: 34px; font-weight: 700; }
.look .arr { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(6px, 6px); } }
.try-asking { background: #fff; color: var(--ink); padding: 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.ta-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.try-asking ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.try-asking button {
  width: 100%; text-align: left; background: var(--soft); border: 1px solid transparent;
  padding: 13px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: border-color .2s, background .2s, color .2s;
}
.try-asking button::after { content: "\2398"; color: var(--muted); font-size: 15px; }
.try-asking button:hover { border-color: var(--red); background: #fff; color: var(--red); }
.try-asking button.copied { border-color: var(--red); background: rgba(238,49,36,.06); }
.try-asking button.copied::after { content: "\2713"; color: var(--red); }
.ta-foot { display: block; margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* Contact */
.contact { padding: 90px 0; background: var(--soft); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-left: 4px solid var(--red); padding-left: 32px; }
.contact h2 { font-size: clamp(26px, 3vw, 36px); }
.contact p { color: var(--muted); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 48px 0; border-top: 4px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.disclaimer { font-size: 13px; max-width: 620px; }
.powered { font-size: 13px; }
.powered a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--red); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow, .fan-blades, .pulse, .look .arr { animation: none; }
  .scribble-arrow path:first-child { stroke-dashoffset: 0; animation: none; }
  .scribble-arrow path:last-child { opacity: 1; animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .scribble { width: 320px; height: 320px; right: 3%; }
  .scribble-text { font-size: 30px; left: 40px; }
}
@media (max-width: 960px) {
  .main-nav, .header-inner > .btn-admin { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #fff; }
  .mobile-nav.open { max-height: 420px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 24px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn-admin { margin: 14px 24px 18px; justify-content: center; border: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-line { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 0; border-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .hero-fan { width: 420px; height: 420px; right: -160px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .header-inner { height: 66px; }
  .brand-logo { height: 38px; }
  .hero { min-height: auto; padding: 64px 0 220px; }
  .hero .lead { font-size: 16px; }
  .scribble { width: 240px; height: 240px; right: 2%; }
  .scribble-text { font-size: 24px; left: 10px; }
  .product-grid, .card-grid, .card-grid.four { grid-template-columns: 1fr; }
  .industries { flex-direction: column; gap: 12px; }
  .contact-inner { flex-direction: column; align-items: flex-start; padding-left: 20px; }
  .demo-ribbon { font-size: 11.5px; text-align: left; }
  .side-tab { padding: 14px 8px; font-size: 10px; }
  .stat { padding: 22px 16px; }
  .stat .num { font-size: 26px; }
}
