:root {
    --bg: #070b12;
    --panel: rgba(14, 23, 36, 0.88);
    --panel-strong: #0e1724;
    --panel-soft: rgba(17, 29, 45, 0.68);
    --border: rgba(150, 177, 207, 0.16);
    --border-strong: rgba(30, 216, 255, 0.42);
    --text: #f4f8fc;
    --muted: #92a4b8;
    --cyan: #1ed8ff;
    --cyan-strong: #00b8e8;
    --green: #43e097;
    --red: #ff5e6c;
    --amber: #ffbd4a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
}

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

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

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.ambient {
    position: fixed;
    width: 48vw;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .11;
    pointer-events: none;
}

.ambient-one {
    top: -20vw;
    right: -7vw;
    background: var(--cyan);
}

.ambient-two {
    left: -24vw;
    bottom: -30vw;
    background: #2764ff;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(90, 135, 174, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 135, 174, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    pointer-events: none;
}

.topbar {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto 0;
    height: 68px;
    padding: 0 clamp(18px, 4vw, 64px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 18, .8);
    backdrop-filter: blur(18px);
}

.back-link,
.project-brand {
    color: var(--text);
    text-decoration: none;
}

.back-link {
    display: flex;
    gap: 10px;
    align-items: center;
    width: max-content;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.back-link span:first-child {
    color: var(--cyan);
    font-size: 1.15rem;
}

.back-link:hover {
    color: var(--text);
}

.project-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.brand-symbol {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    box-shadow: inset 0 0 16px rgba(30, 216, 255, .14), 0 0 18px rgba(30, 216, 255, .12);
}

.brand-divider {
    color: var(--cyan);
}

.demo-label {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.demo-label span,
.activity-note span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.experience {
    min-height: 100vh;
    padding: 68px 0 62px;
}

.story-navigation {
    position: fixed;
    z-index: 20;
    top: 68px;
    left: 0;
    bottom: 62px;
    width: 184px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid var(--border);
    background: rgba(7, 11, 18, .45);
}

.story-step {
    width: 100%;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #667a90;
    cursor: pointer;
    text-align: left;
    font-size: .69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: .24s ease;
}

.story-step span {
    color: #405167;
    font-family: "JetBrains Mono", monospace;
    font-size: .63rem;
}

.story-step:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .025);
}

.story-step.is-active {
    color: var(--text);
    border-color: rgba(30, 216, 255, .22);
    background: linear-gradient(90deg, rgba(30, 216, 255, .1), transparent);
}

.story-step.is-active span {
    color: var(--cyan);
}

.slides-viewport {
    position: relative;
    height: calc(100vh - 130px);
    margin-left: 184px;
}

.story-slide {
    position: absolute;
    inset: 0;
    padding: clamp(32px, 4vh, 58px) clamp(30px, 5vw, 80px);
    overflow-y: auto;
    opacity: 0;
    transform: translateX(32px);
    pointer-events: none;
    transition: opacity .36s ease, transform .36s ease;
}

.story-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.story-slide.is-leaving-left {
    opacity: 0;
    transform: translateX(-32px);
}

.hero-content,
.hero-visual,
.section-heading,
.comparison-grid,
.demo-workspace,
.pipeline,
.terminal-card,
.cnqi-layout,
.impact-grid,
.outcome-strip,
.results-actions {
    position: relative;
    z-index: 2;
}

#visao-geral {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(28px, 4vw, 72px);
}

#visao-geral[hidden] {
    display: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.eyebrow > span {
    width: 30px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.fictional-data-notice {
    max-width: 490px;
    margin: 15px 0 18px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 189, 74, .38);
    border-left: 3px solid var(--amber);
    border-radius: 4px;
    background: rgba(255, 189, 74, .075);
}

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

.fictional-data-notice strong {
    margin-bottom: 5px;
    color: var(--amber);
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
    letter-spacing: .06em;
}

.fictional-data-notice span {
    color: #c8d2dc;
    font-size: .69rem;
    line-height: 1.48;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(3.5rem, 5.5vw, 7.2rem);
    line-height: .9;
    letter-spacing: -.075em;
    text-transform: uppercase;
}

