/* ══════════════════════════════════════════════
   Vaxtly — Redesigned Landing Page
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Variables ── */
:root {
    --gray-950: #0a0a0a;
    --gray-900: #0f0f0f;
    --gray-850: #141414;
    --gray-800: #171717;
    --gray-700: #262626;
    --gray-600: #404040;
    --gray-500: #808080;
    --gray-400: #8a8a8a;
    --gray-300: #b0b0b0;
    --gray-200: #d4d4d4;
    --gray-100: #f0f0f0;
    --emerald: #34d399;
    --blue: #60a5fa;
    --amber: #fbbf24;
    --orange: #fb923c;
    --red: #f87171;
    --cyan: #22d3ee;
    --teal: #2dd4bf;
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.12);
    --glow-primary: linear-gradient(135deg, rgba(167, 139, 250, 0.6), rgba(52, 211, 153, 0.4), rgba(96, 165, 250, 0.5));
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    background: var(--gray-950);
    color: var(--gray-300);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.code-amber {
    color: var(--amber);
}

/* ── Container ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ═══════════════════════════════════════════
   NAV (unchanged)
   ═══════════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--gray-100);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.nav-gh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-200);
    transition: all 0.2s;
}

.nav-gh:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.nav-gh svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    position: relative;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.nav-toggle.active svg {
    transform: rotate(90deg);
    opacity: 0;
}

.nav-toggle::after {
    content: '\00d7';
    position: absolute;
    font-size: 28px;
    color: var(--gray-400);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-toggle.active::after {
    opacity: 1;
}

#gh-stars:not(:empty) {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 4px;
}


/* ═══════════════════════════════════════════
   HERO — Left-aligned
   ═══════════════════════════════════════════ */

.hero {
    padding: 80px 0 0;
    position: relative;
}

.hero > .container {
    padding-bottom: 64px;
    margin-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Grid background */
@keyframes grid-move {
    0% {
        background-position-y: 0px;
    }

    100% {
        background-position-y: 64px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
    animation: grid-move 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animated glow — dynamic orb */
@keyframes spin-glow {
    0% {
        transform: translateX(-50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translateX(-50%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translateX(-50%) rotate(360deg) scale(1);
    }
}

.hero::after {
    content: '';
    position: absolute;
    width: 65vw;
    height: 65vw;
    max-width: 800px;
    max-height: 800px;
    top: -200px;
    left: 50%;
    transform-origin: center;
    background: var(--glow-primary);
    filter: blur(120px);
    opacity: 0.25;
    border-radius: 50%;
    animation: spin-glow 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Kicker badge ── */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 36px;
    padding: 6px 18px 6px 14px;
    border-radius: 20px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    animation: kicker-pulse 2s ease-in-out infinite;
}

@keyframes kicker-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 16px rgba(167, 139, 250, 0.8); }
}

/* ── H1 ── */
.hero-h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-logo-img {
    width: clamp(240px, 40vw, 420px);
    height: auto;
    filter: brightness(0) invert(1);
}

.h1-local {
    font-size: clamp(42px, 5.5vw, 72px);
    letter-spacing: -0.04em;
    color: var(--gray-100);
    line-height: 0.95;
}

.h1-api {
    font-size: clamp(42px, 5.5vw, 72px);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: transparent;
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 50%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(251, 146, 60, 0.25));
}

.h1-dot {
    color: var(--orange);
    -webkit-text-fill-color: var(--orange);
}

/* ── Subtitle ── */
.hero-sub {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-400);
    max-width: 600px;
    margin-bottom: 36px;
}

/* Keyword highlights */
.hl-white { color: var(--gray-100); font-weight: 500; }
.hl-accent { color: var(--accent); font-weight: 500; }
.hl-red { color: var(--red); font-weight: 500; }
.hl-cyan { color: var(--cyan); font-weight: 500; }
.hl-amber { color: var(--amber); font-weight: 500; }
.hl-emerald { color: var(--emerald); font-weight: 500; }

/* ── Hero capability pills ── */
.hero-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-pill {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-pill-dot {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

.hero-pill.pill-blue { color: var(--blue); }
.hero-pill.pill-teal { color: var(--teal); }
.hero-pill.pill-purple { color: var(--accent); }
.hero-pill.pill-orange { color: var(--orange); }
.hero-pill.pill-amber { color: var(--amber); }

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-400);
    text-align: center;
    max-width: 640px;
}

.hero-desc .hl-blue { color: var(--blue); font-weight: 500; }
.hero-desc .hl-teal { color: var(--teal); font-weight: 500; }
.hero-desc .hl-purple { color: var(--accent); font-weight: 500; }
.hero-desc .hl-orange { color: var(--orange); font-weight: 500; }
.hero-desc .hl-amber { color: var(--amber); font-weight: 500; }

.hero-desc-sub {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gray-200);
    text-align: center;
}

