/*
    public/css/kito-home.css
    Kito Detection System landing page
    Dark / Light / System-ready design tokens.
*/

:root {
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container: 1180px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --radius-xl: 44px;
    --ease: cubic-bezier(.2,.8,.2,1);
    --header-height: 76px;
}

html[data-theme="dark"] {
    --bg: #070a12;
    --bg-2: #0b1020;
    --surface: rgba(255,255,255,.065);
    --surface-2: rgba(255,255,255,.095);
    --surface-solid: #101827;
    --text: #eef4ff;
    --strong: #ffffff;
    --muted: #9aa8bf;
    --muted-2: #718096;
    --line: rgba(255,255,255,.11);
    --line-2: rgba(255,255,255,.18);
    --accent: #8b5cf6;
    --accent-2: #3b82f6;
    --accent-3: #22d3ee;
    --good: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 30px 100px rgba(0,0,0,.44);
    --shadow-soft: 0 18px 55px rgba(0,0,0,.28);
    --grid-opacity: .42;
}

html[data-theme="light"] {
    --bg: #f7f9ff;
    --bg-2: #eef3ff;
    --surface: rgba(255,255,255,.76);
    --surface-2: rgba(255,255,255,.96);
    --surface-solid: #ffffff;
    --text: #172033;
    --strong: #06101f;
    --muted: #5a6578;
    --muted-2: #7c8798;
    --line: rgba(15,23,42,.105);
    --line-2: rgba(15,23,42,.18);
    --accent: #6d28d9;
    --accent-2: #2563eb;
    --accent-3: #0891b2;
    --good: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
    --shadow: 0 30px 100px rgba(42,55,95,.16);
    --shadow-soft: 0 18px 55px rgba(42,55,95,.12);
    --grid-opacity: .62;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at 20% 8%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 28%),
        radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--accent-3) 20%, transparent), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-2) 42%, var(--bg));
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
    opacity: var(--grid-opacity);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-3) 7%, transparent), transparent);
    transform: translateX(-120%);
    animation: ambientSweep 8s linear infinite;
}

@keyframes ambientSweep {
    0%, 38% { transform: translateX(-120%); opacity: 0; }
    50% { opacity: 1; }
    70%, 100% { transform: translateX(120%); opacity: 0; }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: color-mix(in srgb, var(--accent) 38%, transparent);
    color: var(--strong);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 99999;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--strong);
    color: var(--bg);
    font-weight: 800;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.background-orb {
    position: fixed;
    pointer-events: none;
    z-index: -2;
    border-radius: 999px;
    filter: blur(20px);
    opacity: .85;
}

.orb-one {
    width: 300px;
    height: 300px;
    left: -150px;
    top: 12%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
    animation: orbOne 20s var(--ease) infinite alternate;
}

.orb-two {
    width: 360px;
    height: 360px;
    right: -170px;
    top: 22%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 28%, transparent), transparent 70%);
    animation: orbTwo 24s var(--ease) infinite alternate;
}

.orb-three {
    width: 330px;
    height: 330px;
    left: 35%;
    bottom: -180px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent 70%);
    animation: orbThree 26s var(--ease) infinite alternate;
}

@keyframes orbOne {
    to { transform: translate3d(120px, 80px, 0) scale(1.12); }
}

@keyframes orbTwo {
    to { transform: translate3d(-130px, 90px, 0) scale(.92); }
}

@keyframes orbThree {
    to { transform: translate3d(80px, -90px, 0) scale(1.1); }
}

/* Header */

.site-header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 1000;
    pointer-events: none;
}

.nav-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-2) 78%, transparent);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--shadow-soft);
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 194px;
}

.brand-mark {
    position: relative;
    width: 43px;
    height: 43px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.55), transparent 24%),
        linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 16px 44px color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1.5px solid rgba(255,255,255,.75);
    border-radius: 999px;
}

.brand-core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 7px rgba(255,255,255,.18), 0 0 24px rgba(255,255,255,.95);
    animation: brandCore 2.7s var(--ease) infinite;
}

@keyframes brandCore {
    0%, 100% { transform: translate(-7px, -5px); }
    40% { transform: translate(8px, -1px); }
    72% { transform: translate(-1px, 8px); }
}

.brand-text strong {
    display: block;
    color: var(--strong);
    font-size: 14px;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.desktop-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    transition: .22s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--strong);
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-login {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    transition: .22s var(--ease);
}