h1 span,
h2 span {
    color: var(--cyan);
    text-shadow: 0 0 28px rgba(30, 216, 255, .17);
}

.hero-description {
    max-width: 660px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: clamp(1rem, 1.22vw, 1.2rem);
    line-height: 1.72;
}

.technology-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.technology-row span {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #9db0c4;
    background: rgba(255, 255, 255, .025);
    font-family: "JetBrains Mono", monospace;
    font-size: .66rem;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 1px solid var(--cyan);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .22s ease;
}

.primary-button {
    background: var(--cyan);
    color: #031119;
    box-shadow: 0 12px 36px rgba(30, 216, 255, .16);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #70e9ff;
    box-shadow: 0 16px 44px rgba(30, 216, 255, .25);
}

.secondary-button {
    color: var(--cyan);
    background: transparent;
}

.hero-visual {
    min-height: min(57vh, 610px);
    display: grid;
    place-items: center;
}

.window-preview {
    width: min(100%, 720px);
    overflow: hidden;
    border: 1px solid rgba(30, 216, 255, .35);
    border-radius: 10px;
    background: #e9eef3;
    box-shadow: var(--shadow), 0 0 55px rgba(30, 216, 255, .08);
    transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
}

.window-toolbar {
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #74879a;
    background: #0e1724;
    font-family: "JetBrains Mono", monospace;
    font-size: .6rem;
}

.window-toolbar i,
.terminal-header i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3c4a5a;
}

.window-toolbar span {
    margin-left: 8px;
}

.window-preview img {
    width: 100%;
    display: block;
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(30, 216, 255, .12);
    border-radius: 50%;
    animation: orbit 16s linear infinite;
}

.visual-orbit-one {
    width: 80%;
    aspect-ratio: 1;
}

.visual-orbit-two {
    width: 62%;
    aspect-ratio: 1;
    animation-direction: reverse;
    animation-duration: 22s;
}

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

.floating-stat {
    position: absolute;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: rgba(7, 15, 25, .91);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .36);
    backdrop-filter: blur(10px);
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
    font-weight: 600;
}

.floating-stat-one {
    top: 8%;
    right: 1%;
    color: var(--green);
}

.floating-stat-one span {
    margin-right: 7px;
    color: var(--cyan);
}

.floating-stat-two {
    bottom: 6%;
    left: 0;
    display: flex;
    flex-direction: column;
    color: var(--muted);
}

.floating-stat-two strong {
    color: var(--cyan);
    font-size: 1.05rem;
}

.section-heading {
    max-width: 940px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.65;
}

.compact-heading {
    margin-bottom: 22px;
}

.comparison-switch {
    width: max-content;
    margin: 0 auto 20px;
    padding: 4px;
    display: flex;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(10, 18, 28, .82);
}

.comparison-focus,
.report-tab {
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.comparison-focus.is-active,
.report-tab.is-active {
    color: #031119;
    background: var(--cyan);
}

.comparison-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.comparison-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-soft);
    transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}

.comparison-grid[data-focus="before"] .comparison-after,
.comparison-grid[data-focus="after"] .comparison-before {
    opacity: .22;
    transform: scale(.96);
}

.comparison-grid[data-focus="before"] .comparison-before,
.comparison-grid[data-focus="after"] .comparison-after {
    border-color: var(--cyan);
}