.hero-desc-badge {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

/* ── Hero install row ── */
/* ── Install section (standalone, between features and CTA) ── */
.install-section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 60px;
}

.install-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-100);
    line-height: 1.15;
    margin-bottom: 40px;
}

.install-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ── Hero download button ── */
.hero-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gray-100);
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.hero-download:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
    transform: translateY(-1px);
}

.hero-download:active {
    transform: translateY(0);
}

/* ── Hero install widget ── */
.hero-install {
    text-align: left;
    width: 100%;
}


/* ═══════════════════════════════════════════
   SCREENSHOT — Full-width showcase
   ═══════════════════════════════════════════ */

.screenshot-section {
    padding: 0 0 120px;
    position: relative;
}

.screenshot-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.screenshot-wrap {
    position: relative;
    z-index: 1;
}

/* Ambient glow behind the video */
.screenshot-wrap::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse 60% 50% at 50% 40%,
            rgba(167, 139, 250, 0.12),
            rgba(52, 211, 153, 0.06) 40%,
            transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.screenshot-wrap img,
.screenshot-wrap video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 32px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 80px rgba(167, 139, 250, 0.06);
    filter: brightness(1.1) contrast(1.05);
}

.screenshot-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gray-950));
    z-index: 2;
    pointer-events: none;
}


/* ═══════════════════════════════════════════
   ANTI-FEATURES — "The personality section"
   ═══════════════════════════════════════════ */

.anti-features {
    padding: 80px 0 120px;
}

.anti-lead {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--gray-200);
    line-height: 1.45;
    max-width: 720px;
    margin-bottom: 64px;
    letter-spacing: -0.02em;
}

.anti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
}

.anti-label {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--gray-100);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.anti-item p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 420px;
}


/* ═══════════════════════════════════════════
   FEATURES — Staggered 3-tier hierarchy
   ═══════════════════════════════════════════ */

.features-section {
    padding: 0 0 80px;
}

/* ── Tier 1: Git Sync hero ── */
.feature-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 64px;
}

.feature-kicker {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-hero-text h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--gray-100);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.feature-hero-text p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 480px;
}

/* ── Decorative terminal block ── */
.terminal-block {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-block:hover {
    transform: translateY(-4px) scale(1.01);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.terminal-dots span:nth-child(1) {
    background: rgba(248, 113, 113, 0.6);
}

.terminal-dots span:nth-child(2) {
    background: rgba(251, 191, 36, 0.6);
}

.terminal-dots span:nth-child(3) {
    background: rgba(52, 211, 153, 0.6);
}

.terminal-code {
    display: block;
    padding: 20px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-400);
    overflow-x: auto;
    margin: 0;
    background: none;
}

.t-dim {
    color: var(--gray-600);
}

.t-white {
    color: var(--gray-100);
}

.t-accent {
    color: var(--accent);
}

.t-emerald {
    color: var(--emerald);
}

.t-red {
    color: var(--red);
}

.t-amber {
    color: var(--amber);
}

/* ── Activity log visual ── */
.log-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.log-header-tab {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
}

.log-header-tab.active {
    color: var(--gray-300);
}

.log-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    margin-left: 2px;
}