.nav-login:hover {
    color: var(--strong);
    background: var(--surface);
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    transition: .25s var(--ease);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 25%, transparent);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 65px color-mix(in srgb, var(--accent) 34%, transparent);
}

.button-secondary {
    color: var(--strong);
    border-color: var(--line);
    background: var(--surface);
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: var(--surface-2);
}

.icon-button,
.mobile-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    transition: .22s var(--ease);
}

.icon-button svg {
    width: 19px;
    height: 19px;
}

.icon-button:hover,
.mobile-toggle:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.theme-menu {
    position: relative;
}

.theme-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(10px) scale(.96);
    pointer-events: none;
    transition: .22s var(--ease);
}

.theme-popover.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-popover button {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 800;
}

.theme-popover button small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.theme-popover button:hover,
.theme-popover button.is-active {
    background: var(--surface);
}

.mobile-toggle {
    display: none;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.mobile-toggle span + span {
    margin-top: -12px;
}

.mobile-nav {
    display: none;
}

/* SPA views */

.view {
    display: none;
    min-height: 100vh;
    padding-top: 112px;
}

.view.is-active {
    display: block;
    animation: viewIn .42s var(--ease) both;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Hero */

.hero-grid {
    min-height: calc(100vh - 112px);
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
    gap: 56px;
    align-items: center;
    padding: 46px 0 92px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--good);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 14%, transparent), 0 0 22px color-mix(in srgb, var(--good) 60%, transparent);
}

.hero-copy h1 {
    margin: 24px 0 0;
    color: var(--strong);
    max-width: 860px;
    font-size: clamp(48px, 7.2vw, 96px);
    line-height: .9;
    letter-spacing: -.085em;
    font-weight: 900;
}

.hero-text {
    max-width: 740px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.72;
    letter-spacing: -.02em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.proof-row span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 610px;
    perspective: 1300px;
}

.intel-window {
    position: relative;
    border: 1px solid var(--line-2);
    border-radius: 38px;
    background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface) 75%, transparent));
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotateX(4deg) rotateY(-7deg) rotateZ(1deg);
    animation: panelFloat 6s var(--ease) infinite alternate;
}

@keyframes panelFloat {
    from { transform: rotateX(4deg) rotateY(-7deg) rotateZ(1deg) translateY(0); }
    to { transform: rotateX(1deg) rotateY(-4deg) rotateZ(0) translateY(-10px); }
}

.intel-window::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 36%, color-mix(in srgb, var(--accent-3) 22%, transparent));
    pointer-events: none;
}

.window-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 12px;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--line-2);
}

.window-top strong {
    color: var(--strong);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.window-top em {
    justify-self: end;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.scanner-stage {
    position: relative;
    margin: 10px 18px 0;
    min-height: 300px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        color-mix(in srgb, var(--surface-solid) 70%, transparent);
}

.scanner-grid {
    position: absolute;
    inset: 0;
    opacity: .44;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent-3) 45%, transparent);
    box-shadow: inset 0 0 36px color-mix(in srgb, var(--accent-3) 15%, transparent), 0 0 45px color-mix(in srgb, var(--accent) 10%, transparent);
}

.ring-a {
    width: 220px;
    height: 220px;
}

.ring-b {
    width: 158px;
    height: 158px;
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    animation: ringPulse 2.8s var(--ease) infinite;
}

.ring-c {
    width: 88px;
    height: 88px;
    border-color: color-mix(in srgb, var(--good) 45%, transparent);
    animation: ringPulse 2.8s var(--ease) infinite reverse;
}

@keyframes ringPulse {
    50% { transform: scale(1.12); opacity: .72; }
}

.scan-line {
    position: absolute;
    left: 9%;
    right: 9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
    box-shadow: 0 0 28px color-mix(in srgb, var(--accent-3) 70%, transparent);
    animation: scanLine 2.5s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { transform: translateY(-110px); opacity: 0; }
    15%, 85% { opacity: 1; }
    50% { transform: translateY(110px); }
}

.scan-core {
    position: relative;
    z-index: 2;
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 34%, transparent);
}

.scan-core svg {
    width: 58px;
    height: 58px;
}

.metric-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 18px;
}

.metric-grid article {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.metric-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--strong);
    font-size: 25px;
    letter-spacing: -.05em;
}

.metric-grid small {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
}

.signal-feed {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin: 0 18px 18px;
}

