/* AIforOperations site, shared styles. Dark neutral base, red only as a signal. */
:root {
  --bg: #0C0807; --paper: #17110F; --paper-2: #201815; --ink: #F5F1EC; --mute: #A9A19B; --dim: #746A65;
  --line: rgba(255,214,196,.13); --line-2: rgba(255,214,196,.08);
  --red: #F0503C; --red-bg: rgba(240,80,60,.13); --ok: #3DD68C; --ok-bg: rgba(61,214,140,.12); --amber: #F5B942; --amber-bg: rgba(245,185,66,.13);
  --grad: linear-gradient(45deg, #DC2626, #F97316); --orange: #F97316;
  --ease: cubic-bezier(.22,.8,.2,1);
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 16px 36px -18px rgba(0,0,0,.8);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.07) inset, 0 50px 100px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.02);
  --sans: 'Geist', 'Inter', system-ui, sans-serif; --serif: 'Instrument Serif', Georgia, serif; --mono: 'Geist Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 440px at 80% -90px, rgba(240,80,60,.16), transparent 70%),
    radial-gradient(700px 360px at 8% -120px, rgba(249,115,22,.09), transparent 70%),
    linear-gradient(rgba(255,190,160,.028) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,190,160,.028) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(180deg, #000 0, #000 520px, transparent 1100px); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 520px, transparent 1100px); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* nav */
nav { position: sticky; top: 0; z-index: 40; background: rgba(12,8,7,.8); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line-2); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 600; letter-spacing: -.02em; font-size: 1.06rem; display: flex; align-items: center; gap: 10px; }
.logo .mk { width: 26px; height: 26px; flex: none; }
.logo .wm { font-weight: 600; letter-spacing: -.04em; font-size: 1.12rem; color: #fff; } .logo .wm b { font-weight: 600; background: linear-gradient(90deg, #DC2626, #F0503C); -webkit-background-clip: text; background-clip: text; color: transparent; } .logo .wm i { font-style: normal; font-weight: 400; color: var(--orange); }
.navr { display: flex; align-items: center; gap: 30px; font-size: .92rem; color: var(--mute); }
.navr a { transition: color .2s; } .navr a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 26px; border-radius: 999px; font-weight: 500; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; }
.btn-dark { background: var(--ink); color: #0B0B0D; box-shadow: 0 14px 34px -14px rgba(243,241,236,.35); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(243,241,236,.45); }
.btn .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1rem; transition: transform .35s var(--ease), background .3s, color .3s; }
.btn:hover .dot { transform: rotate(-45deg); }
.btn-line { padding: 0 24px; border: 1px solid var(--line); background: var(--paper); }
.btn-line:hover { border-color: rgba(255,255,255,.4); }
.btn-sm { height: 42px; padding: 0 5px 0 18px; font-size: .88rem; gap: 10px; } .btn-sm .dot { width: 32px; height: 32px; font-size: .85rem; } .btn-sm.btn-line { padding: 0 18px; }

/* type */
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); letter-spacing: -.04em; line-height: 1.06; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: #fff; }
h1 em.s, .final h2 em.s { background: linear-gradient(90deg, #F0503C, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; color: var(--mute); margin-bottom: 26px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.2); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(249,115,22,0); } }
.lead { color: var(--mute); font-size: 1.16rem; line-height: 1.5; max-width: 500px; letter-spacing: -.01em; }
section { padding: 130px 0; }
.center { text-align: center; } .center .lead { margin: 20px auto 0; }

.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* hand-drawn CTA note */
.note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px 6px; font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.note svg { width: 44px; height: 46px; margin-top: 6px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.note span { transform: rotate(-3deg); transform-origin: left bottom; display: block; }
.note path { stroke-dasharray: 120; stroke-dashoffset: 120; }
.in .note path, .note.in path { animation: draw 1s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta small { color: var(--dim); font-size: .88rem; }

/* cards */
.card { background: linear-gradient(180deg, #1A1311, #140F0D); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .72rem; font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.07); color: var(--mute); transition: background .4s, color .4s; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--red-bg); color: var(--red); } .pill.warn { background: var(--amber-bg); color: var(--amber); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--mute); margin-bottom: 20px; }
.tag b { font-weight: 500; color: var(--ink); } .tag::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.modal.show { opacity: 1; pointer-events: auto; }
.mbox { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); padding: 40px; transform: translateY(24px) scale(.97); transition: transform .5s var(--ease); position: relative; box-shadow: var(--shadow-lg); }
.modal.show .mbox { transform: none; }
.mx { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .9rem; }
.mbox blockquote { font-size: 1.12rem; line-height: 1.45; margin: 18px 0 26px; color: var(--ink); padding-left: 16px; border-left: 2px solid var(--line); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.ba div { padding: 18px; border-radius: 16px; font-size: .94rem; line-height: 1.45; background: var(--red-bg); }
.ba div + div { background: var(--ok-bg); }
.ba small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; color: var(--red); }
.ba div + div small { color: var(--ok); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.ticks li b { font-weight: 600; }
.ticks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233DD68C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center/20px; }

/* final + footer */
.final .box { border-radius: 36px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 96px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.final .box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(620px 280px at 50% 0, rgba(240,80,60,.2), transparent 70%), radial-gradient(420px 200px at 50% 0, rgba(249,115,22,.12), transparent 70%); pointer-events: none; }
.final .box { border-color: rgba(240,80,60,.28); }
.final .box > * { position: relative; }
.final .lead { margin: 22px auto 40px; }
footer { padding: 34px 0 44px; color: var(--dim); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 940px) { section { padding: 84px 0; } .navr a.hm { display: none; } }
@media (max-width: 600px) { .wrap { padding: 0 20px; } .ba { grid-template-columns: 1fr; } .mbox { padding: 28px 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } .note path { stroke-dashoffset: 0; } }
