/* =========================================================
   DaFreeAi Dedicated Model Page Stylesheet
   Theme: Ultra-Dark, Neutral, Minimalist & High-End (Runware / Linear / Vercel style)
   Strictly NO purple/pink/magenta gradients.
   ========================================================= */

:root {
    --bg-base: #09090b;
    --bg-surface: #121316;
    --bg-surface-elevated: #18191d;
    --bg-card: rgba(18, 19, 22, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(255, 255, 255, 0.22);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- NAV HEADER ---------------- */
header.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-text {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-pricing {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link-pricing:hover {
    color: #ffffff;
}

/* Models Nav Dropdown Styling */
.nav-models-dropdown-container {
    position: relative;
}

.nav-models-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color 0.2s;
}

.nav-models-trigger:hover,
.nav-models-dropdown-container:hover .nav-models-trigger,
.nav-models-trigger.active {
    color: #ffffff !important;
}

.nav-models-trigger .chevron-icon {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-models-dropdown-container:hover .chevron-icon,
.nav-models-trigger.active .chevron-icon {
    transform: rotate(180deg);
}

.nav-models-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 220px;
    max-height: 330px;
    background: rgba(13, 13, 17, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.nav-models-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -12px;
    right: -12px;
    height: 20px;
    background: transparent;
}

.nav-models-dropdown-container:hover .nav-models-menu,
.nav-models-menu.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.custom-nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.custom-nav-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-nav-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.custom-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.model-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #d4d4d8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.model-nav-item:hover,
.model-nav-item:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding-left: 15px;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-cta iconify-icon {
    font-size: 1rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.btn-nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

/* ---- Responsive Nav: Two-row layout on mobile (matches homepage) ---- */

/* Inner layout containers matching homepage */
.nav-inner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-inner-sub {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Desktop: single row — hide Start Free mobile variant */
.btn-nav-cta-mobile {
    display: none !important;
}
.btn-nav-cta-desktop {
    display: inline-flex !important;
}

/* Hide hamburger — we never use it */
.mobile-menu-toggle {
    display: none !important;
}

/* Hide old drawer */
.mobile-nav-drawer {
    display: none !important;
}

@media (max-width: 640px) {
    header.nav-header {
        padding: 10px 0;
    }

    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 8px;
    }

    .nav-inner-top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* On mobile, show small Start Free next to logo */
    .btn-nav-cta-mobile {
        display: inline-flex !important;
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 9999px !important;
    }
    .btn-nav-cta-mobile svg {
        width: 13px !important;
        height: 13px !important;
        margin-left: 2px !important;
    }

    /* Hide desktop CTA */
    .btn-nav-cta-desktop {
        display: none !important;
    }

    /* Nav sub-links row: centered pill strip like homepage */
    .nav-right-group {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .nav-inner-sub {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 9999px !important;
        padding: 4px 14px !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    padding: 60px 0 36px;
    text-align: center;
}

h1.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-model-icon {
    font-size: 0.9em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

p.hero-subhead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #18191d;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary:hover {
    background: #24252a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: #f4f4f5;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: #ffffff;
}

/* ---------------- SHOWCASE SECTION ---------------- */
.section-header {
    margin-bottom: 24px;
    text-align: left;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 840px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.runware-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.runware-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.media-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-stage video,
.media-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-overlay-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.play-overlay-trigger:hover {
    background: rgba(0, 0, 0, 0.35);
}

.play-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay-trigger:hover .play-circle-btn {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.45);
}

.video-custom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 4px 6px;
    opacity: 0.88;
    transition: opacity 0.15s ease;
}

.video-custom-controls:hover {
    opacity: 1;
}

.video-ctrl-btn {
    background: transparent;
    border: none;
    color: #f4f4f5;
    font-size: 1rem;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease;
}

.video-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.floating-media-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.runware-card:hover .floating-media-actions {
    opacity: 1;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-meta-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-header-row {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.meta-model-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.meta-prompt-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    user-select: text;
    cursor: text;
    transition: all 0.15s ease;
}

.meta-prompt-text:hover {
    color: #f4f4f5;
    border-color: var(--border-subtle);
    background: rgba(0, 0, 0, 0.5);
}

/* ---------------- COPY PROMPT BUTTON ---------------- */
.copy-prompt-chip,
.copy-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #e4e4e7 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    width: fit-content;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.copy-prompt-chip:hover,
.copy-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

.copy-prompt-chip iconify-icon,
.copy-prompt-btn iconify-icon {
    font-size: 0.95rem;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.copy-prompt-chip:hover iconify-icon,
.copy-prompt-btn:hover iconify-icon {
    color: #ffffff;
}

/* ---------------- BOTTOM CTA BOX & BUTTON ---------------- */
.cta-box,
section.cta-box {
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.8) 0%, rgba(12, 12, 16, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 56px 36px;
    text-align: center;
    margin: 60px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
}

.cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.cta-box p {
    color: #a1a1aa;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

.btn-cta-large,
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 13px 34px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.btn-cta-large:hover,
.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
    color: #ffffff !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 13px 26px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------------- EDITORIAL LONG-FORM SEO ARTICLE ---------------- */
.doc-article {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .doc-article {
        padding: 24px 18px;
    }
}

.doc-article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-top: 36px;
    margin-bottom: 14px;
}

.doc-article h2:first-child {
    margin-top: 0;
}

.doc-article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f4f4f5;
    margin-top: 24px;
    margin-bottom: 10px;
}

.doc-article p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.72;
}

.doc-article ul, .doc-article ol {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.doc-article li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.doc-article strong {
    color: #ffffff;
    font-weight: 600;
}

/* Author byline / EEAT box */
.eeat-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.eeat-byline iconify-icon {
    font-size: 1.2rem;
    color: #38bdf8;
}

/* Key Takeaway Card */
.key-takeaway-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #38bdf8;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.key-takeaway-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.key-takeaway-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
    color: var(--text-secondary);
}

/* SEO Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

table.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

table.seo-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

table.seo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

table.seo-table tr:last-child td {
    border-bottom: none;
}

table.seo-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Prompt Syntax Codebox */
.prompt-codebox {
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 16px 0 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.55;
    overflow-x: auto;
}

.prompt-codebox span.keyword {
    color: #38bdf8;
}

.prompt-codebox span.param {
    color: #fbbf24;
}

/* Step Workflow Cards */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.workflow-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.workflow-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.workflow-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---------------- FAQS ---------------- */
.faq-block {
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
}

.faq-block:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ---------------- CTA BANNER ---------------- */
.cta-box {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 52px 24px;
    margin: 48px 0;
}

.cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 28px;
}

/* ---------------- RESPONSIVE HEADER & TOPBAR ---------------- */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 12, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-8px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px 18px 36px;
    box-sizing: border-box;
}

.mobile-nav-drawer.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.18s;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-drawer-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    margin: 16px 0 8px;
    padding: 0 4px;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    transition: all 0.15s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Nav Accordion */
details.mobile-nav-accordion {
    width: 100%;
    margin-bottom: 6px;
    border-radius: 10px;
}

details.mobile-nav-accordion > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details.mobile-nav-accordion > summary::-webkit-details-marker {
    display: none;
}

details.mobile-nav-accordion .accordion-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #a1a1aa;
}

details.mobile-nav-accordion[open] .accordion-chevron {
    transform: rotate(180deg);
    color: #ffffff;
}

details.mobile-nav-accordion[open] > summary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

details.mobile-nav-accordion .mobile-drawer-grid {
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.mobile-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.mobile-drawer-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.22;
    transition: all 0.15s ease;
}

.mobile-drawer-grid a:hover,
.mobile-drawer-grid a:active {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

@media (min-width: 769px) {
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .mobile-nav-drawer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    header.nav-header {
        padding: 10px 0;
    }
    .container {
        padding: 0 16px;
    }
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .brand-logo-text {
        font-size: 1.25rem;
    }
    /* Hide desktop inline links on mobile */
    .nav-models-dropdown-container,
    .nav-link-pricing {
        display: none !important;
    }
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
    .nav-right-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .btn-nav-cta {
        padding: 7px 15px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 9999px !important;
    }

    /* Fallback if hamburger not present */
    .nav-right-group:not(:has(.mobile-menu-toggle)) .nav-models-dropdown-container,
    .nav-right-group:not(:has(.mobile-menu-toggle)) .nav-link-pricing {
        display: inline-flex !important;
    }
    .nav-right-group:not(:has(.mobile-menu-toggle)) {
        gap: 6px;
    }
    .nav-right-group:not(:has(.mobile-menu-toggle)) .nav-models-trigger,
    .nav-right-group:not(:has(.mobile-menu-toggle)) .nav-link-pricing {
        font-size: 0.78rem;
        padding: 2px 4px;
    }
    .nav-right-group:not(:has(.mobile-menu-toggle)) .btn-nav-cta {
        padding: 5px 11px !important;
        font-size: 0.76rem !important;
    }

    /* Hero section */
    .hero-section {
        padding: 36px 0 24px;
    }
    h1.hero-headline {
        font-size: clamp(1.85rem, 6vw, 2.75rem) !important;
        gap: 8px;
        margin-bottom: 12px;
        line-height: 1.15;
    }
    .hero-model-icon {
        font-size: 1.6rem !important;
    }
    p.hero-subhead {
        font-size: 0.96rem;
        line-height: 1.55;
        margin: 0 auto 24px;
        padding: 0 4px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 13px 20px !important;
        font-size: 0.94rem !important;
        border-radius: 9999px;
        box-sizing: border-box;
    }

    /* Showcase grid */
    .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
    }
    .section-header h2 {
        font-size: 1.35rem !important;
        line-height: 1.25;
    }
    .section-header p {
        font-size: 0.88rem;
    }
    .card-meta-content {
        padding: 12px 14px 14px;
    }
    .meta-prompt-text {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 8px 10px;
        max-height: 110px;
    }

    /* Article */
    .doc-article {
        padding: 22px 16px !important;
        border-radius: 16px !important;
        margin-bottom: 24px !important;
    }
    .doc-article h2 {
        font-size: 1.35rem !important;
        margin-top: 22px !important;
        margin-bottom: 10px !important;
    }
    .doc-article p,
    .doc-article li {
        font-size: 0.92rem !important;
        line-height: 1.62 !important;
    }

    /* FAQ */
    .faq-block {
        padding: 16px 0;
    }
    .faq-q {
        font-size: 0.98rem;
    }
    .faq-a {
        font-size: 0.88rem;
    }

    /* CTA Banner */
    .cta-box, section.cta-box {
        padding: 34px 18px !important;
        border-radius: 20px !important;
        margin: 36px 0 24px !important;
    }
    .cta-box h2 {
        font-size: 1.55rem !important;
    }
    .cta-box p {
        font-size: 0.92rem !important;
        margin-bottom: 16px !important;
    }
    .btn-cta-large {
        width: 100%;
        justify-content: center;
        padding: 13px 20px !important;
    }

    footer.doc-footer-modern,
    footer.home-footer {
        padding: 40px 16px 30px !important;
        margin-top: 40px !important;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        margin-bottom: 30px !important;
    }
}

/* ---------------- FOOTER ---------------- */
footer.doc-footer,
footer.page-footer,
footer.doc-footer-modern,
footer.home-footer,
footer.site-footer,
footer.site-footer-unified {
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 40px;
    background: #08080a;
    margin-top: 60px;
}

.footer-link {
    color: #a1a1aa !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: #ffffff !important;
}

@media (max-width: 960px) {
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 36px !important;
    }
}

@media (max-width: 580px) {
    .footer-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.discord-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e4e4e7 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.discord-footer-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .footer-links {
        justify-content: center;
        gap: 14px;
    }
}


/* Custom Scroll Frame for Prompt Cards */
.meta-prompt-text {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent !important;
}
.meta-prompt-text::-webkit-scrollbar {
    width: 6px !important;
}
.meta-prompt-text::-webkit-scrollbar-track {
    background: transparent !important;
}
.meta-prompt-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 99px !important;
}
.meta-prompt-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38) !important;
}


