:root {
    --bg: #050814;
    --bg-soft: #090e1d;
    --panel: rgba(11, 18, 38, 0.72);
    --panel-strong: rgba(13, 21, 44, 0.93);
    --line: rgba(151, 174, 219, 0.15);
    --line-strong: rgba(126, 249, 222, 0.36);
    --text: #f4f7ff;
    --muted: #8e9db9;
    --cyan: #6fffe1;
    --blue: #5aa2ff;
    --violet: #aa7cff;
    --orange: #ffb86b;
    --success: #68f0b5;
    --danger: #ff768c;
    --header-height: 82px;
    --content-width: 1480px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(77, 103, 255, 0.13), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
label {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

button,
a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    background: rgba(111, 255, 225, 0.22);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #060a15;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #060a15;
    border-radius: 999px;
    background: linear-gradient(var(--blue), var(--cyan));
}

/* Animated background */

#forensicCanvas {
    position: fixed;
    inset: 0;
    z-index: -5;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    width: 42vw;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    animation: auroraFloat 18s ease-in-out infinite alternate;
}

.aurora-one {
    top: -18%;
    left: -7%;
    background: var(--blue);
}

.aurora-two {
    top: 18%;
    right: -14%;
    background: var(--violet);
    animation-delay: -7s;
}

.aurora-three {
    bottom: -22%;
    left: 32%;
    background: var(--cyan);
    animation-delay: -12s;
}

.grid-floor {
    position: absolute;
    right: -10%;
    bottom: -42%;
    left: -10%;
    height: 72%;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(111, 255, 225, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 255, 225, 0.22) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(520px) rotateX(68deg);
    transform-origin: center;
    mask-image: linear-gradient(to top, black 24%, transparent 84%);
}

.scan-line {
    position: absolute;
    top: -15%;
    right: 0;
    left: 0;
    height: 16%;
    opacity: 0.11;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(111, 255, 225, 0.35),
        transparent
    );
    animation: globalScan 10s linear infinite;
}

.cursor-glow {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(90, 162, 255, 0.13),
        rgba(111, 255, 225, 0.05) 34%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

@keyframes auroraFloat {
    0% {
        transform: translate3d(-4%, -2%, 0) scale(0.95);
    }
    100% {
        transform: translate3d(9%, 7%, 0) scale(1.15);
    }
}

@keyframes globalScan {
    from {
        transform: translateY(-120%);
    }
    to {
        transform: translateY(850%);
    }
}

/* Header */

.top-navigation {
    position: fixed;
    top: 16px;
    right: 22px;
    left: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-height: 64px;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 9px 12px 9px 16px;
    border: 1px solid rgba(151, 174, 219, 0.18);
    border-radius: 20px;
    background: rgba(5, 8, 20, 0.7);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px) saturate(140%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-symbol {
    position: relative;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(111, 255, 225, 0.42);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(90, 162, 255, 0.22), rgba(111, 255, 225, 0.05)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 0 18px rgba(111, 255, 225, 0.11),
        0 0 25px rgba(90, 162, 255, 0.1);
    overflow: hidden;
}

.brand-symbol::before,
.brand-symbol::after {
    position: absolute;
    content: "";
}

.brand-symbol::before {
    inset: 7px;
    border: 1px solid rgba(111, 255, 225, 0.5);
    border-radius: 50%;
}

.brand-symbol::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow:
        0 0 12px var(--cyan),
        0 0 26px rgba(111, 255, 225, 0.64);
}

.brand-symbol-core {
    width: 2px;
    height: 100%;
    background: linear-gradient(transparent, var(--blue), transparent);
    animation: brandSweep 3s linear infinite;
}

@keyframes brandSweep {
    from {
        transform: translateX(-15px) rotate(35deg);
    }
    to {
        transform: translateX(15px) rotate(35deg);
    }
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.11em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--cyan);
    font-size: 9px;
    letter-spacing: 0.22em;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
}

.top-link {
    position: relative;
    padding: 10px 15px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition:
        color 0.22s ease,
        background 0.22s ease;
}

.top-link::after {
    position: absolute;
    right: 15px;
    bottom: 6px;
    left: 15px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    content: "";
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.top-link:hover,
.top-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.top-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.command-button,
.system-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 11px;
}