.log-entries {
    padding: 8px 0;
    overflow: hidden;
}

.log-entry {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.6;
    opacity: 0;
    min-width: 0;
}

@keyframes terminal-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal.active .log-entry {
    animation: terminal-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.active .log-entry:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal.active .log-entry:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal.active .log-entry:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal.active .log-entry:nth-child(4) {
    animation-delay: 0.4s;
}

.reveal.active .log-entry:nth-child(5) {
    animation-delay: 0.5s;
}

.reveal.active .log-entry:nth-child(6) {
    animation-delay: 0.6s;
}

.log-time {
    color: var(--gray-600);
    flex-shrink: 0;
}

.log-tag {
    flex-shrink: 0;
    font-weight: 600;
    min-width: 40px;
}

.log-tag-git {
    color: var(--accent);
}

.log-tag-vault {
    color: var(--orange);
}

.log-tag-http {
    color: var(--blue);
}

.log-tag-mcp {
    color: var(--cyan);
}

.log-action {
    color: var(--gray-600);
    flex-shrink: 0;
    min-width: 72px;
}

.log-msg {
    color: var(--gray-400);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-msg-ok {
    color: var(--emerald);
}

/* ── Reversed hero (visual LEFT, text RIGHT) ── */
.feature-hero-reverse {
    direction: rtl;
}

.feature-hero-reverse>* {
    direction: ltr;
}

/* ── Kicker color variants ── */
.kicker-red {
    color: var(--red);
}

.kicker-amber {
    color: var(--amber);
}

.kicker-cyan {
    color: var(--cyan);
}

/* ── Subsequent hero blocks need top padding ── */
.feature-hero-border+.feature-hero {
    padding-top: 64px;
}

/* ── Env auto-switch visual ── */
.env-auto-visual {
    position: relative;
    overflow: hidden;
}

/* Shared top bar: both tabs always visible */
.env-auto-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.env-auto-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}

.env-auto-req-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    transition: none;
}

/* Chip A: active when state A shows, dimmed when state B shows */
.env-auto-chip-a {
    animation: env-chip-a 6s ease-in-out infinite;
}

/* Chip B: dimmed when state A shows, active when state B shows */
.env-auto-chip-b {
    animation: env-chip-b 6s ease-in-out infinite;
}