.comparison-header {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-header span {
    font-family: "JetBrains Mono", monospace;
    color: var(--cyan);
    font-size: .68rem;
    font-weight: 700;
}

.comparison-header strong {
    font-size: .88rem;
}

.screenshot-shell {
    aspect-ratio: 1.9 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #05080c;
}

.screenshot-shell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-details {
    padding: 13px 3px 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comparison-details span {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--muted);
    font-size: .63rem;
}

.comparison-arrow {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(30, 216, 255, .25);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 1.3rem;
    box-shadow: inset 0 0 24px rgba(30, 216, 255, .08);
}

.demo-workspace {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    gap: 20px;
}

.wizard-card,
.activity-card,
.terminal-card,
.report-preview,
.cnqi-story,
.impact-card {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.wizard-card {
    overflow: hidden;
}

.wizard-topbar,
.activity-header,
.terminal-header,
.report-preview-header {
    min-height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.wizard-step-indicator {
    color: var(--cyan);
}

.wizard-progress {
    height: 2px;
    background: rgba(255, 255, 255, .04);
}

.wizard-progress span {
    display: block;
    width: 20%;
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    transition: width .28s ease;
}

.wizard-screen {
    min-height: 350px;
    padding: clamp(30px, 5vh, 58px) clamp(24px, 4vw, 58px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wizard-step-label {
    margin-bottom: 10px;
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
    letter-spacing: .11em;
}

.wizard-screen h3 {
    margin-bottom: 26px;
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    letter-spacing: -.035em;
}

.wizard-options {
    width: min(100%, 630px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wizard-option,
.wizard-submit {
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
}

.wizard-option small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 400;
}

.wizard-option:hover,
.wizard-option.is-selected {
    border-color: var(--cyan);
    background: rgba(30, 216, 255, .09);
    transform: translateY(-2px);
}

.wizard-option.option-danger:hover {
    border-color: var(--red);
    background: rgba(255, 94, 108, .1);
}

.wizard-field {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    background: #09111c;
}

.wizard-submit {
    grid-column: 1 / -1;
    min-height: 50px;
    color: #031119;
    border-color: var(--green);
    background: var(--green);
}

.wizard-back {
    margin-top: 20px;
    padding: 8px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: .72rem;
}

.wizard-back:hover {
    color: var(--text);
}

.wizard-summary {
    grid-column: 1 / -1;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #09111c;
    text-align: left;
}

.wizard-summary div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: var(--muted);
    font-size: .75rem;
}

.wizard-summary div:last-child {
    border-bottom: 0;
}

.wizard-summary strong {
    color: var(--text);
}

.activity-card {
    min-height: 442px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.activity-header span:last-child {
    color: var(--cyan);
}

.activity-empty {
    flex: 1;
    padding: 30px;
    display: grid;
    place-items: center;
    align-content: center;
    color: #5d7187;
    text-align: center;
}

.activity-empty > span {
    color: var(--cyan);
    font-size: 2.5rem;
}

.activity-empty p {
    max-width: 220px;
    line-height: 1.55;
}

.activity-list {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-left: 2px solid var(--green);
    border-radius: 4px;
    background: rgba(255, 255, 255, .025);
}

.activity-item strong,
.activity-item span {
    display: block;
}

.activity-item strong {
    margin-bottom: 4px;
    font-size: .78rem;
}

.activity-item span {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: .6rem;
}

.activity-note {
    min-height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    color: #5d7187;
    font-size: .61rem;
}

.pipeline {
    max-width: 1120px;
    margin: 44px auto 35px;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr;
    align-items: center;
}

.pipeline-node {
    min-height: 135px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel-soft);
    transition: .25s ease;
}

.pipeline-node span {
    margin-bottom: 16px;
    color: #4a5e74;
    font-family: "JetBrains Mono", monospace;
    font-size: .65rem;
}

.pipeline-node strong {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.pipeline-node small {
    color: var(--muted);
    line-height: 1.4;
}

.pipeline-node.is-running,
.pipeline-node.is-complete {
    border-color: var(--cyan);
    box-shadow: inset 0 0 28px rgba(30, 216, 255, .07), 0 0 22px rgba(30, 216, 255, .07);
}

.pipeline-node.is-complete span {
    color: var(--green);
}

.pipeline-connection {
    height: 1px;
    background: #25374a;
    position: relative;
    overflow: visible;
}

.pipeline-connection::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0;
}

.pipeline-connection.is-running::after {
    opacity: 1;
    animation: dataTravel .6s linear forwards;
}

.pipeline-connection.is-complete {
    background: var(--cyan);
}

@keyframes dataTravel {
    from { left: 0; }
    to { left: calc(100% - 5px); }
}

.terminal-card {
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
}

.terminal-header {
    justify-content: flex-start;
    gap: 7px;
}

.terminal-header span {
    margin-left: 8px;
    color: #60758b;
}

.terminal-header button {
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid var(--cyan);
    border-radius: 3px;
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
    font-size: .6rem;
}

.terminal-header button:disabled {
    opacity: .45;
    cursor: wait;
}

.terminal-output {
    min-height: 165px;
    padding: 18px 20px;
    color: #d7e4ee;
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    line-height: 1.7;
}

.terminal-output p {
    margin: 0 0 4px;
}

.terminal-output .terminal-muted { color: #53677c; }
.terminal-output .terminal-info { color: var(--cyan); }
.terminal-output .terminal-success { color: var(--green); }
.terminal-output .terminal-key { color: var(--amber); }

.cnqi-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
    gap: 22px;
}

.cnqi-story {
    padding: 20px;
}

.process-line {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.process-line span {
    font-family: "JetBrains Mono", monospace;
    font-size: .64rem;
    font-weight: 800;
}

.old-process span { color: var(--red); }
.new-process span { color: var(--green); }

.process-line p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.55;
}

.report-controls {
    margin: 18px 0;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.report-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.report-metric {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, .025);
}

.report-metric span,
.report-metric strong {
    display: block;
}

.report-metric span {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .62rem;
    text-transform: uppercase;
}

.report-metric strong {
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
}

.report-preview {
    overflow: hidden;
}

.report-preview-header span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.report-preview-header span:last-child {
    color: var(--green);
}

.report-document {
    height: 450px;
    overflow: auto;
    padding: 20px 17px;
    color: #263342;
    background: #f8fafc;
}

.report-fictional-notice {
    padding: 8px 10px;
    border: 1px solid #eac978;
    border-radius: 4px;
    color: #815400;
    background: #fff4d2;
    font-family: "JetBrains Mono", monospace;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.report-document h3 {
    margin: 17px 0 7px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.report-description {
    margin-bottom: 21px;
    color: #637183;
    font-size: .69rem;
    line-height: 1.5;
}

.report-document h4 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9e2eb;
    font-size: .78rem;
}

.report-table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    min-width: 630px;
    border-collapse: collapse;
    color: #334253;
    font-size: .63rem;
}

.report-table th,
.report-table td {
    padding: 10px 8px;
    border: 1px solid #dce4ec;
    text-align: left;
    vertical-align: top;
}

.report-table th {
    background: #e8eef4;
    font-weight: 800;
}

.report-table tbody tr:nth-child(odd) {
    background: #fff0ef;
}

.report-table tbody tr:nth-child(even) {
    background: #fff;
}

.report-table td:first-child {
    color: #175e82;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
}

.impact-grid {
    max-width: 1120px;
    margin: 30px auto 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.impact-card {
    min-height: 210px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-card > span {
    margin-bottom: 20px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: .63rem;
    letter-spacing: .08em;
}

.impact-card strong {
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: clamp(2rem, 3.6vw, 3.7rem);
    letter-spacing: -.055em;
}

.impact-card strong i {
    font-style: normal;
}

.impact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.impact-card-primary {
    border-color: var(--cyan);
    background: linear-gradient(145deg, rgba(30, 216, 255, .1), var(--panel));
}

.outcome-strip {
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .02);
}

.outcome-strip span {
    padding: 6px 10px;
    color: #afbdca;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.outcome-strip span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--green);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.story-footer {
    position: fixed;
    z-index: 30;
    inset: auto 0 0 184px;
    height: 62px;
    padding: 0 clamp(24px, 5vw, 78px);
    display: grid;
    grid-template-columns: 42px minmax(100px, 1fr) auto 42px;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border);
    background: rgba(7, 11, 18, .88);
    backdrop-filter: blur(18px);
}

.slide-control {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}

.slide-control:hover:not(:disabled) {
    color: var(--cyan);
    border-color: var(--cyan);
}

.slide-control:disabled {
    opacity: .24;
    cursor: default;
}

.slide-progress {
    height: 2px;
    overflow: hidden;
    background: #1e2c3c;
}

.slide-progress span {
    display: block;
    width: calc(100% / 6);
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transition: width .3s ease;
}

.slide-counter {
    color: #52677d;
    font-family: "JetBrains Mono", monospace;
    font-size: .7rem;
}

.slide-counter strong {
    color: var(--text);
    font-size: .9rem;
}

@media (max-width: 1120px) {
    .story-navigation {
        top: 68px;
        right: 0;
        bottom: auto;
        width: auto;
        height: 48px;
        padding: 0 18px;
        flex-direction: row;
        justify-content: center;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
    }

    .story-step {
        width: auto;
        min-width: max-content;
        padding: 9px 10px;
    }

    .story-step span { display: none; }

    .slides-viewport {
        height: calc(100vh - 178px);
        margin: 48px 0 0;
    }

    .story-footer { left: 0; }

    #visao-geral {
        grid-template-columns: 1fr 1fr;
    }

    .pipeline {
        grid-template-columns: 1fr 38px 1fr 38px 1fr 38px 1fr;
    }
}

@media (max-width: 820px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        overflow-y: auto;
    }

    .topbar {
        grid-template-columns: auto 1fr;
    }

    .project-brand { justify-self: end; }
    .demo-label { display: none; }

    .story-navigation {
        justify-content: flex-start;
    }

    .slides-viewport {
        height: calc(100dvh - 178px);
    }

    .story-slide {
        padding: 30px 20px;
    }

    #visao-geral {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        padding-top: 12px;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-visual {
        min-height: 350px;
    }

    .window-preview { transform: none; }
    .floating-stat-one { top: 0; right: 0; }
    .floating-stat-two { bottom: 0; }

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

    .comparison-arrow {
        margin: -4px auto;
        transform: rotate(90deg);
    }

    .comparison-grid[data-focus="before"] .comparison-after,
    .comparison-grid[data-focus="after"] .comparison-before {
        display: none;
    }

    .demo-workspace,
    .cnqi-layout {
        grid-template-columns: 1fr;
    }

    .pipeline {
        margin-top: 28px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pipeline-node { min-height: 96px; }
    .pipeline-connection { width: 1px; height: 22px; margin: 0 auto; }
    .pipeline-connection.is-running::after { animation: dataTravelVertical .6s linear forwards; }

    @keyframes dataTravelVertical {
        from { top: 0; left: -2px; }
        to { top: calc(100% - 5px); left: -2px; }
    }

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

    .impact-card { min-height: 150px; }
    .report-document { height: 360px; }
}

@media (max-width: 560px) {
    .topbar {
        height: 58px;
        padding: 0 14px;
    }

    .back-link span:last-child { display: none; }
    .project-brand { font-size: .63rem; letter-spacing: .1em; }
    .brand-symbol { width: 29px; height: 29px; }

    .experience { padding-top: 58px; }
    .story-navigation { top: 58px; height: 44px; padding: 0 10px; }
    .story-step { font-size: .61rem; padding: 8px; }
    .slides-viewport { height: calc(100dvh - 158px); margin-top: 44px; }
    .story-footer { height: 56px; padding: 0 13px; grid-template-columns: 38px 1fr auto 38px; gap: 9px; }
    .story-slide { padding: 24px 14px; }

    .eyebrow { font-size: .56rem; }
    .section-heading h2 { font-size: 1.9rem; }
    .section-heading p { font-size: .8rem; }

    .technology-row span { font-size: .57rem; }
    .hero-visual { min-height: 290px; }
    .floating-stat { display: none; }

    .comparison-header { min-height: 40px; }
    .comparison-header strong { font-size: .72rem; }
    .comparison-details { display: none; }

    .wizard-options { grid-template-columns: 1fr; }
    .wizard-submit, .wizard-summary { grid-column: auto; }
    .wizard-screen { min-height: 330px; padding: 24px 16px; }
    .activity-card { min-height: 250px; }

    .terminal-output { font-size: .57rem; }
    .terminal-header span { display: none; }

    .report-metrics { grid-template-columns: 1fr; }
    .report-document { height: 300px; }

    .results-actions { flex-direction: column; }
}

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