@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg: #080808;
    --bg-alt: #0e0e0e;
    --surface: #141414;
    --border: #1e1e1e;
    --text: #d4d4d4;
    --text-muted: #a0a0a0;
    --accent: #e8873a;
    --green: #e8873a;
    --red: #f85149;
    --yellow: #d29922;
    --primary: #e8873a;
    --font: 'Google Sans Mono', 'Fira Code', monospace;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    background: var(--bg);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

em {
    font-style: normal;
    color: var(--accent);
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.badge {
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.1rem 0.4rem;
    border-radius: 2rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.2s ease, left 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.nav-links a:hover::after {
    width: 60%;
    left: 20%;
}

.nav-links a.nav-active {
    color: var(--accent);
}

.nav-links a.nav-active::after {
    width: 60%;
    left: 20%;
    background: var(--accent);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: var(--text) !important;
    transition: all 0.15s ease;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}

/* ─── HERO ─── */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #080808 0%, #0c1524 50%, #0f1a2e 100%);
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.typewriter-heading {
    height: 13rem;
    overflow: hidden;
}

.typewriter-line {
    display: block;
}

#typewriter-line2 em {
    font-style: italic;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: cursor-blink 0.75s step-end infinite;
    margin-left: 2px;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 520px;
}

/* ─── CLONE COUNTER ─── */
.clone-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: var(--font);
}

.counter-fire {
    font-size: 1.1rem;
}

.counter-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    transition: transform 0.2s ease;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.cta-counter {
    justify-content: center;
    margin-top: 1.5rem;
}

/* ─── GITHUB LINKS ─── */
.github-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.gh-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.gh-link svg,
.gh-link .gh-icon {
    vertical-align: middle;
}

.gh-link:hover {
    color: #fff;
}