@keyframes env-chip-a {
    0%, 42% {
        color: var(--gray-300);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }
    50%, 92% {
        color: var(--gray-500);
        background: transparent;
        border-color: transparent;
    }
    100% {
        color: var(--gray-300);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

@keyframes env-chip-b {
    0%, 42% {
        color: var(--gray-500);
        background: transparent;
        border-color: transparent;
    }
    50%, 92% {
        color: var(--gray-300);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }
    100% {
        color: var(--gray-500);
        background: transparent;
        border-color: transparent;
    }
}

/* Env badges: layered and crossfaded */
.env-auto-badges {
    position: relative;
}

.env-auto-badge-a {
    animation: env-crossfade-a 6s ease-in-out infinite;
}

.env-auto-badge-b {
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    animation: env-crossfade-b 6s ease-in-out infinite;
}

/* Crossfading body content */
.env-auto-body {
    position: relative;
    min-height: 215px;
    overflow: hidden;
}

.env-auto-state {
    position: absolute;
    inset: 0;
    padding: 0;
}

.env-auto-state-a {
    animation: env-crossfade-a 6s ease-in-out infinite;
}

.env-auto-state-b {
    animation: env-crossfade-b 6s ease-in-out infinite;
}

@keyframes env-crossfade-a {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes env-crossfade-b {
    0%, 42% { opacity: 0; }
    50%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

.env-auto-chip-method {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
}

.env-auto-req-chip-post .env-auto-chip-method {
    color: var(--amber);
}

.env-auto-req-chip-get .env-auto-chip-method {
    color: var(--emerald);
}

.env-auto-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-500);
}

.env-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.env-auto-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.env-auto-badge-prod {
    color: var(--emerald);
}

.env-auto-badge-prod .env-auto-badge-dot {
    background: var(--emerald);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.env-auto-badge-staging {
    color: var(--amber);
}

.env-auto-badge-staging .env-auto-badge-dot {
    background: var(--amber);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

/* URL bar */
.env-auto-urlbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.env-auto-method {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.env-auto-method-post {
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
}

.env-auto-method-get {
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.1);
}

.env-auto-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--gray-300);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.env-auto-tpl {
    color: var(--emerald);
}

.env-auto-send {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Request tabs */
.env-auto-req-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.env-auto-req-tab {
    padding: 9px 12px;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: default;
}

.env-auto-req-tab.active {
    color: var(--gray-200);
    border-bottom-color: var(--gray-200);
}

.env-auto-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    margin-left: 4px;
}

/* Table (headers / params) */
.env-auto-table {
    padding: 0;
}

.env-auto-table-header {
    display: flex;
    gap: 24px;
    padding: 8px 14px 8px 42px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.env-auto-table-header span:first-child {
    min-width: 110px;
}

.env-auto-table-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
}

.env-auto-row-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.env-auto-row-check svg {
    width: 10px;
    height: 10px;
    color: var(--emerald);
}

.env-auto-row-key {
    color: var(--gray-300);
    min-width: 100px;
    flex-shrink: 0;
}

.env-auto-row-val {
    color: var(--gray-500);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Vault visual ── */
.vault-visual {
    padding: 0;
}

.vault-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.vault-env-badge {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}

.vault-env-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vault-env-tab {
    padding: 10px 16px;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: default;
}

.vault-env-tab.active {
    color: var(--gray-200);
    font-weight: 600;
    border-bottom-color: transparent;
}

.vault-sync-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 16px 16px 0;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.vault-sync-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vault-sync-title {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-100);
}

.vault-sync-sub {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.vault-sync-btn {
    display: inline-block;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin-bottom: 6px;
}

.vault-sync-note {
    font-size: 11px;
    color: var(--gray-600);
}

.vault-toggle {
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: var(--blue);
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}

.vault-toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    margin-left: auto;
}

.vault-vars {
    padding: 20px 16px 12px;
}

.vault-vars-label {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.vault-vars-header {
    display: flex;
    gap: 24px;
    padding: 6px 0 6px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vault-vars-header span:first-child {
    min-width: 120px;
}

.vault-var-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    opacity: 0;
}

@keyframes vault-row-slide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal.active .vault-var-row {
    animation: vault-row-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.active .vault-var-row:nth-child(3) { animation-delay: 0.1s; }
.reveal.active .vault-var-row:nth-child(4) { animation-delay: 0.2s; }
.reveal.active .vault-var-row:nth-child(5) { animation-delay: 0.3s; }

.vault-var-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vault-var-check svg {
    width: 12px;
    height: 12px;
    color: var(--blue);
}

.vault-var-key {
    color: var(--gray-300);
    min-width: 110px;
    flex-shrink: 0;
}

.vault-var-val {
    color: var(--gray-600);
}

.vault-add-row {
    display: block;
    padding: 8px 0 0;
    font-size: 12px;
    color: var(--gray-600);
}

/* ── MCP tools visual ── */
.mcp-visual {
    padding: 0;
}

.mcp-server-tab-bar {
    padding: 12px 16px 0;
}

.mcp-server-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-300);
}

.mcp-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    flex-shrink: 0;
}

@keyframes mcp-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
}

.reveal.active .mcp-server-dot {
    animation: mcp-dot-pulse 2s ease-in-out infinite;
}

.mcp-server-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
}

.mcp-server-name {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-100);
}

.mcp-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcp-tab {
    padding: 10px 14px;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: default;
    transition: color 0.2s;
}

.mcp-tab.active {
    color: var(--gray-200);
    border-bottom-color: var(--gray-200);
}