.signal-feed div {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.signal-feed span {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.signal-feed p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
}

.signal-feed small {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 850;
}

.floating-note {
    position: absolute;
    z-index: 3;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    color: var(--strong);
    font-size: 12px;
    font-weight: 900;
}

.note-one {
    top: 48px;
    right: -14px;
    animation: chipFloat 5s var(--ease) infinite alternate;
}

.note-two {
    bottom: 132px;
    left: -24px;
    animation: chipFloat 6s var(--ease) infinite alternate-reverse;
}

.note-three {
    right: 12px;
    bottom: 38px;
    animation: chipFloat 6.7s var(--ease) infinite alternate;
}

@keyframes chipFloat {
    to { transform: translateY(-13px); }
}

/* Sections */

.section-space {
    padding: 84px 0 110px;
}

.section-header {
    max-width: 820px;
    margin-bottom: 44px;
}

.section-kicker {
    margin: 0;
    color: var(--accent-3);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-header h2,
.message-panel h3,
.feature-row h3,
.info-panel h3 {
    margin: 13px 0 0;
    color: var(--strong);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: 1;
}

.section-header h2 {
    font-size: clamp(36px, 5.5vw, 68px);
}

.section-header p,
.feature-row p,
.message-panel p,
.info-panel p {
    color: var(--muted);
    line-height: 1.72;
    font-size: 16px;
}

.section-header > p {
    margin: 18px 0 0;
    font-size: 18px;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pipeline article,
.price-card,
.message-panel,
.info-panel,
.form-panel,
.visual-card,
.pricing-note {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 40%, transparent));
    backdrop-filter: blur(20px) saturate(145%);
    box-shadow: var(--shadow-soft);
}

.pipeline article {
    min-height: 260px;
    padding: 22px;
    border-radius: 30px;
}

.pipeline strong {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.pipeline h3 {
    margin: 24px 0 0;
    color: var(--strong);
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.pipeline p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.message-panel {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 30px;
    align-items: center;
    margin-top: 28px;
    padding: 30px;
    border-radius: var(--radius-xl);
}

.message-panel h3 {
    font-size: clamp(28px, 4vw, 44px);
}

.message-panel p {
    margin: 0;
}

.message-panel .button {
    width: fit-content;
    margin-top: 18px;
}

/* Features */

.feature-stack {
    display: grid;
    gap: 28px;
}

.feature-row {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 34px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--surface), transparent);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.feature-row.reverse {
    grid-template-columns: 1.05fr .95fr;
}

.feature-row h3 {
    font-size: clamp(30px, 4vw, 52px);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-weight: 750;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, white 0 25%, var(--good) 28% 100%);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 11%, transparent);
}

.visual-card {
    position: relative;
    min-height: 340px;
    border-radius: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .4;
    mask-image: radial-gradient(circle, black, transparent 75%);
}

.face-outline {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 205px;
    border: 2px solid color-mix(in srgb, var(--accent-3) 70%, transparent);
    border-radius: 45% 45% 42% 42%;
    box-shadow: 0 0 50px color-mix(in srgb, var(--accent-3) 24%, transparent), inset 0 0 35px color-mix(in srgb, var(--accent-3) 12%, transparent);
}

.match-line {
    position: absolute;
    z-index: 2;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
    animation: scanLineSmall 2.4s ease-in-out infinite;
}

.line-1 { top: 34%; }
.line-2 { top: 50%; animation-delay: .25s; }
.line-3 { top: 66%; animation-delay: .5s; }

@keyframes scanLineSmall {
    50% { transform: translateY(18px); opacity: .4; }
}

.score-badge {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 22px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--strong);
    font-size: 12px;
    font-weight: 900;
}

.chat-intel-card {
    justify-items: stretch;
    padding: 28px;
}

.chat-bubble {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

.chat-bubble.ai {
    margin-top: 12px;
    margin-left: auto;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.tag-cloud {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tag-cloud span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
    font-weight: 850;
}

.graph-card svg {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    color: var(--accent-3);
}

.node {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent-3) 12%, transparent), 0 0 34px color-mix(in srgb, var(--accent-3) 55%, transparent);
    animation: nodePulse 2.7s var(--ease) infinite;
}

.node.n1 { left: 18%; top: 32%; }
.node.n2 { left: 45%; top: 21%; background: var(--accent); animation-delay: .25s; }
.node.n3 { right: 17%; top: 35%; animation-delay: .5s; }
.node.n4 { left: 29%; bottom: 22%; background: var(--good); animation-delay: .75s; }
.node.n5 { right: 31%; bottom: 19%; background: var(--warn); animation-delay: 1s; }

