/* FrontBox AI public website. Buildless, dependency-free, dark palette of the demo video. */
:root {
  --bg: #0B1220;
  --bg-deep: #070C17;
  --panel: #111A2E;
  --panel-2: #15213A;
  --border: #22314F;
  --text: #E6EDF7;
  --muted: #A7B4C8;
  --amber: #F5A524;
  --amber-soft: rgba(245, 165, 36, 0.14);
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #EF4444;
  --violet: #A78BFA;
  --sky: #7CC4FF;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #FFC35C; }
code { font-family: var(--mono); font-size: .86em; background: rgba(124, 196, 255, .08); border: 1px solid rgba(124, 196, 255, .18); color: #CFE6FF; padding: .05em .4em; border-radius: 6px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: calc(var(--max) + 32px); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .shell { padding-inline: 28px; max-width: calc(var(--max) + 56px); } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #111; }

/* Header */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
.brand-symbol { width: 32px; height: 32px; color: var(--amber); flex: none; }
.brand-ai { color: var(--amber); margin-left: 4px; }
.desktop-nav { display: none; gap: 26px; }
.desktop-nav a, .login-link { color: var(--muted); text-decoration: none; font-size: .95rem; }
.desktop-nav a:hover, .login-link:hover { color: var(--text); }
@media (min-width: 980px) { .desktop-nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.button-amber { background: var(--amber); color: #111827; box-shadow: 0 10px 30px -10px rgba(245, 165, 36, .6); }
.button-amber:hover { background: #FFB53D; color: #111827; }
.button-ghost, .button-dark { background: rgba(230, 237, 247, .04); color: var(--text); border-color: var(--border); }
.button-ghost:hover, .button-dark:hover { border-color: var(--muted); color: var(--text); }
.play { width: 18px; height: 18px; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.5; }
.tag-live { color: #4ADE80; border-color: rgba(34, 197, 94, .45); background: var(--green-soft); }
.tag-old { color: #FCD34D; border-color: rgba(245, 165, 36, .45); background: var(--amber-soft); }
.tag-ci { color: #93C5FD; border-color: rgba(124, 196, 255, .4); background: rgba(124, 196, 255, .1); }
.tag-src { color: #C4B5FD; border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .12); }
.tag-note { color: #CBD5E1; border-color: rgba(148, 163, 184, .45); background: rgba(148, 163, 184, .1); }
.tag-red { color: #FCA5A5; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .12); }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -76px; padding-top: 76px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(60% 55% at 72% 48%, rgba(245, 165, 36, .16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(167, 139, 250, .10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(34, 49, 79, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 49, 79, .45) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 80%); pointer-events: none; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 65%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 65%); }
@media (max-width: 999px) { .hero-field { opacity: .3; } }
.field-links path { stroke-dashoffset: 0; animation: flowDash 6s linear infinite; }
.field-dots circle { animation: blink 3.2s ease-in-out infinite; }
.field-dots circle:nth-child(2n) { animation-delay: .8s; }
.field-dots circle:nth-child(3n) { animation-delay: 1.6s; }
.field-ring { transform-origin: 860px 400px; animation: ring 2.8s var(--ease) infinite; }
@keyframes flowDash { to { stroke-dashoffset: -100; } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: 48px 72px; align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow-line { display: inline-block; width: 28px; height: 2px; background: var(--amber); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.h1-line { display: block; }
.accent-text { background: linear-gradient(90deg, var(--amber), #FFD08A 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: 24px; max-width: 40rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions-center { justify-content: center; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* Flow card */
.flow-card { background: linear-gradient(180deg, rgba(17, 26, 46, .92), rgba(11, 18, 32, .92)); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.flow-head p { font-weight: 700; font-size: .98rem; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border); }
.flow-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; }
.flow-dot { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .9rem; background: var(--amber); color: #111827; border: 2px solid var(--amber); transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s; }
.flow-text { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.flow-text b { font-size: 1rem; transition: color .35s; }
.flow-text small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.flow-step-final .flow-dot { background: var(--green); border-color: var(--green); }
.flow-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }

/* JS-driven flow states: only when JS runs and motion is allowed */
.js .flow[data-animate] .flow-dot { background: var(--panel-2); color: var(--muted); border-color: var(--border); }
.js .flow[data-animate] .flow-text b { color: var(--muted); }
.js .flow[data-animate] .flow-step.is-lit .flow-dot { background: var(--amber); color: #111827; border-color: var(--amber); box-shadow: 0 0 0 6px rgba(245, 165, 36, .16); }
.js .flow[data-animate] .flow-step.is-lit .flow-text b { color: var(--text); }
.js .flow[data-animate] .flow-step-final.is-lit .flow-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 8px rgba(34, 197, 94, .2); }
.js .flow[data-animate] .flow-step.is-current .flow-dot { box-shadow: 0 0 0 8px rgba(245, 165, 36, .22), 0 0 28px rgba(245, 165, 36, .55); }

/* Sections */
.band { padding-block: 88px; }
@media (max-width: 720px) { .band { padding-block: 64px; } }
.section-head { max-width: 48rem; margin-bottom: 40px; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.kicker { color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.band h2, .closing h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 20px; }

/* Stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 26px 22px; background: linear-gradient(180deg, var(--panel), rgba(17, 26, 46, .5)); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--amber), transparent); }
.stat-num { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.unit { font-size: .45em; color: var(--muted); font-weight: 700; }
.stat-label { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.levels { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 16px 18px; border: 1px dashed var(--border); border-radius: 12px; }
.levels div { display: flex; align-items: center; gap: 10px; }
.levels dt, .levels dd { margin: 0; }
.levels dd { color: var(--muted); font-size: .9rem; }

/* Watch */
.watch { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .watch { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.watch-thumb { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.watch-thumb img { width: 100%; transition: transform .6s var(--ease); }
.watch-thumb:hover img { transform: scale(1.02); }
.watch-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--amber); color: #111827; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(245, 165, 36, .25), 0 12px 40px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.watch-play svg { width: 34px; height: 34px; margin-left: 4px; }
.watch-thumb:hover .watch-play, .watch-thumb:focus-visible .watch-play { transform: scale(1.08); }
.watch-copy p:not(.kicker) { color: var(--muted); margin: 16px 0 24px; }

/* Problem */
.problem-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.problem-grid li { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.problem-grid h3 { font-size: 1.12rem; margin-bottom: 8px; }
.problem-grid p { color: var(--muted); font-size: .96rem; }
.story { margin: 32px 0 0; padding: 28px; border-radius: 20px; border: 1px solid rgba(167, 139, 250, .35); background: linear-gradient(135deg, rgba(167, 139, 250, .1), rgba(17, 26, 46, .6)); }
.story-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.story blockquote { margin: 0; }
.story blockquote p { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.5; }
.story figcaption { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.story-compare { display: grid; gap: 12px; margin-top: 22px; }
.cmp { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; }
.cmp-num { font-weight: 800; font-family: var(--mono); }
.cmp-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: inherit; }
.cmp-old .cmp-bar i { width: 100%; background: var(--red); }
.cmp-new .cmp-bar i { width: 2%; min-width: 10px; background: var(--green); }
.cmp-old .cmp-num { color: #FCA5A5; }
.cmp-new .cmp-num { color: #4ADE80; }
.cmp-label { color: var(--muted); font-size: .85rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: none; }
.timeline li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); position: relative; }
.t-num { flex: none; font-family: var(--mono); font-weight: 700; color: var(--amber); font-size: 1.05rem; padding-top: 1px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: .94rem; }
.timeline li:last-child { border-color: rgba(34, 197, 94, .45); }
.timeline li:last-child .t-num { color: var(--green); }
.callout { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .06); color: var(--text); }

/* Crew */
.band-crew { position: relative; }
.crew-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .crew-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.crew-copy h2 { margin-bottom: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); border: 1px solid rgba(34, 197, 94, .5); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; width: min(320px, 100%); border-radius: 40px; padding: 14px; background: #05080F; border: 2px solid #2B3A5A; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(245, 165, 36, .06), 0 0 80px rgba(34, 197, 94, .12); }
.phone-notch { width: 110px; height: 22px; border-radius: 0 0 14px 14px; background: #05080F; margin: -14px auto 6px; position: relative; z-index: 2; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px 18px 0 0; background: #13261F; }
.phone-bar b { display: block; font-size: .92rem; }
.phone-bar small { display: block; color: #9FD8B5; font-size: .72rem; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #111827; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.chat { min-height: 360px; padding: 14px 10px 18px; border-radius: 0 0 26px 26px; background: radial-gradient(circle at 20% 10%, rgba(34, 197, 94, .06), transparent 50%), #0C1512; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.bubble-in { align-self: flex-start; background: #1B2A24; border-top-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: #155C3B; border-top-right-radius: 4px; font-weight: 600; }
.b-tag { display: block; font-size: .72rem; font-weight: 800; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.b-time { display: block; text-align: right; font-size: .66rem; color: #93A79C; margin-top: 4px; }
.chat-buttons { display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; }
.cb { flex: 1 1 auto; text-align: center; padding: 8px 10px; border-radius: 10px; background: #1B2A24; color: #7EE2A8; font-size: .84rem; font-weight: 600; border: 1px solid rgba(126, 226, 168, .18); }
.cb-accept { background: var(--green); color: #052E16; border-color: var(--green); }
.phone-caption { color: var(--muted); font-size: .82rem; text-align: center; }
.js .phone-wrap[data-animate] .msg-late { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .phone-wrap[data-animate].is-in .msg-late { opacity: 1; transform: none; }
.js .phone-wrap[data-animate] .cb-accept { transition: transform .25s, box-shadow .25s; }
.js .phone-wrap[data-animate].is-in .cb-accept { animation: tap .6s .8s var(--ease) both; }
.js .phone-wrap[data-animate].is-in .bubble-out.msg-late { transition-delay: 1.2s; }
.js .phone-wrap[data-animate].is-in .bubble-in.msg-late { transition-delay: 1.9s; }
.js .phone-wrap[data-animate].is-in .chat-buttons.msg-late { transition-delay: 2.4s; }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(.92); box-shadow: 0 0 0 10px rgba(34, 197, 94, .3); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.shots { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.shot img { width: 100%; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 16px 18px; color: var(--muted); font-size: .92rem; }
.shot figcaption b { color: var(--text); }
.shot figcaption .tag { margin-top: 8px; }
.shot-wide { margin-top: 24px; }
@media (min-width: 860px) { .shot-wide { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; } .shot-wide img { border-bottom: 0; border-right: 1px solid var(--border); } }

/* Industries */
.ind-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ind { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.ind h3 { font-size: 1.12rem; }
.ind-map { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.arrow { color: var(--amber); font-weight: 700; }
.ind-note { color: var(--muted); font-size: .88rem; }
.ind-hot { border-color: rgba(245, 165, 36, .55); background: linear-gradient(180deg, rgba(245, 165, 36, .1), var(--panel)); }

/* Guardrails */
.guard-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guard-grid li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.g-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(167, 139, 250, .14); color: #C4B5FD; font-family: var(--mono); font-weight: 700; margin-bottom: 14px; }
.guard-grid h3 { font-size: 1.08rem; margin-bottom: 8px; }
.guard-grid p { color: var(--muted); font-size: .94rem; }
.eval { margin-top: 32px; padding: 26px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), rgba(17, 26, 46, .4)); }
.eval-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.eval-head h3 { font-size: 1.15rem; }
.eval .fine { margin-top: 10px; }
.bars { margin: 22px 0 0; display: grid; gap: 18px; }
.bar-row { display: grid; gap: 8px; }
@media (min-width: 760px) { .bar-row { grid-template-columns: 220px 1fr; align-items: center; gap: 20px; } }
.bar-row dt { font-weight: 600; font-size: .95rem; }
.bar-row dd { margin: 0; display: grid; gap: 6px; }
.bar { position: relative; display: block; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; transition: width 1.2s var(--ease); }
.bar-fb::before { background: linear-gradient(90deg, rgba(245, 165, 36, .55), var(--amber)); }
.bar-base::before { background: rgba(148, 163, 184, .35); }
.bar span { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding-left: 10px; font-family: var(--mono); font-size: .8rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); white-space: nowrap; }
.bar-fb span { color: #fff; }
.js .eval[data-animate]:not(.is-in) .bar::before { width: 0; }

/* AWS wall */
.aws-wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.layer { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.layer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.layer-cds { grid-column: 1 / -1; border-color: rgba(245, 165, 36, .55); background: linear-gradient(135deg, rgba(245, 165, 36, .14), var(--panel) 70%); }
.layer-cds h3 { color: var(--amber); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.chip-cds { border-color: rgba(245, 165, 36, .55); background: rgba(245, 165, 36, .08); font-size: 1rem; padding: 10px 16px; }
.chip-ai { border-color: rgba(167, 139, 250, .45); }

/* Today */
.today { display: grid; gap: 28px; padding: 32px; border-radius: 22px; border: 1px solid var(--border); background: var(--panel); }
@media (min-width: 900px) { .today { grid-template-columns: .7fr 1.3fr; gap: 48px; } }
@media (max-width: 520px) { .today { padding: 22px; } }
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.limits li { color: var(--muted); display: grid; gap: 6px 16px; align-items: start; }
.limits li .tag { justify-self: start; }
@media (min-width: 600px) { .limits li { grid-template-columns: 140px 1fr; } .limits li .tag { margin-top: 3px; } }

/* Closing */
.closing { padding-block: 96px; text-align: center; background: radial-gradient(50% 80% at 50% 100%, rgba(245, 165, 36, .18), transparent 70%), var(--bg-deep); border-top: 1px solid var(--border); }
.closing p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* Footer */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.footer-top p { color: var(--muted); font-size: .92rem; }
.sponsor { font-family: var(--mono); }
.footer-back { color: var(--muted); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .9rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: var(--text); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }
.compact-footer { padding-top: 28px; }

/* Document pages (privacy, 404) */
.document-header { border-bottom: 1px solid var(--border); }
.document-page { max-width: 820px; padding-block: 56px 80px; }
.document-page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 18px; }
.document-page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.document-page p { color: var(--muted); margin-bottom: 12px; }
.document-page .document-lede { font-size: 1.15rem; color: var(--text); }
.document-updated { font-size: .9rem; margin-top: 28px; }
.document-page .button { margin-top: 24px; align-self: flex-start; }
.error-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.error-number { font-family: var(--mono); color: var(--amber) !important; font-weight: 700; letter-spacing: .08em; }
.error-number span { color: var(--muted); }

/* Reveal on scroll: hidden only when JS runs and motion is allowed */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { gap: 12px; }
  .stat { padding: 18px 14px; }
  .stat-label { font-size: .86rem; }
  .button { width: 100%; }
  .header-actions .button { width: auto; }
  .flow-card { padding: 18px 16px; }
  .story, .eval { padding: 20px; }
  .cmp { grid-template-columns: 64px 1fr; }
  .cmp-label { grid-column: 2; }
  .watch-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
@media (max-width: 400px) {
  .header-actions .button span:first-child { font-size: .85rem; }
  .brand { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .phone-wrap[data-animate] .msg-late { opacity: 1; transform: none; }
  .js .eval[data-animate]:not(.is-in) .bar::before { width: var(--w); }
  .field-ring { opacity: .6; }
}

/* ---- Revision 2026-10-28b: scene rhythm, hero stat, balanced grids, title card, flow rail ---- */
.band { padding-block: 76px; }
@media (max-width: 720px) { .band { padding-block: 56px; } }
.band-proof { padding-top: 64px; }

/* Proof strip: one hero number */
.stat .tag { white-space: nowrap; }
.stat-hero .stat-num { font-size: clamp(3.6rem, 8vw, 6rem); background: linear-gradient(100deg, var(--amber), #FFE3B0 60%, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-hero .stat-num .unit { color: inherit; }
.stat-hero { border-color: rgba(245, 165, 36, .5); background: radial-gradient(80% 90% at 0% 0%, rgba(245, 165, 36, .16), transparent 70%), var(--panel); justify-content: center; }
.stat-hero .stat-label { color: var(--text); font-size: 1.05rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat-hero { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(5, 1fr); } .stat-hero { grid-column: span 2; } }
@media (max-width: 639px) { .stats { grid-template-columns: 1fr; } }

/* How it works: 4 + 3 with a wide final card; guardrails 3 + 3 */
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, 1fr); } .timeline li:last-child { grid-column: span 2; } .guard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .timeline { grid-template-columns: repeat(4, 1fr); } .guard-grid { grid-template-columns: repeat(3, 1fr); } }
.timeline li:last-child { background: linear-gradient(135deg, rgba(34, 197, 94, .1), var(--panel) 60%); }

/* Screenshots: images are cropped, one caption in HTML */
.shots { align-items: start; }
.shot-full { margin-top: 28px; }
.shot-full img { width: 100%; }

/* AWS wall: 3 + 2 balanced */
@media (min-width: 640px) { .aws-wall { grid-template-columns: repeat(2, 1fr); } .aws-wall .layer:last-child { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .aws-wall { grid-template-columns: repeat(6, 1fr); } .aws-wall .layer { grid-column: span 2; } .aws-wall .layer:nth-last-child(-n+2) { grid-column: span 3; } .aws-wall .layer-cds { grid-column: 1 / -1; } }
.chip-cds { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.chip-cds small { grid-column: 2; }
.chip-ic { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Industries */
.ind-glyph { width: 32px; height: 32px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ind-hot { border-top: 3px solid var(--amber); }
.ind-flag { align-self: flex-start; }

/* Hero flow: lit rail and ASSIGNED badge */
.flow::after { content: ""; position: absolute; left: 17px; top: 18px; width: 2px; height: calc((100% - 36px) * var(--p, 1)); background: linear-gradient(180deg, var(--amber), var(--green)); box-shadow: 0 0 10px rgba(245, 165, 36, .6); transition: height .6s var(--ease); }
.badge-assigned { display: inline-block; margin-left: 8px; vertical-align: 2px; font-family: var(--mono); font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; color: #052E16; background: var(--green); box-shadow: 0 0 16px rgba(34, 197, 94, .55); }
.js .flow[data-animate] .flow-step { transition: opacity .35s; }
.js .flow[data-animate] .flow-step:not(.is-lit) { opacity: .62; }
.js .flow[data-animate] .badge-assigned { opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s var(--ease); }
.js .flow[data-animate].is-done .badge-assigned { opacity: 1; transform: none; animation: assignedGlow 1.4s ease-out 1; }
@keyframes assignedGlow { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .9); } 60% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0), 0 0 24px rgba(34, 197, 94, .8); } 100% { box-shadow: 0 0 16px rgba(34, 197, 94, .55); } }

/* Demo title card (no third-party embed) */
.watch-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: clamp(260px, 32vw, 400px); padding: 36px 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); color: var(--text); text-decoration: none; background: radial-gradient(55% 75% at 85% 15%, rgba(245, 165, 36, .2), transparent 65%), radial-gradient(45% 60% at 10% 100%, rgba(34, 197, 94, .12), transparent 70%), linear-gradient(160deg, #111A2E, #0B1220); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.wc-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.wc-eyebrow { color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wc-title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 13ch; }
.wc-title em { font-style: normal; background: linear-gradient(90deg, var(--amber), #FFD08A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-pill { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(5, 8, 15, .7); border: 1px solid var(--border); }
.watch-card .watch-play { left: auto; right: 48px; width: 96px; height: 96px; margin: -48px 0 0 0; }
.watch-card .watch-play svg { width: 40px; height: 40px; }
.watch-card .watch-play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--amber); animation: ring 2.2s ease-out infinite; }
.watch-card:hover .watch-play, .watch-card:focus-visible .watch-play { transform: scale(1.08); }
@media (max-width: 700px) {
  .watch-card { padding: 28px 22px; }
  .watch-card .watch-play { position: relative; left: auto; right: auto; top: auto; margin: 8px 0 0; width: 72px; height: 72px; }
  .watch-card .watch-play svg { width: 30px; height: 30px; }
}

/* Phone: status row and a labelled reply */
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; font-size: .74rem; font-weight: 700; color: #CBD5E1; }
.ps-icons { display: inline-flex; align-items: flex-end; gap: 2px; }
.ps-icons i { display: block; width: 3px; background: #CBD5E1; border-radius: 1px; }
.ps-icons i:nth-child(1) { height: 4px; }
.ps-icons i:nth-child(2) { height: 6px; }
.ps-icons i:nth-child(3) { height: 8px; }
.ps-icons i:nth-child(4) { height: 10px; }
.ps-icons b { display: block; width: 20px; height: 10px; margin-left: 6px; border: 1.5px solid #CBD5E1; border-radius: 3px; background: linear-gradient(90deg, #CBD5E1 70%, transparent 70%); }
.b-who { display: block; font-size: .68rem; font-weight: 700; color: #9FD8B5; }
.b-meta { display: block; text-align: right; font-size: .68rem; font-weight: 400; color: #B7E4C7; margin-top: 2px; }
.ticks2 { color: #7CC4FF; letter-spacing: -.2em; }

/* Closing: proof and the hackathon tag */
.eyebrow-center { margin-bottom: 16px; }
.closing .close-proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; color: var(--text); font-size: 1.2rem; font-weight: 700; margin-top: 16px; }
.closing .eyebrow-center { color: var(--amber); }
.stat .tag-note { white-space: normal; }
@media (min-width: 860px) { .shots { grid-template-columns: 1fr 1.75fr; } }

@media (prefers-reduced-motion: reduce) {
  .watch-card .watch-play::after { animation: none !important; opacity: .5; }
  .js .flow[data-animate] .flow-step:not(.is-lit) { opacity: 1; }
  .js .flow[data-animate] .badge-assigned { opacity: 1; transform: none; }
}
