/* ============================================================
   ZephyrPHP — Clean Dark Theme
   ============================================================ */

:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;

    --bg: #000000;
    --bg-alt: #0a0a0a;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text: #ededed;
    --text-2: #a1a1a1;
    --text-3: #666666;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;

    --max-w: 1100px;
    --nav-h: 64px;
    --r: 8px;
    --r-lg: 12px;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes progress-fill {
    from { height: 0; }
    to   { height: 100%; }
}

@keyframes progress-fill-h {
    from { width: 0; }
    to   { width: 100%; }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Navbar — flat flex, no nested container
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; }

.logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-icon {
    display: flex;
    align-items: center;
    padding: 8px;
}

.nav-icon svg {
    color: var(--text-2);
    transition: color 0.15s;
}

.nav-icon:hover svg { color: var(--text); }

/* Mobile: show short label, hide full label */
.nav-label-short { display: none; }

/* ============================================================
   Copy Button
   ============================================================ */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: var(--text-3);
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.copy-btn .check-icon { display: none; }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; color: var(--primary); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.5;
    text-decoration: none;
}

.btn-primary {
    background: var(--text);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    text-decoration: none;
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: var(--text);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

/* Subtle base glow */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.07), transparent 60%);
    pointer-events: none;
}

/* Bottom fade — dots merge into next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 1;
}

/* Canvas for interactive dot grid */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 32px;
    animation: fade-up 0.5s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
    animation: fade-up 0.5s ease 0.05s both;
}

.hero-title .gradient {
    background: linear-gradient(135deg, #06b6d4, #22d3ee, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fade-up 0.5s ease 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fade-up 0.5s ease 0.15s both;
}

/* Terminal command block */
.hero-command {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 56px;
    cursor: default;
    animation: fade-up 0.5s ease 0.2s both;
    max-width: 100%;
}

.hero-command .prompt {
    color: var(--primary);
    -webkit-user-select: none;
    user-select: none;
}

.hero-command .cmd { color: var(--text); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    animation: fade-up 0.5s ease 0.25s both;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    display: block;
}

/* ============================================================
   Section Headings
   ============================================================ */
.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-2);
    text-align: center;
    margin-bottom: 56px;
}

/* ============================================================
   Features — 1px-gap grid
   ============================================================ */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg);
    padding: 28px 24px;
    transition: background 0.2s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card h3 svg {
    width: 16px;
    height: 16px;
    color: var(--text-2);
    flex-shrink: 0;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* ============================================================
   Code Showcase — Split Panel with Auto-Rotation
   ============================================================ */
.showcase {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.showcase-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-alt);
    min-height: 480px;
}

/* Left: item list */
.showcase-list {
    border-right: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.showcase-item {
    position: relative;
    padding: 16px 20px;
    border-radius: var(--r);
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.showcase-item.active {
    background: rgba(255, 255, 255, 0.03);
}

/* Progress bar — fills left edge on active */
.item-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--primary);
    border-radius: 0 1px 1px 0;
}

.showcase-item.active .item-progress {
    animation: progress-fill 3s linear forwards;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.item-info p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
    transition: color 0.2s;
}

.showcase-item.active .item-info h4 { color: var(--text); }
.showcase-item.active .item-info p { color: var(--text-2); }

/* Right: code display */
.showcase-display {
    position: relative;
}

.showcase-code {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
}

.showcase-code.active {
    opacity: 1;
    pointer-events: auto;
}

.showcase-code .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.code-header .code-title {
    color: var(--text-2);
    font-size: 12px;
    font-family: var(--mono);
}