@keyframes nodePulse {
    50% { transform: scale(1.22); opacity: .72; }
}

/* Pricing */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 20px;
    border-radius: 30px;
    overflow: hidden;
}

.price-card.featured {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    transform: translateY(-12px);
}

.price-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 9px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plan-top span {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-3);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plan-top h3 {
    margin: 18px 0 0;
    color: var(--strong);
    font-size: 28px;
    letter-spacing: -.05em;
}

.plan-top p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.price {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.price strong {
    color: var(--strong);
    font-size: 42px;
    line-height: .9;
    letter-spacing: -.07em;
}

.price small {
    color: var(--muted);
    font-weight: 800;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.price-card li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--good);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--good) 10%, transparent);
}

.price-card .button {
    margin-top: auto;
}

.pricing-note {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.pricing-note strong {
    color: var(--strong);
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    min-height: 230px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(6) {
    transform: translateY(28px);
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(7) {
    transform: translateY(8px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.06);
    transition: .55s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.08);
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%);
}

.gallery-item span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 8px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(0,0,0,.44);
    backdrop-filter: blur(14px);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Forms / split layout */

.split-layout {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 24px;
    align-items: stretch;
}

.info-panel,
.form-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.info-panel h3 {
    font-size: clamp(28px, 4vw, 44px);
}

.info-panel a {
    color: var(--accent-3);
    font-weight: 800;
}

.alert-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--warn) 36%, var(--line));
    background: color-mix(in srgb, var(--warn) 10%, transparent);
    color: var(--text);
    line-height: 1.62;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid label {
    display: grid;
    gap: 8px;
}

.form-grid label.full,
.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid span {
    color: var(--strong);
    font-size: 13px;
    font-weight: 850;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    padding: 14px 15px;
    transition: .2s var(--ease);
}

.form-grid textarea {
    min-height: 150px;
    resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 42px 0 46px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-grid strong {
    color: var(--strong);
}

.footer-grid p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-grid nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-grid nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.footer-grid nav a:hover {
    color: var(--strong);
}

/* Reveal animation */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .72s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 1180px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .price-card.featured {
        transform: none;
    }
}

@media (max-width: 1040px) {
    .desktop-nav,
    .nav-login,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: grid;
    }

    .nav-shell {
        border-radius: 28px;
    }

    .mobile-nav {
        position: fixed;
        top: 100px;
        left: 20px;
        right: 20px;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 26px;
        background: var(--surface-2);
        backdrop-filter: blur(22px) saturate(150%);
        box-shadow: var(--shadow-soft);
        pointer-events: auto;
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: .22s var(--ease);
    }

    .mobile-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .mobile-nav a {
        padding: 14px;
        border-radius: 16px;
        color: var(--text);
        font-weight: 850;
    }

    .mobile-nav a:hover,
    .mobile-nav a.is-active {
        background: var(--surface);
        color: var(--strong);
    }

    .hero-grid,
    .split-layout,
    .message-panel,
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .intel-window {
        transform: none;
        animation: none;
    }

    .pipeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .site-header {
        inset-top: 10px;
    }

    .nav-shell {
        min-height: 66px;
        padding: 8px 8px 8px 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .view {
        padding-top: 92px;
    }

    .hero-grid {
        min-height: auto;
        gap: 34px;
        padding: 34px 0 72px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 13vw, 72px);
        letter-spacing: -.075em;
    }

    .hero-text,
    .section-header > p {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .proof-row span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .scanner-stage {
        min-height: 260px;
        margin: 10px 12px 0;
    }

    .metric-grid {
        grid-template-columns: 1fr;
        margin-inline: 12px;
    }

    .signal-feed {
        margin-inline: 12px;
    }

    .signal-feed div {
        grid-template-columns: 22px 1fr;
    }

    .signal-feed small {
        display: none;
    }

    .floating-note {
        position: relative;
        inset: auto;
        display: inline-flex;
        width: fit-content;
        margin-top: 10px;
    }

    .note-two,
    .note-three {
        display: none;
    }

    .section-space {
        padding: 68px 0 82px;
    }

    .section-header h2 {
        font-size: clamp(34px, 11vw, 54px);
    }

    .pipeline,
    .pricing-grid,
    .gallery-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .info-panel,
    .form-panel,
    .message-panel {
        padding: 20px;
        border-radius: 30px;
    }

    .visual-card {
        min-height: 300px;
    }

    .gallery-item {
        min-height: 260px;
        transform: none !important;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