.command-button {
    padding: 0 9px 0 12px;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease;
}

.command-button:hover {
    border-color: rgba(111, 255, 225, 0.42);
    background: rgba(111, 255, 225, 0.06);
    color: var(--text);
}

.command-button > span:first-child {
    color: var(--cyan);
    font-size: 15px;
}

kbd {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    min-height: 23px;
    padding: 2px 6px;
    border: 1px solid rgba(151, 174, 219, 0.18);
    border-bottom-color: rgba(151, 174, 219, 0.32);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
    color: #aebbd2;
    font-family: inherit;
    font-size: 9px;
    box-shadow: inset 0 -1px rgba(255, 255, 255, 0.05);
}

.system-chip {
    padding: 0 12px;
}

.live-pulse {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(104, 240, 181, 0.7);
}

.live-pulse::after {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(104, 240, 181, 0.45);
    border-radius: 50%;
    content: "";
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    from {
        opacity: 0.8;
        transform: scale(0.4);
    }
    to {
        opacity: 0;
        transform: scale(1.4);
    }
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.25s ease;
}

.mobile-menu {
    position: fixed;
    top: 92px;
    right: 18px;
    left: 18px;
    z-index: 999;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 11, 24, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.mobile-menu.open {
    display: grid;
}

.mobile-menu button {
    padding: 13px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    text-align: left;
}

.mobile-menu button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

/* Main application */

.application-shell {
    width: min(calc(100% - 44px), var(--content-width));
    min-height: calc(100vh - 100px);
    margin: 0 auto;
    padding-top: 122px;
}

.page {
    display: none;
    animation: pageEnter 0.55s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.page.active {
    display: block;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
    align-items: center;
    gap: clamp(35px, 6vw, 100px);
    min-height: 680px;
}

.eyebrow,
.section-kicker {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(111, 255, 225, 0.2);
    border-radius: 999px;
    background: rgba(111, 255, 225, 0.04);
}

.eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.hero-copy h1 {
    max-width: 850px;
    margin-top: 25px;
    font-size: clamp(46px, 6vw, 88px);
    font-weight: 620;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.gradient-text {
    display: block;
    margin-top: 9px;
    background: linear-gradient(
        105deg,
        #ffffff 4%,
        var(--cyan) 36%,
        var(--blue) 65%,
        var(--violet) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 760px;
    margin-top: 28px;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.8;
}

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

.primary-cta,
.ghost-cta,
.analyse-button,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    border-radius: 15px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.primary-cta,
.analyse-button {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.17), transparent 32%),
        linear-gradient(135deg, #477bff, #6c5ce7 55%, #24d6b2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow:
        0 16px 38px rgba(66, 104, 255, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.28);
}

.primary-cta::before,
.analyse-button::before {
    position: absolute;
    top: -120%;
    left: -30%;
    width: 26%;
    height: 340%;
    background: rgba(255, 255, 255, 0.32);
    content: "";
    transform: rotate(24deg);
    transition: left 0.6s ease;
}

.primary-cta:hover::before,
.analyse-button:hover::before {
    left: 120%;
}

.primary-cta:hover,
.analyse-button:hover {
    box-shadow:
        0 22px 54px rgba(66, 104, 255, 0.36),
        0 0 0 1px rgba(111, 255, 225, 0.18);
    transform: translateY(-2px);
}

.button-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.ghost-cta,
.back-button {
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 12px;
}

.ghost-cta:hover,
.back-button:hover {
    border-color: rgba(111, 255, 225, 0.35);
    color: var(--text);
}

.ghost-icon {
    color: var(--cyan);
    font-size: 17px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 48px;
}

.trust-strip > div {
    position: relative;
    min-width: 130px;
    padding-left: 15px;
}

.trust-strip > div::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 1px;
    background: linear-gradient(var(--cyan), transparent);
    content: "";
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip strong {
    color: #eaf0ff;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.trust-strip span {
    margin-top: 4px;
    color: #73829e;
    font-size: 10px;
}

/* Evidence core */

.evidence-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 570px;
    transform-style: preserve-3d;
}

.stage-glow {
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(90, 162, 255, 0.18),
        rgba(170, 124, 255, 0.09) 35%,
        transparent 68%
    );
    filter: blur(18px);
}

.evidence-core {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: clamp(220px, 23vw, 330px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(111, 255, 225, 0.38);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 23%),
        radial-gradient(circle at 50% 60%, rgba(90, 162, 255, 0.16), transparent 42%),
        rgba(7, 14, 31, 0.76);
    box-shadow:
        inset 0 0 60px rgba(90, 162, 255, 0.12),
        0 0 45px rgba(111, 255, 225, 0.12),
        0 0 120px rgba(90, 162, 255, 0.12);
    backdrop-filter: blur(14px);
}

.evidence-core::before,
.evidence-core::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.evidence-core::before {
    inset: 16px;
    border: 1px dashed rgba(111, 255, 225, 0.25);
    animation: slowSpin 18s linear infinite;
}

.evidence-core::after {
    inset: 43px;
    border: 1px solid rgba(90, 162, 255, 0.2);
}

.core-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(111, 255, 225, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 255, 225, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: perspective(300px) rotateX(60deg) translateY(20%);
    mask-image: radial-gradient(circle, black 24%, transparent 68%);
}

.core-scan {
    position: absolute;
    right: 0;
    left: 0;
    height: 10px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(111, 255, 225, 0.7),
        transparent
    );
    box-shadow: 0 0 22px rgba(111, 255, 225, 0.45);
    animation: coreScan 4s ease-in-out infinite;
}

