/* Add Blitz CRM — public site. Graphite, glass, amber. */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #101215;
  --bg-3: #16191d;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.72);
  --ink-3: rgba(245, 245, 247, 0.5);
  --amber: #ff7a1a;
  --amber-2: #ff9a4d;
  --amber-ink: #1a0e04;
  --amber-glow: rgba(255, 122, 26, 0.35);
  --ok: #3ddc97;
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(10, 11, 13, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { height: 26px; width: auto; }
.logo span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--amber-2); padding-top: 2px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--glass); }
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 0; flex: none; }
.lang a { font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink-3); padding: 6px 10px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--glass-2); color: var(--ink); }
.lang span { color: var(--ink-3); opacity: .5; font-size: 12px; }
@media (max-width: 1180px) { .header .nav { display: none; } .header .lang { margin-left: auto; } }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 10px 30px -10px var(--amber-glow); }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 14px 40px -10px var(--amber-glow); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 74px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); line-height: 1.5; max-width: 40em; }
.muted { color: var(--ink-3); }
.grad { background: linear-gradient(100deg, #fff 10%, #ffd0a8 55%, var(--amber-2) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: clamp(84px, 12vw, 160px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: clamp(100px, 10vw, 128px) 0 clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none;
  background: radial-gradient(50% 50% at 70% 30%, rgba(255, 122, 26, 0.22), transparent 70%), radial-gradient(40% 40% at 15% 10%, rgba(255, 170, 110, 0.08), transparent 70%); }
.hero-copy { position: relative; text-align: center; max-width: 1060px; margin: 0 auto; }
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lead { margin: 0 auto; max-width: 760px; font-size: clamp(17px, 1.6vw, 20px); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.hero-visual { position: relative; margin: clamp(32px, 4vw, 48px) auto 0; max-width: 1180px; }
.frame { position: relative; border-radius: var(--radius-lg); padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4), 0 30px 120px -50px var(--amber-glow); }
.frame img { border-radius: calc(var(--radius-lg) - 10px); width: 100%; background: var(--bg-3); }
.frame-phone { position: absolute; right: -2%; bottom: -8%; width: 27%; min-width: 150px; border-radius: 44px; padding: 9px; background: linear-gradient(180deg, #2a2d33, #121418);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.85); }
.frame-phone img { border-radius: 36px; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(80px, 10vw, 120px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.fact { background: var(--bg-2); padding: 26px 28px; }
.fact b { display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.fact span { color: var(--ink-3); font-size: 15px; }

/* ---------- how it works ---------- */
.how { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); min-height: 34vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .5s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.active { opacity: 1; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: var(--amber-2);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,122,26,.4); display: flex; align-items: center; justify-content: center; background: rgba(255,122,26,.08); }
.step p { margin: 10px 0 0; color: var(--ink-2); }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--ink); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.35); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.step-img { display: none; margin-top: 20px; }
.stage { position: sticky; top: 96px; }
.stage .frame { padding: 8px; }
.stage-imgs { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--bg-3); }
.stage-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform .9s var(--ease); border-radius: 0; }
.stage-imgs img.on { opacity: 1; transform: none; }
.stage-caption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------- control ---------- */
.control { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 52px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%231a0e04' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature.wide { grid-column: span 3; }
.feature .txt { padding: 26px 26px 20px; }
.feature p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.feature .shot { margin-top: auto; padding: 0 0 0 26px; }
.feature .shot img { border-radius: 14px 0 0 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.feature:not(.wide) .shot img { aspect-ratio: 4 / 3; }
/* the phone-layout card: the top of the CRM phone screen */
.feature .shot-phone { padding: 0 16px; display: flex; justify-content: center; }
.feature .shot-phone img { width: min(300px, 92%); aspect-ratio: auto; max-height: 470px; object-position: center top; border-radius: 28px 28px 0 0; border: 1px solid var(--line-2); border-bottom: 0; }

/* ---------- status ---------- */
.status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.status-item { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.status-item .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.live { color: var(--ok); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); }
.tag.pilot { color: var(--amber-2); background: rgba(255,122,26,.1); border: 1px solid rgba(255,122,26,.35); }
.status-item p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line-2); aspect-ratio: 16 / 9;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 20px 100px -60px var(--amber-glow); }
.player video, .player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player video { background: #000; }
.player .poster { border: 0; padding: 0; margin: 0; cursor: pointer; background: #000; display: block; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform 1.2s var(--ease); }
.player .poster:hover img { opacity: .95; transform: scale(1.01); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px 16px 18px; border-radius: 999px;
  background: rgba(10,11,13,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); color: #fff; font: 600 17px/1 var(--font); white-space: nowrap; }
.play i { width: 44px; height: 44px; border-radius: 50%; background: var(--amber); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px var(--amber-glow); }
.play i svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--amber-ink); }
.player.started .poster { display: none; }
.video-meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.chapters { list-style: none; margin: 0; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.chapters h3 { font-size: 15px; letter-spacing: 0; color: var(--ink-3); font-weight: 600; padding: 10px 12px 6px; }
.chapters button { width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left; padding: 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); font: 500 16px/1.3 var(--font); cursor: pointer; }
.chapters button:hover { background: var(--glass); color: var(--ink); }
.chapters button.on { background: rgba(255,122,26,.12); color: var(--ink); }
.chapters time { font-variant-numeric: tabular-nums; color: var(--amber-2); font-size: 14px; min-width: 38px; }
.transcript { margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.transcript summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font-size: 22px; color: var(--ink-3); font-weight: 400; }
.transcript[open] summary::after { content: "–"; }
.transcript .body { padding: 0 22px 22px; columns: 2 380px; column-gap: 40px; }
.transcript h4 { margin: 18px 0 6px; font-size: 14px; color: var(--amber-2); letter-spacing: .02em; break-after: avoid; }
.transcript p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; break-inside: avoid; }
.transcript p button { all: unset; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; margin-right: 8px; }
.transcript p button:hover { color: var(--amber-2); }

/* ---------- demo ---------- */
.demo { text-align: center; position: relative; overflow: hidden; }
.demo::before { content: ""; position: absolute; left: 50%; top: 40%; width: 1100px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,122,26,.18), transparent); pointer-events: none; }
.demo .card { position: relative; max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line-2); backdrop-filter: blur(20px); }
.demo .lead { margin: 20px auto 0; }
.demo .alt { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.demo .alt a { color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 28px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--amber-2); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .stage-imgs img { transition: none; }
  .feature, .btn { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .how-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 32px 0 32px 0; }
  .step::before { position: static; transform: none; margin-bottom: 16px; }
  .step-img { display: block; }
  .step-img img { border-radius: 16px; border: 1px solid var(--line-2); width: 100%; }
  .control { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.wide { grid-column: span 1; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .header .lang, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 64px 0 auto 0; z-index: 49; background: rgba(10,11,13,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
  .mobile-nav.open { display: block; }
  .mobile-nav a.link { display: block; padding: 14px 4px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav .row { display: flex; flex-direction: column; gap: 14px; align-items: stretch; margin-top: 18px; }
  .mobile-nav .lang { display: flex; justify-content: space-between; }
  .mobile-nav .lang span { display: none; }
  .mobile-nav .lang a { flex: 1; justify-content: center; }
  .mobile-nav .lang a { font-size: 15px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-nav .row .btn { width: 100%; --h: 48px; font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .status { grid-template-columns: 1fr; }
  .frame-phone { display: none; }
  .frame { padding: 6px; border-radius: 20px; }
  .frame img { border-radius: 15px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .feature .shot img { aspect-ratio: 4 / 3; }
  .feature .shot-phone img { aspect-ratio: auto; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 88px; }
  h1 { font-size: 34px; letter-spacing: -0.03em; }
  .hero-copy { text-align: left; }
  .hero-copy h1 { margin: 12px 0 14px; }
  .hero-copy .lead { font-size: 16px; }
  .cta-row { justify-content: flex-start; flex-wrap: nowrap; margin-top: 20px; gap: 10px; }
  .cta-row .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; --h: 46px; }
  .hero-note { font-size: 13px; margin-top: 10px; }
  .hero-visual { margin-top: 22px; }
  .demo .cta-row { flex-wrap: wrap; }
  .demo .cta-row .btn { flex: 1 1 100%; }
  .transcript .body { columns: 1; }
  .play { padding: 10px 16px 10px 10px; font-size: 14px; gap: 10px; }
  .play i { width: 36px; height: 36px; }
}