.mcp-tools-list {
    padding: 6px 0;
}

.mcp-tool {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.2s;
    opacity: 0;
}

.mcp-tool:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mcp-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--gray-600);
    position: relative;
    top: 2px;
}

@keyframes mcp-tool-slide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal.active .mcp-tool {
    animation: mcp-tool-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.active .mcp-tool:nth-child(2) { animation-delay: 0.08s; }
.reveal.active .mcp-tool:nth-child(3) { animation-delay: 0.16s; }
.reveal.active .mcp-tool:nth-child(4) { animation-delay: 0.24s; }
.reveal.active .mcp-tool:nth-child(5) { animation-delay: 0.32s; }
.reveal.active .mcp-tool:nth-child(6) { animation-delay: 0.40s; }

.mcp-tool-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    flex-shrink: 0;
}

.mcp-tool-desc {
    font-size: 13px;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Separator between tier 1 and grid ── */
.feature-hero-border {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    margin-bottom: 0;
}

/* ── Features grid: Compact cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid transparent;
}

/* Base border */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Mouse spotlight border effect */
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.2),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    background: rgba(40, 40, 40, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.fi-emerald {
    background: rgba(52, 211, 153, 0.1);
    color: var(--emerald);
}

.fi-blue {
    background: rgba(96, 165, 250, 0.1);
    color: var(--blue);
}

.fi-amber {
    background: rgba(251, 191, 36, 0.1);
    color: var(--amber);
}

.fi-red {
    background: rgba(248, 113, 113, 0.1);
    color: var(--red);
}

.fi-accent {
    background: var(--accent-dim);
    color: var(--accent);
}

.fi-teal {
    background: rgba(45, 212, 191, 0.1);
    color: var(--teal);
}

.fi-orange {
    background: rgba(251, 146, 60, 0.1);
    color: var(--orange);
}

/* ── Compact row (vertical cards) ── */
.feature-compact {
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.feature-compact .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.feature-compact .feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-compact h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 4px;
}

.feature-compact p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════
   CLOSING — Download + Open Source
   ═══════════════════════════════════════════ */

.closing-section {
    padding: 100px 0 120px;
    position: relative;
}

.closing-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.closing-section h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--gray-100);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 600px;
}

.closing-sub {
    font-size: 16px;
    color: var(--gray-400);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.closing-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.closing-actions .btn-secondary svg {
    width: 18px;
    height: 18px;
}

#gh-stars-closing:not(:empty) {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 4px;
}


/* ═══════════════════════════════════════════
   BUTTONS (Enhanced)
   ═══════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

@keyframes spin-border {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-primary {
    background: var(--glass-bg);
    color: var(--gray-950);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--gray-100);
}

/* Rotating gradient border effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(from 0deg, var(--emerald), var(--blue), var(--accent), var(--emerald));
    z-index: -1;
    animation: spin-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover::before {
    inset: 2px;
    border-radius: inherit;
    background: var(--gray-100);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


/* ═══════════════════════════════════════════
   INSTALL WIDGET STYLES
   ═══════════════════════════════════════════ */

.hero-os-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.hero-tab-content {
    display: none;
    padding: 20px 0 0;
}

.hero-tab-content.active {
    display: block;
}

.source-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.2s;
    white-space: nowrap;
}

.source-link:hover {
    color: var(--gray-300);
}

.source-link svg {
    width: 14px;
    height: 14px;
}

/* ── Install widget: primary / divider / secondary ── */
.install-primary {
    margin-bottom: 4px;
}

.install-primary-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.install-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--gray-600);
    font-size: 13px;
}

.install-divider::before,
.install-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.install-secondary {
    padding: 0;
}

.install-secondary-note {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 8px;
}

.cmd-wrap {
    position: relative;
    margin-bottom: 20px;
}

.cmd-pre {
    background: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--emerald);
    overflow-x: auto;
    margin: 0;
}

.mac-hint {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.mac-hint a {
    color: var(--accent);
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-200);
    transition: all 0.15s;
}