@keyframes coreScan {
    0%,
    100% {
        top: 18%;
        opacity: 0.35;
    }
    50% {
        top: 77%;
        opacity: 1;
    }
}

.core-content {
    position: relative;
    z-index: 4;
    text-align: center;
}

.core-content span,
.core-content strong,
.core-content small {
    display: block;
}

.core-label {
    color: var(--cyan);
    font-size: 9px;
    letter-spacing: 0.25em;
}

.core-content strong {
    margin-top: 9px;
    font-size: clamp(31px, 4vw, 56px);
    font-weight: 550;
    letter-spacing: 0.08em;
    text-shadow: 0 0 26px rgba(111, 255, 225, 0.26);
}

.core-content small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.orbit {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(151, 174, 219, 0.16);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-one {
    width: 73%;
    aspect-ratio: 1;
    animation: slowSpin 22s linear infinite;
}

.orbit-two {
    width: 92%;
    aspect-ratio: 1;
    border-style: dashed;
    animation: reverseSpin 34s linear infinite;
}

.orbit-three {
    width: 58%;
    aspect-ratio: 1;
    border-color: rgba(111, 255, 225, 0.19);
    transform: rotateX(67deg) rotateZ(-8deg);
}

@keyframes slowSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes reverseSpin {
    to {
        transform: rotate(-360deg);
    }
}

.orbit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #07101f;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.node-one {
    top: 8%;
    left: 27%;
}

.node-two {
    right: 4%;
    bottom: 32%;
    background: var(--violet);
    box-shadow: 0 0 18px var(--violet);
}