.cta-gh-links {
    justify-content: center;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.btn.primary {
    background: #fff;
    color: #000;
    font-weight: 700;
    border: 2px solid var(--accent);
}

.btn.primary:hover {
    background: var(--accent);
    color: #000;
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.btn.ghost:hover {
    border-color: var(--text-muted);
    text-decoration: none;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    border: 1px solid rgba(56, 152, 236, 0.3);
    box-shadow: 0 0 15px rgba(56, 152, 236, 0.15), 0 0 40px rgba(56, 152, 236, 0.06);
    transform: none;
    transition: box-shadow 0.4s ease;
}

.hero-img:hover {
    box-shadow: 0 0 20px rgba(56, 152, 236, 0.25), 0 0 60px rgba(56, 152, 236, 0.1);
}

/* ─── MARQUEE STRIP ─── */
.marquee-strip {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 0;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-text {
    font-family: 'Doto', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    padding: 0 1rem;
}

.marquee-text .chevron {
    color: #5ef0ff;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0.3rem;
    text-shadow: 0 0 6px rgba(94, 240, 255, 0.4);
}

.marquee-text .marquee-dot {
    color: var(--accent);
    font-size: 1rem;
    margin: 0 2rem;
    vertical-align: middle;
    text-shadow: 0 0 8px rgba(232, 135, 58, 0.4);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-reverse .marquee-track {
    animation: marquee-scroll-reverse 25s linear infinite;
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ─── SECTIONS ─── */
.section {
    padding: 6rem 0;
}

.section.dark {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ─── PAIN CARDS ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pain-card,
.audience-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.pain-card .pain-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.pain-card h4,
.audience-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #5ef0ff;
}

.pain-card p,
.audience-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* ─── VALUE GRID ─── */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.value-card:last-child,
.value-card:nth-last-child(2) {
    border-bottom: none;
}

.value-num {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #5ef0ff;
}

.value-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* ─── STEPS ─── */
.steps {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 0;
}

.step .code-block {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step .code-block code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    font-size: 0.78rem;
}

.step .code-block:hover {
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.step .code-block:hover code {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.step-body {
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}

.step-body h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #5ef0ff;
}

.step-body p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.copy-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── COPY TOAST ─── */
.copy-toast {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: #141414;
    color: var(--primary);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--primary);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

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

.code-block code {
    border: none;
    background: none;
    padding: 0;
    color: var(--text);
}

/* ─── FILE WINDOW ─── */
.file-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: var(--red);
}

.dot.yellow {
    background: var(--yellow);
}

.dot.green {
    background: var(--green);
}

.window-title {
    margin-left: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.file-tree {
    padding: 0.5rem 0;
}

.tree-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.tree-row:hover {
    background: rgba(232, 135, 58, 0.04);
}

.tree-row .desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

/* ─── CONTENT BROWSER ─── */
.browser-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.browser-tab {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    font-family: var(--font);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-tab:hover {
    border-color: #2a2a2a;
    color: var(--text);
}

.browser-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.tab-count {
    font-size: 0.72rem;
    opacity: 0.7;
}

.browser-tab.active .tab-count {
    opacity: 1;
}

.content-browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.browser-body {
    padding: 0.5rem 0;
}

.browser-folder {
    border-bottom: 1px solid var(--border);
}

.browser-folder:last-of-type {
    border-bottom: none;
}

.folder-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    list-style: none;
    gap: 0.65rem;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.folder-row::-webkit-details-marker {
    display: none;
}

.folder-row::marker {
    display: none;
    content: '';
}

.folder-row:hover {
    background: rgba(232, 135, 58, 0.04);
}

.folder-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.folder-name {
    font-weight: 600;
    color: var(--text);
}

.folder-badge {
    font-size: 0.7rem;
    background: rgba(232, 135, 58, 0.12);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.folder-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.folder-row::after {
    content: '+';
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.browser-folder[open]>.folder-row::after {
    content: '−';
}

.folder-files {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
}

.browser-file {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.25rem 0.55rem 2.75rem;
    gap: 0.65rem;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.browser-file:hover {
    background: rgba(232, 135, 58, 0.03);
}

.file-icon {
    font-size: 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.file-name {
    color: var(--text);
    font-weight: 500;
}

.file-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-left: auto;
    text-align: right;
}

.root-file {
    padding-left: 1.25rem;
}

.browser-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 1.25rem;
}

.browser-folder.browser-hidden,
.browser-file.browser-hidden,
.browser-divider.browser-hidden {
    display: none;
}

/* ─── VIBE SECTION ─── */
.vibe-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    border-top: 1px solid var(--border);
}

.vibe-answer {
    text-align: center;
    margin-bottom: 2.5rem;
}

.vibe-big {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.vibe-answer>p:last-child {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.vibe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.vibe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
}

.vibe-q {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #5ef0ff;
}

.vibe-a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.vibe-bottom {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.vibe-bottom h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.vibe-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(63, 185, 80, 0.06) 0%, transparent 60%);
    border-top: 1px solid var(--border);
}

.cta-section .hero-sub {
    margin: 0 auto 2rem;
    text-align: center;
    max-width: 500px;
}

.cta-section .cta-row {
    justify-content: center;
}

.cta-section h2 {
    text-align: center;
}

/* ─── FOOTER ─── */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--text);
}

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    /* Nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(16px);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text) !important;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: none !important;
    }

    .nav-links a::after {
        bottom: -2px;
        height: 2px;
    }

    .nav-links a.nav-active {
        color: var(--accent) !important;
    }

    .nav-links .btn-nav {
        margin-top: 1rem;
        text-align: center;
        padding: 0.75rem;
        border-radius: 8px;
    }

    /* Steps grid */
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-sub {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-img {
        max-width: 220px;
        transform: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }

    .hero-img:hover {
        transform: none;
    }

    .eyebrow {
        font-size: 0.65rem;
        margin-bottom: 0.75rem;
    }

    .cta-row {
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Grids */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Steps */
    .step {
        gap: 1rem;
    }

    .step-num {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .step-body h4 {
        font-size: 1rem;
    }

    /* Buttons */
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    /* File window */
    .file-window {
        font-size: 0.8rem;
    }

    .tree-row {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .tree-row .desc {
        margin-left: 0;
        font-size: 0.7rem;
        flex-basis: 100%;
        padding-left: 1.5rem;
    }

    /* Code blocks */
    .code-block {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    .code-block code {
        word-break: break-all;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-split {
        gap: 2rem;
    }

    .hero-img {
        max-width: 360px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

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

/* ─── FAQ SECTION ─── */
.faq-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.window-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.faq-header {
    padding: 2.5rem 2.5rem 2rem;
}

.faq-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: left;
}

.faq-blockquote {
    border-left: 3px solid var(--border);
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 6px 6px 0;
}

/* ─── FAQ ACCORDION ─── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #2a2a2a;
}

.faq-item summary {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-num {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 1.5rem;
}

.faq-q {
    flex: 1;
}

.faq-q::first-letter {
    color: var(--accent);
}

.faq-toggle {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
}

.faq-toggle::before {
    content: '+';
}

.faq-item[open] .faq-toggle::before {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 3.75rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: -0.25rem;
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */

/* ─── Base hidden state for all animated elements ─── */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* ─── Directional hidden states ─── */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

/* ─── Stagger container: children start hidden ─── */
[data-animate="stagger"] {
    opacity: 1;
    transform: none;
}

[data-animate="stagger"]>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Revealed state ─── */
[data-animate].in-view {
    opacity: 1;
    transform: none;
}

[data-animate="stagger"]>.in-view {
    opacity: 1;
    transform: none;
}

/* ─── ZOOMABLE IMAGE ─── */
.zoomable {
    position: relative;
    cursor: zoom-in;
    display: inline-block;
}

.zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.zoomable:hover .zoom-icon {
    opacity: 1;
}

/* ─── IMAGE MODAL ─── */
.img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.img-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.img-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-modal.open img {
    transform: scale(1);
}

.img-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.img-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ─── BUTTON ICON ─── */
.btn-icon {
    vertical-align: -2px;
    margin-right: 6px;
}

.btn-icon-hover {
    display: none;
}

.btn:hover .btn-icon-default {
    display: none;
}

.btn:hover .btn-icon-hover {
    display: inline;
}

/* ══════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #141414;
    border: 1px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(232, 135, 58, 0.3);
}

/* ─── Reduce animations for users who prefer it ─── */
@media (prefers-reduced-motion: reduce) {

    [data-animate],
    [data-animate="stagger"]>*,
    .back-to-top {
        transition-duration: 0.01ms !important;
        transform: none !important;
        opacity: 1 !important;
    }
}