:root {
    color-scheme: dark;
    --background: #030706;
    --surface: #07110d;
    --surface-raised: #0b1812;
    --line: #1f5536;
    --green: #55ff8a;
    --green-strong: #00ff66;
    --green-muted: #9beeb6;
    --text: #e7ffef;
    --muted: #99b9a4;
    --amber: #ffc857;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 14% 12%, rgba(0, 255, 102, 0.08), transparent 28rem),
        linear-gradient(180deg, #030706 0%, #06100b 52%, #030706 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--green);
}

button,
select {
    font: inherit;
}

button,
a,
select,
[tabindex="0"] {
    outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--amber);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 50;
    padding: 10px 14px;
    background: var(--text);
    color: #000;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(85, 255, 138, 0.22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    text-decoration: none;
}

.brand-prompt {
    color: var(--green-strong);
    text-shadow: 0 0 14px rgba(0, 255, 102, 0.7);
}

.site-header nav,
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-header nav a,
footer nav a {
    color: var(--green-muted);
    text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
    color: var(--green-strong);
}

main,
footer {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    max-width: 860px;
    padding: clamp(64px, 10vw, 118px) 0 48px;
}

.eyebrow,
.section-kicker,
.window-label,
.card-tag {
    margin: 0 0 12px;
    color: var(--green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(2.7rem, 8vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-shadow: 0 0 36px rgba(0, 255, 102, 0.2);
}

.hero-copy {
    max-width: 800px;
    margin: 30px 0 18px;
    color: #c7e8d2;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.disclaimer {
    display: inline-flex;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 200, 87, 0.38);
    border-radius: 999px;
    color: #ffe3a7;
    background: rgba(255, 200, 87, 0.06);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
}

.simulator-shell {
    --mode-accent: var(--green-strong);
    --mode-line: var(--line);
    --mode-text: #b7ffc9;
    margin: 10px 0 clamp(88px, 11vw, 140px);
    border: 1px solid var(--mode-line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(7, 17, 13, 0.92);
    box-shadow: var(--shadow);
}

.simulator-shell.style-chatgpt {
    --mode-accent: #69efbd;
    --mode-line: #286c58;
    --mode-text: #c8ffeb;
}

.simulator-shell.style-claude {
    --mode-accent: #ffb66b;
    --mode-line: #74502d;
    --mode-text: #ffe1c2;
}

.simulator-shell.style-gemini {
    --mode-accent: #76bdff;
    --mode-line: #315f86;
    --mode-text: #cde8ff;
}

.simulator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--mode-line);
}

.simulator-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.window-dots {
    display: flex;
    gap: 8px;
    padding-top: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #10261a;
}

.window-dots span:first-child {
    background: var(--mode-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--mode-accent) 55%, transparent);
}

.controls {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 20px 26px;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--mode-line);
}

.controls label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

select,
button {
    min-height: 44px;
    border: 1px solid #2d6b47;
    border-radius: 8px;
    background: #06100b;
    color: var(--text);
}

select {
    width: 100%;
    padding: 0 36px 0 12px;
}

button {
    padding: 0 15px;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    border-color: var(--green);
    color: var(--green);
}

.simulator-shell .primary-button {
    border-color: var(--mode-accent);
    background: var(--mode-accent);
    color: #001d0b;
}

.primary-button:hover {
    background: #8affae;
    color: #001d0b;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-frame {
    background: #020604;
}

.terminal-toolbar,
.terminal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    padding: 0 18px;
    color: #78a987;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.72rem;
}

.terminal-toolbar {
    border-bottom: 1px solid #102a1b;
}

.terminal-footer {
    border-top: 1px solid #102a1b;
}

.local-badge {
    color: var(--mode-accent);
}

.agent-terminal {
    min-height: 480px;
    max-height: 65vh;
    overflow: auto;
    padding: 22px 20px 44px;
    color: var(--mode-text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(0.77rem, 1.6vw, 0.94rem);
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-color: #1f5536 #020604;
    cursor: text;
}

.agent-terminal::after {
    content: "";
    display: inline-block;
    width: 0.65em;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.17em;
    background: var(--mode-accent);
    animation: cursor-blink 1s steps(1) infinite;
}

.agent-terminal.complete::after {
    background: transparent;
    border: 1px solid var(--mode-accent);
}

@keyframes cursor-blink {
    0%, 47% { opacity: 1; }
    48%, 100% { opacity: 0; }
}

.content-section {
    padding: 0 0 clamp(78px, 10vw, 120px);
}

.content-section > h2 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.content-section > p:not(.section-kicker) {
    max-width: 820px;
    color: #bad7c4;
    font-size: 1.04rem;
}

.steps-grid,
.style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 34px 0;
}

.steps-grid article,
.style-cards article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 34, 23, 0.92), rgba(5, 13, 9, 0.92));
}

.steps-grid h3,
.style-cards h3 {
    margin: 10px 0;
    font-size: 1.08rem;
}

.steps-grid p,
.style-cards p {
    margin: 0;
    color: var(--muted);
}

.step-number {
    color: var(--green-strong);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
}

.style-cards article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.style-cards .card-tag {
    margin-bottom: 4px;
}

.mode-shortcut {
    margin-top: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.style-cards p + .mode-shortcut {
    margin-top: 22px;
}

.faq-section details {
    max-width: 900px;
    border-top: 1px solid var(--line);
}

.faq-section details:last-of-type {
    border-bottom: 1px solid var(--line);
}

.faq-section summary {
    padding: 20px 34px 20px 0;
    cursor: pointer;
    color: var(--text);
    font-size: 1.04rem;
    font-weight: 700;
}

.faq-section details p {
    max-width: 780px;
    margin: 0;
    padding: 0 0 22px;
    color: var(--muted);
}

footer {
    display: grid;
    gap: 18px;
    padding: 38px 0 64px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

footer p {
    margin: 0;
}

.trademark-note {
    max-width: 820px;
    font-size: 0.78rem;
}

.simulator-shell:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #020604;
}

.simulator-shell:fullscreen .agent-terminal {
    min-height: calc(100vh - 236px);
    max-height: calc(100vh - 236px);
}

@media (max-width: 850px) {
    .controls,
    .steps-grid,
    .style-cards {
        grid-template-columns: 1fr;
    }

    .button-row button {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .site-header nav {
        gap: 14px;
        font-size: 0.86rem;
    }

    .hero {
        padding-top: 58px;
    }

    .disclaimer {
        border-radius: 10px;
    }

    .simulator-heading,
    .controls {
        padding-right: 16px;
        padding-left: 16px;
    }

    .agent-terminal {
        min-height: 420px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .terminal-toolbar,
    .terminal-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .agent-terminal::after {
        animation: none;
    }
}