.node-three {
    bottom: 8%;
    left: 22%;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.floating-data {
    position: absolute;
    z-index: 5;
    min-width: 120px;
    padding: 11px 13px;
    border: 1px solid rgba(151, 174, 219, 0.16);
    border-radius: 12px;
    background: rgba(7, 12, 28, 0.68);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    animation: dataFloat 4.8s ease-in-out infinite alternate;
}

.floating-data::before {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    content: "";
}

.floating-data span,
.floating-data strong {
    display: block;
}

.floating-data span {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.floating-data strong {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.data-one {
    top: 12%;
    left: 3%;
}

.data-one::before,
.data-three::before {
    right: -32px;
}

.data-two {
    top: 22%;
    right: -2%;
    animation-delay: -2.1s;
}

.data-two::before,
.data-four::before {
    left: -32px;
    transform: rotate(180deg);
}

.data-three {
    bottom: 17%;
    left: 0;
    animation-delay: -3.2s;
}

.data-four {
    right: 5%;
    bottom: 6%;
    animation-delay: -1.4s;
}

@keyframes dataFloat {
    from {
        transform: translateY(-6px);
    }
    to {
        transform: translateY(7px);
    }
}

/* Ribbon */

.intelligence-ribbon {
    display: flex;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    margin: 4px 0 92px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.ribbon-label {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.ribbon-track {
    display: flex;
    min-width: max-content;
    gap: 55px;
    color: #71809a;
    font-size: 10px;
    animation: tickerMove 28s linear infinite;
}

.ribbon-track span {
    position: relative;
}

.ribbon-track span::before {
    position: absolute;
    top: 50%;
    left: -27px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(111, 255, 225, 0.55);
    content: "";
    transform: translateY(-50%);
}

@keyframes tickerMove {
    from {
        transform: translateX(3%);
    }
    to {
        transform: translateX(-42%);
    }
}

/* Sections and cards */

.featured-zone {
    padding-bottom: 80px;
}

.section-header,
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.section-header h2,
.page-heading h1 {
    max-width: 880px;
    margin-top: 11px;
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 560;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.section-header > p,
.page-heading-copy {
    max-width: 420px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(270px, auto);
    gap: 15px;
}

.tool-card,
.input-console,
.workflow-panel,
.result-console,
.story-card,
.contact-intro,
.contact-form,
.directory-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--panel);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.04),
        0 20px 55px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
}

.spotlight-card::before {
    position: absolute;
    top: var(--spot-y, 50%);
    left: var(--spot-x, 50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(111, 255, 225, 0.12),
        rgba(90, 162, 255, 0.05) 28%,
        transparent 66%
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.tool-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 22px;
    border-radius: 21px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tool-card:hover {
    border-color: rgba(111, 255, 225, 0.32);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(90, 162, 255, 0.08);
}

.tool-card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 555px;
    padding: 28px;
}

.tool-card-wide {
    grid-column: span 2;
}

.card-noise {
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    pointer-events: none;
}

.tool-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-index {
    color: #65728b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
}

.tool-badge,
.status-mini {
    border: 1px solid rgba(111, 255, 225, 0.2);
    border-radius: 999px;
    background: rgba(111, 255, 225, 0.04);
    color: var(--cyan);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.tool-badge {
    padding: 7px 9px;
}

.status-mini {
    padding: 6px 8px;
}

.tool-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    margin: 60px auto 42px;
    border: 1px solid rgba(111, 255, 225, 0.3);
    border-radius: 35%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(145deg, rgba(90, 162, 255, 0.2), rgba(111, 255, 225, 0.06));
    box-shadow:
        inset 0 0 30px rgba(111, 255, 225, 0.08),
        0 0 60px rgba(90, 162, 255, 0.13);
    transform: rotate(45deg);
}

.tool-icon::before,
.tool-icon::after {
    position: absolute;
    border: 1px solid rgba(151, 174, 219, 0.15);
    border-radius: inherit;
    content: "";
}

.tool-icon::before {
    inset: -17px;
    animation: iconOrbit 8s linear infinite;
}

.tool-icon::after {
    inset: -34px;
    border-style: dashed;
    animation: iconOrbit 15s linear infinite reverse;
}

.tool-icon span {
    color: var(--cyan);
    font-size: 43px;
    font-weight: 300;
    text-shadow: 0 0 30px rgba(111, 255, 225, 0.5);
    transform: rotate(-45deg);
}

@keyframes iconOrbit {
    to {
        transform: rotate(360deg);
    }
}

.compact-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-top: 33px;
    border: 1px solid rgba(90, 162, 255, 0.3);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(90, 162, 255, 0.16), rgba(170, 124, 255, 0.05));
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: inset 0 0 25px rgba(90, 162, 255, 0.08);
}

.tool-card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.tool-card-content h3 {
    font-size: 20px;
    font-weight: 590;
    letter-spacing: -0.025em;
}

.tool-card-large .tool-card-content h3 {
    font-size: clamp(27px, 2.8vw, 42px);
}

.tool-card-content p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.tool-card-large .tool-card-content p {
    max-width: 540px;
    font-size: 14px;
}

.card-launch {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    background: transparent;
    color: #aab6ca;
    font-size: 10px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.tool-card:hover .card-launch {
    color: var(--cyan);
}

.card-data-preview {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    gap: 8px;
    height: 80px;
    margin: 20px 0 12px;
    padding: 0 4px;
}

.card-data-preview span {
    flex: 1;
    height: var(--h);
    min-width: 8px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(to top, rgba(90, 162, 255, 0.1), rgba(111, 255, 225, 0.68));
    box-shadow: 0 0 18px rgba(111, 255, 225, 0.08);
    transform-origin: bottom;
    animation: barPulse 4s ease-in-out infinite alternate;
}

.card-data-preview span:nth-child(2n) {
    animation-delay: -1.4s;
}

@keyframes barPulse {
    from {
        transform: scaleY(0.72);
        opacity: 0.55;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.network-visual {
    position: relative;
    z-index: 2;
    width: 170px;
    height: 105px;
    margin-top: 20px;
}

.net-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.net-a {
    top: 19px;
    left: 15px;
}

.net-b {
    top: 52px;
    left: 88px;
    background: var(--blue);
    box-shadow: 0 0 14px var(--blue);
}

.net-c {
    right: 10px;
    bottom: 10px;
    background: var(--violet);
    box-shadow: 0 0 14px var(--violet);
}

.net-line {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(111, 255, 225, 0.75), transparent);
}

.line-a {
    top: 25px;
    left: 25px;
    width: 80px;
    transform: rotate(24deg);
}

.line-b {
    top: 60px;
    left: 98px;
    width: 75px;
    transform: rotate(23deg);
}

/* Tools page */

.page-heading {
    padding-top: 18px;
}

.tool-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 90px;
}

.directory-item {
    display: grid;
    grid-template-columns: 42px 55px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 14px;
    min-height: 100px;
    padding: 15px 18px;
    border-radius: 18px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.directory-item:hover {
    border-color: rgba(111, 255, 225, 0.34);
    background:
        linear-gradient(145deg, rgba(111, 255, 225, 0.055), transparent),
        var(--panel);
    transform: translateY(-3px);
}

.directory-index {
    color: #65728b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
}

.directory-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(90, 162, 255, 0.25);
    border-radius: 15px;
    background: rgba(90, 162, 255, 0.08);
    color: var(--cyan);
    font-weight: 700;
}

.directory-copy strong,
.directory-copy small {
    display: block;
}

.directory-copy strong {
    font-size: 15px;
}

.directory-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.directory-arrow {
    color: #71809a;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.directory-item:hover .directory-arrow {
    color: var(--cyan);
    transform: translate(3px, -3px);
}

/* Workspace */

.workspace-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px;
    margin-bottom: 23px;
}

.back-button {
    min-height: 42px;
    padding: 0 14px;
}

.workspace-title h1 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 570;
    letter-spacing: -0.04em;
    line-height: 1;
}

.workspace-title p {
    max-width: 780px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
}

.workspace-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(104, 240, 181, 0.22);
    border-radius: 999px;
    background: rgba(104, 240, 181, 0.04);
    color: var(--success);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 15px;
    padding-bottom: 90px;
}

