/* =========================================================
   Sasrevo — site styles
   Brand: charcoal #22252B · crimson #B3263E · light crimson #E0566C
   ========================================================= */

:root {
    --charcoal: #22252B;
    --charcoal-2: #1A1C21;
    --charcoal-3: #2C3038;
    --crimson: #B3263E;
    --crimson-dark: #951E33;
    --crimson-light: #E0566C;
    --white: #FFFFFF;

    --ink: #22252B;
    --ink-2: #4A4F59;
    --ink-3: #6B717C;
    --line: #E6E4E1;
    --paper: #FFFFFF;
    --tint: #F7F5F2;

    --on-dark: #F2F2F3;
    --on-dark-2: #B4B8C0;
    --on-dark-3: #8A8F99;
    --line-dark: rgba(255, 255, 255, 0.09);

    --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(34, 37, 43, 0.04), 0 12px 32px -12px rgba(34, 37, 43, 0.14);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--crimson); color: #fff; }

:focus-visible { outline: 2px solid var(--crimson-light); outline-offset: 3px; border-radius: 6px; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--crimson); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
    border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--crimson); color: #fff; box-shadow: 0 10px 30px -10px rgba(179, 38, 62, 0.7); }
.btn--primary:hover { background: var(--crimson-dark); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(179, 38, 62, 0.8); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.07); }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link { color: var(--crimson); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--crimson); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: var(--crimson-light); }
.eyebrow .dot { display: none; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; position: relative; }
.brand__logo { height: 40px; width: auto; transition: opacity .3s var(--ease); }
.brand__logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
    color: var(--on-dark-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__cta { margin-left: 10px; }

.header.is-scrolled {
    background: rgba(255,255,255,0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
}
.header.is-scrolled .brand__logo--light { opacity: 0; }
.header.is-scrolled .brand__logo--dark { opacity: 1; }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink-2); }
.header.is-scrolled .nav a:not(.btn):hover { color: var(--ink); background: rgba(34,37,43,0.05); }
.header.is-scrolled .menu-toggle span { background: var(--ink); }

.menu-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    position: relative; border-radius: 10px;
}
.menu-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .3s var(--ease), top .3s var(--ease), background-color .3s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: var(--charcoal-2); color: var(--on-dark);
    padding-top: calc(var(--header-h) + 64px); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero__glow {
    position: absolute; width: 900px; height: 900px; right: -260px; top: -380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(179,38,62,0.38), rgba(179,38,62,0.08) 45%, transparent 68%);
    filter: blur(10px);
}
.hero__glow--low { top: auto; bottom: -520px; right: auto; left: -300px; }

.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding-bottom: 88px; }
.hero__title {
    font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; color: #fff;
}
.accent {
    background: linear-gradient(100deg, #FF8A9B 0%, var(--crimson-light) 45%, #C93A52 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 24px; font-size: 18.5px; line-height: 1.65; color: var(--on-dark-2); max-width: 560px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
    margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-dark-3); font-size: 14px;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--crimson-light); margin-right: 20px; margin-left: -20px; display: none; }