.dl-btn:hover {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    color: var(--gray-100);
}

.dl-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
}

.dl-btn-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    margin-left: 4px;
}

.dl-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.os-tab-indicator {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    /* Stronger visible pill */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.os-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    /* Keeps sizing consistent */
    background: transparent;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.os-tab svg {
    width: 16px;
    height: 16px;
}

.os-tab:hover {
    color: var(--gray-300);
}

.os-tab.active {
    color: var(--gray-100);
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--gray-400);
    transition: all 0.15s;
}

.copy-btn:hover::after {
    content: 'Copy';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--gray-700);
    color: var(--gray-200);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

/* SmartScreen accordion */
.win-smartscreen {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 12px;
}

.win-smartscreen summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    list-style: none;
}

.win-smartscreen summary::-webkit-details-marker {
    display: none;
}

.win-smartscreen summary::after {
    content: '';
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--gray-500);
    border-bottom: 1.5px solid var(--gray-500);
    transform: rotate(-45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.win-smartscreen[open] summary::after {
    transform: rotate(45deg);
}

.win-smartscreen-body {
    padding: 0 18px 18px;
}

.win-unsigned-note {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

.win-unsigned-note strong {
    color: var(--gray-400);
    font-weight: 600;
}

.win-unsigned-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(167, 139, 250, 0.3);
    transition: text-decoration-color 0.2s;
}

.win-unsigned-note a:hover {
    text-decoration-color: var(--accent);
}



/* ═══════════════════════════════════════════
   FOOTER (unchanged)
   ═══════════════════════════════════════════ */

footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-col {
    flex: 1;
}

.footer-col-center {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-col-end {
    text-align: right;
}

footer p,
.footer-col {
    font-size: 13px;
    color: var(--gray-600);
}

footer a {
    font-size: 13px;
    color: var(--gray-500);
    transition: color 0.2s;
}

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


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-in {
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── 1024px: Feature heroes stack ── */
@media (max-width: 1024px) {
    .feature-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-hero-reverse {
        direction: ltr;
    }

    .feature-hero-text p {
        max-width: 100%;
    }

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

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

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--gray-950);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 8px 24px 16px;
    }

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

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 8px;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .nav-gh {
        display: inline-flex;
        padding: 8px 16px;
    }

    .hero {
        padding: 72px 0 48px;
    }

    .hero-kicker {
        font-size: 11px;
        padding: 5px 14px 5px 10px;
        margin-bottom: 22px;
    }

    .hero-pill {
        font-size: 13px;
    }

    /* Install widget responsive */
    .hero-os-tabs {
        flex-wrap: wrap;
        gap: 6px;
        padding-bottom: 12px;
    }

    /* Hide the sliding pill indicator on mobile — use inline active style instead */
    .os-tab-indicator {
        display: none;
    }

    .os-tab.active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .hero-tab-content {
        padding: 16px 0 0;
    }

    .os-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .source-link {
        display: none;
    }

    .win-smartscreen summary {
        font-size: 13px;
    }

    .cmd-pre {
        font-size: 12px;
        padding: 12px 14px;
    }

    .dl-btn-row {
        flex-direction: column;
    }

    /* Screenshot */
    .screenshot-section {
        padding-bottom: 64px;
    }

    /* Anti-features */
    .anti-features {
        padding: 64px 0 80px;
    }

    .anti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .anti-label {
        font-size: clamp(22px, 5vw, 28px);
    }

    /* Features */
    .features-section {
        padding: 80px 0;
    }

    .feature-hero {
        gap: 32px;
        padding-bottom: 48px;
    }

    .feature-hero-border + .feature-hero {
        padding-top: 48px;
    }

    /* Feature grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-compact {
        grid-column: auto;
    }

    /* Log entries: prevent overflow */
    .log-entry {
        min-width: 0;
    }

    .log-msg {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    /* Env auto-switch: prevent overflow */
    .env-auto-row-val {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .env-auto-url {
        font-size: 12px;
    }

    /* Vault visual: compact on tablet */
    .vault-var-val {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    /* MCP visual: compact on tablet */
    .mcp-tool-desc {
        display: none;
    }

    .mcp-tabs {
        overflow-x: auto;
    }

    /* Install section */
    .install-section {
        padding: 60px 0;
    }

    /* Closing */
    .closing-section {
        padding: 80px 0 80px;
        text-align: center;
    }

    .closing-section h2 {
        max-width: 100%;
    }

    .closing-sub {
        margin-left: auto;
        margin-right: auto;
    }

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

    .closing-actions .btn {
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-col-center {
        gap: 16px;
    }

    .footer-col-end {
        text-align: center;
    }

    .hero-install {
        margin-bottom: 24px;
    }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .h1-local,
    .h1-api {
        font-size: 36px;
    }

    .hero {
        padding: 64px 0 40px;
    }

    .hero-kicker {
        font-size: 10px;
        padding: 4px 12px 4px 9px;
        margin-bottom: 18px;
    }

    .hero-pill {
        font-size: 12px;
    }

    .hero-pill-dot {
        font-size: 14px;
    }

    .log-time {
        display: none;
    }

    .log-action {
        min-width: auto;
    }

    .log-entry {
        font-size: 11px;
        gap: 6px;
        padding: 5px 12px;
    }

    .log-msg {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Env auto-switch: tighter on small screens */
    .env-auto-topbar {
        padding: 8px 10px;
    }

    .env-auto-chips {
        gap: 2px;
    }

    .env-auto-req-chip {
        font-size: 11px;
        padding: 4px 8px;
    }

    .env-auto-badge {
        font-size: 11px;
    }

    .env-auto-urlbar {
        padding: 8px 10px;
    }

    .env-auto-method {
        font-size: 10px;
    }

    .env-auto-url {
        font-size: 11px;
    }

    .env-auto-send {
        font-size: 10px;
        padding: 4px 8px;
    }

    .env-auto-req-tab {
        font-size: 11px;
        padding: 7px 8px;
    }

    .env-auto-table-row {
        font-size: 11px;
        padding: 7px 10px;
    }

    .env-auto-table-header {
        font-size: 9px;
        padding: 6px 10px 6px 36px;
    }

    .env-auto-row-key {
        min-width: 80px;
    }

    .vault-sync-card {
        margin: 12px 12px 0;
        padding: 12px;
    }

    .vault-sync-title {
        font-size: 13px;
    }

    .vault-vars {
        padding: 16px 12px 8px;
    }

    .vault-var-row {
        font-size: 11px;
    }

    .vault-var-key {
        min-width: 80px;
    }

    .vault-vars-header {
        padding-left: 28px;
        font-size: 9px;
    }

    .mcp-server-chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    .mcp-server-name {
        font-size: 14px;
    }

    .mcp-tab {
        font-size: 11px;
        padding: 8px 10px;
    }

    .mcp-tool {
        padding: 7px 12px;
    }

    .mcp-tool-name {
        font-size: 11px;
    }

    .mcp-chevron {
        width: 12px;
        height: 12px;
    }

    .anti-features {
        padding: 48px 0 64px;
    }

    .anti-lead {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .anti-grid {
        gap: 28px;
    }

    .features-section {
        padding: 64px 0;
    }

    .feature-hero {
        gap: 28px;
        padding-bottom: 40px;
    }

    .feature-hero-border + .feature-hero {
        padding-top: 40px;
    }

    .feature-compact {
        padding: 28px 20px;
    }

    .feature-compact .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-compact .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .screenshot-section {
        padding-bottom: 64px;
    }

    .closing-section {
        padding: 64px 0 80px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 16px;
    }

    .cmd-pre {
        font-size: 11px;
        padding: 12px 12px;
        padding-right: 40px;
    }

    .os-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .os-tab svg {
        width: 14px;
        height: 14px;
    }
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}