.input-console,
.workflow-panel,
.result-console {
    border-radius: 22px;
}

.input-console {
    padding: 22px;
}

.console-header,
.result-console-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.console-header span,
.console-header strong,
.result-console-header span,
.result-console-header strong,
.workflow-title span,
.workflow-title strong {
    display: block;
}

.console-header span,
.result-console-header > div > span,
.workflow-title span {
    color: var(--cyan);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.console-header strong,
.result-console-header strong,
.workflow-title strong {
    margin-top: 5px;
    font-size: 14px;
}

.console-lights {
    display: flex;
    gap: 6px;
}

.console-lights span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42506b;
}

.console-lights span:nth-child(1) {
    background: var(--danger);
}

.console-lights span:nth-child(2) {
    background: var(--orange);
}

.console-lights span:nth-child(3) {
    background: var(--success);
}

.drop-zone {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 300px;
    margin-top: 18px;
    padding: 35px;
    border: 1px dashed rgba(111, 255, 225, 0.25);
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(90, 162, 255, 0.08), transparent 58%),
        rgba(255, 255, 255, 0.018);
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.drop-zone.drag-over,
.drop-zone:hover {
    border-color: rgba(111, 255, 225, 0.62);
    background:
        radial-gradient(circle at center, rgba(111, 255, 225, 0.11), transparent 60%),
        rgba(255, 255, 255, 0.025);
    transform: translateY(-2px);
}

.drop-zone input {
    display: none;
}