.hero__trust strong { color: #fff; font-weight: 600; }

/* Console visual */
.hero__visual { position: relative; }
.console {
    position: relative; border-radius: 20px; background: linear-gradient(180deg, #2A2E36, #23262D);
    border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}
.console__bar {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark-3);
}
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.console__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__live { display: inline-flex; align-items: center; gap: 7px; color: #7BE0A6; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61,220,151,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

.flow { padding: 14px; display: grid; gap: 8px; counter-reset: s; }
.flow__step {
    position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
    opacity: 0; transform: translateY(8px);
    animation: stepIn .6s var(--ease) forwards, stepGlow 7.5s calc(var(--i) * 1.5s + 1.2s) infinite;
    animation-delay: calc(var(--i) * 0.14s + 0.3s), calc(var(--i) * 1.5s + 1.2s);
}
.flow__step:not(:last-child)::after {
    content: ""; position: absolute; left: 33px; bottom: -9px; width: 2px; height: 10px; background: rgba(255,255,255,0.1);
}
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes stepGlow {
    0%, 16%, 100% { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.05); }
    4%, 12% { background: rgba(224,86,108,0.1); border-color: rgba(224,86,108,0.38); }
}
.flow__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.flow__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow__icon--trigger { background: rgba(149,191,71,0.14); color: #A8D45C; }
.flow__icon--rule { background: rgba(90,169,255,0.13); color: #7DBBFF; }
.flow__icon--ai { background: rgba(224,86,108,0.15); color: #FF8A9B; }
.flow__icon--human { background: rgba(255,186,82,0.13); color: #FFC772; }
.flow__icon--out { background: rgba(61,220,151,0.13); color: #5EE6A8; }
.flow__text { display: flex; flex-direction: column; min-width: 0; }
.flow__text b { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: #fff; }
.flow__text small { font-size: 12.5px; color: var(--on-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__status {
    font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px;
    background: rgba(255,255,255,0.06); color: var(--on-dark-2); white-space: nowrap;
}
.flow__status--ok { background: rgba(61,220,151,0.12); color: #6FE6B2; }
.console__foot {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-dark);
    font-size: 11.5px; color: var(--on-dark-3); font-family: var(--font-mono);
}

.chip {
    position: absolute; display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
    background: #fff; box-shadow: 0 18px 40px -14px rgba(0,0,0,0.55);
    animation: float 6s ease-in-out infinite;
}
.chip--a { left: -30px; top: -20px; }
.chip--b { right: -18px; bottom: -20px; animation-delay: -3s; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); }
.chip__dot--ok { background: #1FA971; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Marquee */
.marquee {
    position: relative; border-top: 1px solid var(--line-dark); padding: 22px 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
    font-family: var(--font-head); font-weight: 700; font-size: 18px; color: rgba(255,255,255,0.38);
    padding: 0 30px; white-space: nowrap; letter-spacing: -0.01em; position: relative;
}
.marquee li::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(224,86,108,0.6); transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 28px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.star { color: var(--crimson); font-size: 0.7em; margin-left: 2px; vertical-align: 0.18em; }
.stat__label { color: var(--ink-3); font-size: 14.5px; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--charcoal); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: var(--on-dark-2); }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--row .section__lead { max-width: 400px; }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.032em; line-height: 1.08; }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); line-height: 1.65; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    position: relative; padding: 32px; border-radius: var(--radius); background: var(--paper);
    border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D9D5D0; }
.service__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
    background: rgba(179,38,62,0.08); color: var(--crimson);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service--featured {
    background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark);
    background-image: radial-gradient(circle at 100% 0%, rgba(179,38,62,0.45), transparent 55%);
}
.service--featured:hover { border-color: var(--charcoal); box-shadow: 0 24px 50px -20px rgba(34,37,43,0.55); }
.service--featured h3 { color: #fff; }
.service--featured p { color: var(--on-dark-2); }
.service--featured .service__icon { background: rgba(224,86,108,0.16); color: #FF8A9B; }
.service--featured .link { color: #FF8A9B; margin-top: 20px; }

/* ---------- Shopify split ---------- */
#shopify::before {
    content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; left: -300px; top: -300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(179,38,62,0.28), transparent 65%);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.checks { margin: 34px 0 40px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 34px; color: var(--on-dark-2); font-size: 15.5px; }
.checks li b { color: #fff; font-weight: 600; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
    background: rgba(224,86,108,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A9B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.code {
    border-radius: 20px; background: #16181C; border: 1px solid rgba(255,255,255,0.09);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.code__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.code__file { font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark-3); }
.code__body {
    margin: 0; padding: 22px 22px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
    color: #D7DAE0; overflow-x: auto; white-space: pre;
}
.code__body .c { color: #6B717C; }
.code__body .k { color: #FF8A9B; }
.code__body .f { color: #7DBBFF; }
.code__body .s { color: #A8D45C; }
.code__body .n { color: #FFC772; }
.code__log { border-top: 1px solid var(--line-dark); padding: 14px 22px 18px; display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark-2); }
.code__log div { display: flex; gap: 12px; white-space: nowrap; overflow: hidden; }
.code__log .t { color: var(--on-dark-3); }
.code__log .ok { color: #5EE6A8; }
.code__log em { color: var(--on-dark-3); font-style: normal; margin-left: auto; }
.visual-note { margin-top: 12px; font-size: 12px; color: var(--on-dark-3); text-align: right; font-family: var(--font-mono); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
    display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--paper);
    border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case--wide { grid-column: 1 / -1; flex-direction: row; }
.case--wide .case__media { flex: 1.05; min-height: 340px; }
.case--wide .case__body { flex: 1; padding: 44px; }
.case__media {
    position: relative; min-height: 220px; display: grid; place-items: center; padding: 28px; overflow: hidden;
    background: var(--charcoal);
}
.case__media::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.case__media--violet { background: radial-gradient(circle at 20% 0%, #4A3FA8, #1D1A3B 70%); }
.case__media--teal   { background: radial-gradient(circle at 20% 0%, #1D7468, #0F2A28 70%); }
.case__media--green  { background: radial-gradient(circle at 20% 0%, #4F7A22, #18240F 70%); }
.case__media--amber  { background: radial-gradient(circle at 20% 0%, #A7651A, #2E1E0B 70%); }
.case__media--blue   { background: radial-gradient(circle at 20% 0%, #2457A8, #0F1C33 70%); }
.case__media--rose   { background: radial-gradient(circle at 20% 0%, #B3263E, #2D0E15 70%); }
.case__media > * { position: relative; }
.case__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__meta { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--crimson); }
.case h3 { font-size: 23px; font-weight: 700; line-height: 1.22; }
.case--wide h3 { font-size: 30px; }
.case__body > p:not(.case__meta) { color: var(--ink-2); font-size: 15.5px; }
.case__stats { margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.case__stats div { display: flex; flex-direction: column; }
.case__stats dt { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.case__stats dd { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.case .link { margin-top: auto; padding-top: 8px; }

.mini-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 460px; }
.mini-flow span {
    font-family: var(--font-mono); font-size: 12.5px; color: #fff; padding: 8px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); white-space: nowrap;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mini-flow span.ai { border-color: rgba(255,138,155,0.55); background: rgba(224,86,108,0.18); }
.mini-flow span.human { border-color: rgba(255,199,114,0.55); background: rgba(255,186,82,0.16); }
.mini-flow span.out { border-color: rgba(94,230,168,0.55); background: rgba(61,220,151,0.16); }
.mini-flow i { width: 14px; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
.mini-flow--col, .case--wide .mini-flow { flex-direction: column; }
.mini-flow--col i, .case--wide .mini-flow i { width: 2px; height: 12px; }

.fields { width: 100%; max-width: 330px; display: grid; gap: 8px; }
.fields div {
    display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #fff;
}
.fields span { color: rgba(255,255,255,0.55); font-size: 12px; }
.fields b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields em { font-style: normal; font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.src-rule { background: rgba(90,169,255,0.2); color: #A9D1FF; }
.src-ai { background: rgba(224,86,108,0.25); color: #FFB0BC; }
.src-man { background: rgba(255,186,82,0.22); color: #FFD69A; }

.score { text-align: center; color: #fff; }
.score b { display: block; font-family: var(--font-head); font-size: 68px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.score span { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 36px 32px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.principle__num { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--crimson); margin-bottom: 26px; padding: 5px 10px; border-radius: 8px; background: rgba(179,38,62,0.08); }
.principle h3 { font-size: 21px; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px;
    background: linear-gradient(90deg, var(--crimson), rgba(179,38,62,0.15));
}
.process__step { position: relative; padding-right: 12px; }
.process__n {
    position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--crimson); color: var(--crimson);
    font-family: var(--font-head); font-weight: 800; font-size: 18px; margin-bottom: 28px;
}
.process__step:first-child .process__n { background: var(--crimson); color: #fff; }
.process__step h3 { font-size: 22px; margin-bottom: 10px; }
.process__step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Quotes ---------- */
.section--quotes::before {
    content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -340px; bottom: -480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(179,38,62,0.3), transparent 65%);
}
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
    margin: 0; padding: 34px 30px; border-radius: var(--radius); background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 22px;
}
.quote__stars { color: #FFC772; letter-spacing: 3px; font-size: 15px; }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.45; color: #fff; letter-spacing: -0.015em; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.quote figcaption b { color: #fff; font-weight: 600; }
.quote figcaption span { color: var(--on-dark-3); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 72px; align-items: center; }
.about__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.about__copy .section__title { max-width: 600px; }
.about__facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about__facts li { padding: 18px; border-radius: var(--radius-sm); background: var(--tint); display: flex; flex-direction: column; gap: 2px; }
.about__facts b { font-family: var(--font-head); font-size: 16px; }
.about__facts span { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }

.founder { border-radius: 22px; overflow: hidden; background: var(--charcoal); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(34,37,43,0.5); }
.founder img { width: 100%; aspect-ratio: 1 / 0.86; object-fit: cover; object-position: center 25%; }
.founder__body { padding: 26px 28px 28px; }
.founder__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.founder__role { color: var(--crimson-light); font-size: 14px; font-weight: 600; margin-top: 2px; }
.founder__bio { margin-top: 14px; font-size: 14.5px; color: var(--on-dark-2); line-height: 1.6; }
.founder__bio a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
.founder__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.founder__links a { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); color: #fff; transition: background-color .2s, border-color .2s; }
.founder__links a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 36px 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.plan h3 { font-size: 22px; margin-bottom: 12px; }
.plan > p { color: var(--ink-2); font-size: 15.5px; min-height: 76px; }
.plan ul { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; }
.plan li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
    background: rgba(179,38,62,0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3263E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan--featured { background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(34,37,43,0.55); }
.plan--featured h3 { color: #fff; }
.plan--featured > p { color: var(--on-dark-2); }
.plan--featured ul { border-top-color: var(--line-dark); }
.plan--featured li::before {
    background: rgba(224,86,108,0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A9B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan__badge {
    position: absolute; top: -13px; left: 32px; font-size: 12px; font-weight: 700; font-family: var(--font-head);
    padding: 5px 12px; border-radius: 999px; background: var(--crimson); color: #fff;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
    font-family: var(--font-head); font-weight: 700; font-size: 18.5px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
    background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322252B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(179,38,62,0.1); }
.faq summary:hover { color: var(--crimson); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Contact ---------- */
.contact { background: var(--charcoal-2); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__direct { margin-top: 40px; display: grid; gap: 14px; }
.contact__direct li { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); }
.contact__direct span { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-3); }
.contact__direct a { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: #fff; word-break: break-word; }
.contact__direct a:hover { color: #FF8A9B; }

.form {
    padding: 36px; border-radius: 22px; background: #fff; color: var(--ink); display: grid; gap: 18px;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 9px; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #DAD7D3; background: #FCFBFA;
    font-size: 15.5px; transition: border-color .2s, box-shadow .2s, background-color .2s; resize: vertical;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--crimson); background: #fff; box-shadow: 0 0 0 4px rgba(179,38,62,0.12); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(179,38,62,0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
    display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #DAD7D3; font-size: 14px; font-weight: 500;
    transition: background-color .2s, border-color .2s, color .2s; user-select: none;
}
.chips label:hover span { border-color: var(--ink-3); }
.chips input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.form__note { font-size: 13px; color: var(--ink-3); text-align: center; }
.form__note.is-error { color: var(--crimson); }

/* ---------- Footer ---------- */
.footer { background: #141619; color: var(--on-dark-2); padding: 80px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 42px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 360px; font-size: 15px; color: var(--on-dark-3); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 18px; }
.footer__cols a { display: block; font-size: 15px; padding: 5px 0; color: var(--on-dark-3); transition: color .2s; word-break: break-word; }
.footer__cols a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: 14px; color: var(--on-dark-3); }
.footer__top:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .nav a:not(.btn) { padding: 8px 9px; font-size: 14.5px; }
    .hero__inner { gap: 40px; }
    .chip--a { left: -12px; }
    .chip--b { right: -8px; }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .menu-toggle { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 16px 24px 24px; background: var(--charcoal-2); border-bottom: 1px solid var(--line-dark);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav a:not(.btn) { padding: 13px 4px; font-size: 17px; color: var(--on-dark-2); border-radius: 0; border-bottom: 1px solid var(--line-dark); }
    .nav a:not(.btn):hover { background: transparent; }
    .nav__cta { margin: 16px 0 0; }
    .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
    .header.is-open { background: var(--charcoal-2); border-bottom-color: var(--line-dark); }
    .header.is-open .brand__logo--light { opacity: 1; }
    .header.is-open .brand__logo--dark { opacity: 0; }
    .header.is-open .menu-toggle span { background: #fff; }
    .header.is-scrolled .nav a:not(.btn) { color: var(--on-dark-2); }
    .header.is-scrolled .nav a:not(.btn):hover { color: #fff; background: transparent; }
    .header.is-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
    .header.is-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

    .hero { padding-top: calc(var(--header-h) + 48px); }
    .hero__inner { grid-template-columns: 1fr; padding-bottom: 64px; }
    .hero__visual { max-width: 560px; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 32px 24px; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

    .section { padding: 88px 0; }
    .section__head { margin-bottom: 48px; }
    .section__head--row { flex-direction: column; align-items: flex-start; gap: 0; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .split, .about, .faq, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
    .faq__head { position: static; }
    .case--wide { flex-direction: column; }
    .case--wide .case__media { min-height: 240px; }
    .case--wide .case__body { padding: 32px; }
    .principles, .quotes, .plans { grid-template-columns: 1fr; }
    .plan > p { min-height: 0; }
    .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
    .process::before { display: none; }
    .founder { max-width: 420px; }
    .footer__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: clamp(34px, 10vw, 44px); }
    .hero__lead { font-size: 17px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__trust { gap: 8px 18px; font-size: 13.5px; }
    .chip { display: none; }
    .flow { padding: 10px; }
    .flow__step { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; }
    .flow__step:not(:last-child)::after { left: 26px; }
    .flow__icon { width: 34px; height: 34px; border-radius: 9px; }
    .flow__icon svg { width: 17px; height: 17px; }
    .flow__text b { font-size: 13px; }
    .stat { padding: 26px 14px; }
    .stat:nth-child(odd) { padding-left: 0; }
    .stat__label { font-size: 13.5px; }
    .section { padding: 72px 0; }
    .section__lead { font-size: 16.5px; }
    .services, .work { grid-template-columns: 1fr; }
    .service, .principle, .plan { padding: 28px 24px; }
    .case__body, .case--wide .case__body { padding: 26px 22px; }
    .case--wide h3 { font-size: 24px; }
    .process { grid-template-columns: 1fr; row-gap: 32px; }
    .about__facts { grid-template-columns: 1fr; }
    .faq summary { font-size: 17px; padding-right: 44px; }
    .faq details p { padding-right: 0; }
    .form { padding: 24px 20px; }
    .form__row { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .footer__base { flex-direction: column; align-items: flex-start; }
    .code__body { font-size: 12px; padding: 18px 16px; }
    .code__log { padding: 12px 16px 16px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .flow__step { opacity: 1; transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}