.code-header .code-lang {
    color: var(--text-3);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.showcase-code pre {
    margin: 0;
    padding: 20px;
    overflow: auto;
    flex: 1;
    background: transparent;
}

.showcase-code code {
    color: #e6edf3;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
}

/* Syntax tokens (GitHub dark) */
.token-keyword { color: #ff7b72; }
.token-string  { color: #a5d6ff; }
.token-comment { color: #6e7681; font-style: italic; }
.token-class   { color: #f0c674; }
.token-method  { color: #d2a8ff; }
.token-var     { color: #ffa657; }
.token-ns      { color: #79c0ff; }
.token-number  { color: #79c0ff; }

/* ============================================================
   Quick Start
   ============================================================ */
.getting-started {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.code-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.code-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin-top: 2px;
}

.step-content { flex: 1; }

.step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.code-block {
    position: relative;
}

.code-block pre {
    padding-right: 44px;
}

.code-block .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.step-content pre {
    background: var(--bg-alt);
    color: #e6edf3;
    padding: 14px 18px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
}

.step-content code { font-family: inherit; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.cta p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .footer-logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.logo-img-footer {
    height: 36px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.logo-img-footer:hover { opacity: 1; }

.footer-brand p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    max-width: 240px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
    font-size: 13px;
    color: var(--text-3);
    transition: color 0.15s;
}

.footer-column a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-3);
}

.footer-bottom a {
    color: var(--primary);
    transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--primary-light); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-split {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-label-full { display: none; }
    .nav-label-short { display: inline; }

    .hero { padding: 50px 0 50px; }
    .hero-title { font-size: 44px; }
    .hero-description { font-size: 16px; margin: 0 auto 32px; }
    .hero-stats { gap: 28px; }
    .hero-command { margin-bottom: 40px; }

    /* Remove section borders on mobile */
    .showcase,
    .getting-started,
    .cta,
    .footer { border-top: none; }

    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 14px; margin-bottom: 40px; }

    .showcase { padding: 80px 0; }

    .showcase-split {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: hidden;
    }

    .showcase-list {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-right: none;
        border-bottom: 1px solid var(--border);
        scrollbar-width: none;
        padding: 6px 8px;
    }

    .showcase-list::-webkit-scrollbar { display: none; }

    .showcase-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 14px;
    }

    .item-info h4 { font-size: 13px; margin-bottom: 0; }
    .item-info p { display: none; }

    /* Horizontal progress on mobile */
    .item-progress {
        left: 0;
        top: auto;
        bottom: 0;
        width: 0;
        height: 2px;
    }

    .showcase-item.active .item-progress {
        animation-name: progress-fill-h;
    }

    .showcase-display {
        position: relative;
        min-height: 420px;
    }

    .showcase-code pre { padding: 16px; }
    .showcase-code code { font-size: 12px; }

    .getting-started { padding: 80px 0; }
    .cta { padding: 80px 0; }
    .cta h2 { font-size: 28px; }
    .cta p { font-size: 14px; }

    .footer { padding: 48px 0 0; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .navbar { padding: 0 12px; }
    .logo-img { height: 26px; }

    .hero { padding: 40px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-description { font-size: 15px; max-width: 100%; }
    .hero-badge { font-size: 12px; margin-bottom: 24px; }

    .hero-command {
        font-size: 11px;
        padding: 10px 10px 10px 14px;
        gap: 6px;
        margin-bottom: 32px;
        max-width: 100%;
        width: 100%;
    }

    .hero-command .cmd {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats { gap: 24px; }
    .stat-value { font-size: 18px; }

    .btn { width: 100%; justify-content: center; }

    .section-title { font-size: 24px; }

    /* Features */
    .features { padding: 60px 0; }
    .feature-card { padding: 20px 16px; }

    /* Showcase */
    .showcase { padding: 60px 0; }
    .showcase-display { min-height: 380px; }
    .showcase-code code { font-size: 11px; line-height: 1.5; }
    .showcase-code pre { padding: 12px; }

    /* Quick Start — keep step number inline, tighten spacing */
    .getting-started { padding: 60px 0; }
    .code-steps { gap: 20px; }

    .code-step {
        gap: 12px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-top: 0;
    }

    .step-content h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .step-content pre {
        font-size: 11px;
        padding: 12px 14px;
        line-height: 1.5;
    }

    .code-block pre { padding-right: 36px; }
    .code-block .copy-btn { top: 8px; right: 6px; }

    /* CTA */
    .cta { padding: 60px 0; }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer mobile — compact layout */
    .footer { padding: 40px 0 0; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 32px;
    }

    .footer-brand { grid-column: auto; }
    .footer-brand p { max-width: 100%; }
    .logo-img-footer { height: 32px; }

    .footer-column h4 {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .footer-column li { margin-bottom: 8px; }

    .footer-bottom {
        padding: 16px 0;
    }
}

/* ============================================================
   Ecosystem Section
   ============================================================ */
.ecosystem {
    padding: 100px 0;
    background: var(--bg);
}
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.eco-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.eco-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.eco-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.eco-icon-blue   { background: rgba(59,130,246,0.12); color: #3B82F6; }
.eco-icon-blue svg { stroke: #3B82F6; }
.eco-icon-green  { background: rgba(16,185,129,0.12); color: #10B981; }
.eco-icon-green svg { stroke: #10B981; }
.eco-icon-purple { background: rgba(139,92,246,0.12); color: #8B5CF6; }
.eco-icon-purple svg { stroke: #8B5CF6; }
.eco-icon-orange { background: rgba(245,158,11,0.12); color: #F59E0B; }
.eco-icon-orange svg { stroke: #F59E0B; }
.eco-icon-red    { background: rgba(239,68,68,0.12); color: #EF4444; }
.eco-icon-red svg { stroke: #EF4444; }
.eco-icon-teal   { background: rgba(6,182,212,0.12); color: #06B6D4; }
.eco-icon-teal svg { stroke: #06B6D4; }

.eco-card h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 6px;
}
.eco-card p {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-bottom: 12px;
    line-height: 1.5;
}
.eco-card code {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--primary);
    background: rgba(6,182,212,0.08);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}
.ecosystem-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ecosystem-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Marketplace Teaser Section
   ============================================================ */
.marketplace-teaser {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.marketplace-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.teaser-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.marketplace-teaser-content h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.marketplace-teaser-content > p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.teaser-features {
    list-style: none;
    margin-bottom: 32px;
}
.teaser-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.875rem;
    padding: 6px 0;
}
.teaser-buttons {
    display: flex;
    gap: 12px;
}
.marketplace-teaser-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.teaser-card-stack {
    position: relative;
    width: 320px;
    height: 260px;
}
.teaser-pkg-card {
    position: absolute;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    width: 280px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
}
.teaser-pkg-card strong {
    display: block;
    color: var(--text);
    font-size: 0.9375rem;
    margin-top: 8px;
}
.teaser-pkg-card .pkg-meta {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 4px;
    display: block;
}
.pkg-type-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pkg-type-themes   { background: rgba(59,130,246,0.15); color: #3B82F6; }
.pkg-type-apps     { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.pkg-type-sections { background: rgba(245,158,11,0.15); color: #F59E0B; }

.teaser-card-1 { top: 0; left: 20px; transform: rotate(-3deg); z-index: 3; }
.teaser-card-2 { top: 60px; left: 40px; transform: rotate(1deg); z-index: 2; }
.teaser-card-3 { top: 130px; left: 10px; transform: rotate(-1deg); z-index: 1; }

.teaser-card-stack:hover .teaser-card-1 { transform: rotate(-3deg) translateY(-8px); }
.teaser-card-stack:hover .teaser-card-2 { transform: rotate(1deg) translateX(8px); }
.teaser-card-stack:hover .teaser-card-3 { transform: rotate(-1deg) translateY(8px); }

@media (max-width: 900px) {
    .marketplace-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
    .marketplace-teaser-visual { display: none; }
}

/* Ghost button variant for CTA */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--r);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: transparent;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
}