.drop-zone-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-bottom: 12px;
    border: 1px solid rgba(111, 255, 225, 0.27);
    border-radius: 23px;
    background: linear-gradient(145deg, rgba(90, 162, 255, 0.14), rgba(111, 255, 225, 0.04));
    color: var(--cyan);
    font-size: 37px;
    box-shadow:
        inset 0 0 25px rgba(111, 255, 225, 0.07),
        0 0 36px rgba(90, 162, 255, 0.08);
}

.drop-zone strong {
    font-size: 18px;
}

.drop-zone small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.file-format {
    margin-top: 22px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #6f7e99;
    font-size: 8px;
    letter-spacing: 0.14em;
}

.selected-file-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.file-indicator {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(90, 162, 255, 0.1);
    color: var(--blue);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.selected-file-box strong,
.selected-file-box small {
    display: block;
}

.selected-file-box strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-box small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.selected-file-box button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
}

.analyse-button {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 14px;
}

.workflow-panel {
    padding: 22px;
}

.workflow-steps {
    position: relative;
    z-index: 2;
    margin-top: 24px;
}

.workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding-bottom: 23px;
    color: #6f7d96;
}

.workflow-step::before {
    position: absolute;
    top: 37px;
    bottom: 4px;
    left: 20px;
    width: 1px;
    background: linear-gradient(rgba(111, 255, 225, 0.22), transparent);
    content: "";
}

.workflow-step:last-child::before {
    display: none;
}

.workflow-step > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
}

.workflow-step.active > span {
    border-color: rgba(111, 255, 225, 0.34);
    background: rgba(111, 255, 225, 0.07);
    color: var(--cyan);
    box-shadow: 0 0 24px rgba(111, 255, 225, 0.08);
}

.workflow-step strong,
.workflow-step small {
    display: block;
}

.workflow-step strong {
    margin-top: 3px;
    color: #cbd5e7;
    font-size: 12px;
}

.workflow-step small {
    margin-top: 4px;
    color: #6f7d96;
    font-size: 9px;
}

.legal-note {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 184, 107, 0.18);
    border-radius: 14px;
    background: rgba(255, 184, 107, 0.035);
}

.legal-note span {
    color: var(--orange);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.legal-note p {
    margin-top: 6px;
    color: #8d8274;
    font-size: 9px;
    line-height: 1.6;
}

.result-console {
    grid-column: 1 / -1;
    min-height: 340px;
    padding: 22px;
}

.result-status {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted) !important;
    font-size: 8px !important;
    letter-spacing: 0.12em !important;
}

.result-status.ready {
    border-color: rgba(104, 240, 181, 0.24);
    color: var(--success) !important;
}

.result-placeholder {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 30px;
    text-align: center;
}

.result-radar {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 15px;
    border: 1px solid rgba(111, 255, 225, 0.2);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(111, 255, 225, 0.15) 50%, transparent 51%),
        linear-gradient(transparent 49%, rgba(111, 255, 225, 0.15) 50%, transparent 51%);
}

.result-radar::before {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(111, 255, 225, 0.13);
    border-radius: 50%;
    content: "";
}

.result-radar::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    content: "";
    transform-origin: left center;
    animation: radarSweep 2.7s linear infinite;
}

@keyframes radarSweep {
    to {
        transform: rotate(360deg);
    }
}

.result-radar span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 9px var(--cyan);
}

.result-radar span:nth-child(1) {
    top: 20px;
    right: 21px;
}

.result-radar span:nth-child(2) {
    right: 18px;
    bottom: 24px;
}

.result-radar span:nth-child(3) {
    bottom: 19px;
    left: 22px;
}

.result-placeholder h3 {
    font-size: 17px;
}

.result-placeholder p {
    max-width: 500px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.result-summary {
    width: 100%;
    max-width: 880px;
    text-align: left;
}

.result-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.result-summary-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.result-summary-card span,
.result-summary-card strong {
    display: block;
}

.result-summary-card span {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.result-summary-card strong {
    margin-top: 8px;
    font-size: 14px;
}

/* About */

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding-bottom: 90px;
}

.story-card {
    min-height: 270px;
    padding: 24px;
    border-radius: 21px;
}

.story-card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 555px;
}

.story-card-wide {
    grid-column: span 2;
}

.story-number {
    color: #65728b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
}

.story-card h2 {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin-top: 50px;
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 570;
    letter-spacing: -0.035em;
}

.story-card p {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.story-visual {
    position: absolute;
    right: 7%;
    bottom: 8%;
    left: 7%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 170px;
}

.story-visual span {
    flex: 1;
    border-radius: 12px 12px 3px 3px;
    background: linear-gradient(to top, rgba(90, 162, 255, 0.04), rgba(111, 255, 225, 0.22));
    border: 1px solid rgba(111, 255, 225, 0.1);
}

.story-visual span:nth-child(1) {
    height: 45%;
}

.story-visual span:nth-child(2) {
    height: 78%;
}

.story-visual span:nth-child(3) {
    height: 100%;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 15px;
    padding-bottom: 90px;
}

.contact-intro,
.contact-form {
    border-radius: 22px;
    padding: 28px;
}

.contact-signal {
    display: block;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(111, 255, 225, 0.27);
    border-radius: 22px;
    background:
        radial-gradient(circle, rgba(111, 255, 225, 0.24), transparent 60%);
    box-shadow: inset 0 0 26px rgba(111, 255, 225, 0.05);
}

.contact-intro h2 {
    margin-top: 35px;
    font-size: 30px;
    font-weight: 570;
    letter-spacing: -0.035em;
}

.contact-intro > p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.contact-facts {
    margin-top: 35px;
}

.contact-facts > div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.contact-facts span,
.contact-facts strong {
    display: block;
}

.contact-facts span {
    color: #65728b;
    font-size: 8px;
    letter-spacing: 0.15em;
}

.contact-facts strong {
    margin-top: 6px;
    font-size: 12px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

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

.contact-form label {
    position: relative;
    z-index: 2;
}

.contact-form label > span {
    display: block;
    margin-bottom: 8px;
    color: #8d9bb5;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent),
        rgba(3, 7, 17, 0.58);
    color: var(--text);
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.contact-form input {
    min-height: 52px;
    padding: 0 15px;
}

.contact-form textarea {
    min-height: 180px;
    padding: 15px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #526079;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(90, 162, 255, 0.28);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(111, 255, 225, 0.58);
    background:
        radial-gradient(circle at top left, rgba(111, 255, 225, 0.06), transparent 38%),
        rgba(3, 7, 17, 0.8);
    box-shadow:
        0 0 0 4px rgba(111, 255, 225, 0.055),
        0 18px 40px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.contact-form .primary-cta {
    width: fit-content;
    margin-top: 4px;
}

/* Footer */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: min(calc(100% - 44px), var(--content-width));
    margin: 0 auto;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    color: #5f6c85;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: #8290aa;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.site-footer span,
.site-footer p {
    margin-top: 4px;
    font-size: 9px;
}

/* Command palette */

.command-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: start center;
    padding: 11vh 18px 18px;
    background: rgba(2, 4, 11, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(12px);
}

.command-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.command-palette {
    width: min(670px, 100%);
    overflow: hidden;
    border: 1px solid rgba(151, 174, 219, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(90, 162, 255, 0.09), transparent 33%),
        rgba(8, 13, 28, 0.97);
    box-shadow:
        0 45px 130px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(111, 255, 225, 0.04);
    transform: translateY(-14px) scale(0.98);
    transition: transform 0.25s ease;
}

.command-overlay.open .command-palette {
    transform: translateY(0) scale(1);
}

.command-search-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-bottom: 1px solid var(--line);
}

.command-search-wrap > span {
    color: var(--cyan);
    font-size: 23px;
}

.command-search-wrap input {
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: 0;
    font-size: 15px;
}

.command-search-wrap input::placeholder {
    color: #53617a;
}

.command-heading {
    padding: 14px 16px 8px;
    color: #68768f;
    font-size: 8px;
    letter-spacing: 0.16em;
}

.command-results {
    max-height: 390px;
    overflow-y: auto;
    padding: 7px 10px 12px;
}

.command-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.command-item:hover,
.command-item.selected {
    background:
        linear-gradient(90deg, rgba(111, 255, 225, 0.08), rgba(90, 162, 255, 0.04));
}

.command-item-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
}

.command-item strong,
.command-item small {
    display: block;
}

.command-item strong {
    font-size: 12px;
}

.command-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.command-item > span:last-child {
    color: #6b7891;
}

.command-empty {
    padding: 35px 15px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.command-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 11px 15px;
    border-top: 1px solid var(--line);
    color: #68768f;
    font-size: 8px;
}

.command-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Toast */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2500;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    width: min(360px, calc(100% - 40px));
    padding: 13px;
    border: 1px solid rgba(104, 240, 181, 0.24);
    border-radius: 15px;
    background: rgba(8, 16, 29, 0.94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    backdrop-filter: blur(16px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(104, 240, 181, 0.08);
    color: var(--success);
}

.toast strong,
.toast small {
    display: block;
}

.toast strong {
    font-size: 11px;
}

.toast small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

/* Reveal animations */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Responsive */

@media (max-width: 1160px) {
    .hero-layout {
        grid-template-columns: 1fr;
        padding-top: 50px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy h1,
    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .trust-strip {
        justify-content: center;
    }

    .evidence-stage {
        min-height: 540px;
    }

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

    .tool-card-large {
        grid-row: span 1;
        min-height: 430px;
    }

    .tool-icon {
        margin: 40px auto 30px;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .result-console {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .desktop-navigation,
    .command-button,
    .system-chip {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-actions {
        margin-left: auto;
    }

    .section-header,
    .page-heading {
        display: block;
    }

    .section-header > p,
    .page-heading-copy {
        margin-top: 15px;
    }

    .tool-directory,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .story-card-large {
        grid-row: span 1;
        min-height: 390px;
    }

    .workspace-header {
        grid-template-columns: 1fr;
    }

    .workspace-state {
        width: fit-content;
    }

    .site-footer {
        display: block;
        text-align: center;
    }

    .site-footer p {
        margin-top: 14px;
    }
}

@media (max-width: 680px) {
    .top-navigation {
        top: 10px;
        right: 10px;
        left: 10px;
        border-radius: 17px;
    }

    .brand-copy strong {
        font-size: 9px;
    }

    .brand-copy small {
        font-size: 7px;
    }

    .application-shell {
        width: min(calc(100% - 24px), var(--content-width));
        padding-top: 98px;
    }

    .hero-layout {
        min-height: auto;
        padding-top: 45px;
    }

    .hero-copy h1 {
        font-size: clamp(39px, 13vw, 60px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-cta,
    .ghost-cta {
        width: 100%;
    }

    .trust-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .trust-strip > div {
        min-width: 0;
        padding-left: 9px;
    }

    .trust-strip strong {
        font-size: 11px;
    }

    .trust-strip span {
        font-size: 8px;
    }

    .evidence-stage {
        min-height: 430px;
    }

    .floating-data {
        min-width: 96px;
        padding: 9px;
    }

    .data-one,
    .data-three {
        left: 2%;
    }

    .data-two,
    .data-four {
        right: 1%;
    }

    .intelligence-ribbon {
        margin-bottom: 65px;
    }

    .section-header h2,
    .page-heading h1 {
        font-size: 38px;
    }

    .bento-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .tool-card-large,
    .tool-card-wide,
    .story-card-large,
    .story-card-wide {
        grid-column: auto;
    }

    .tool-card-large {
        min-height: 430px;
        padding: 22px;
    }

    .tool-icon {
        width: 95px;
        height: 95px;
        margin: 40px auto 30px;
    }

    .tool-icon span {
        font-size: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .workspace-title h1 {
        font-size: 38px;
    }

    .input-console,
    .workflow-panel,
    .result-console,
    .contact-intro,
    .contact-form {
        padding: 17px;
    }

    .drop-zone {
        min-height: 255px;
        padding: 24px 16px;
    }

    .result-summary-grid {
        grid-template-columns: 1fr;
    }

    .directory-item {
        grid-template-columns: 34px 46px minmax(0, 1fr) 24px;
        gap: 9px;
        padding: 13px;
    }

    .directory-icon {
        width: 43px;
        height: 43px;
    }

    .directory-copy strong {
        font-size: 12px;
    }

    .directory-copy small {
        font-size: 8px;
    }
}

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

    .cursor-glow {
        display: none;
    }
}
