:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #16161f;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --accent: #c084fc;
    --radius: 12px;
    --radius-lg: 16px;
    --header-h: 64px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        var(--bg);
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-mark {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-active .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.nav-dropdown-chevron {
    flex-shrink: 0;
    transition: transform 0.15s;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    display: none;
    min-width: 220px;
    padding: 0.5rem 0.375rem 0.375rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.12);
}

.nav-dropdown-link.is-active {
    color: var(--accent);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.header-user {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #4f46e5);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modes grid */
.modes-section,
.features-section,
.landing-showcase,
.landing-journey,
.landing-seo {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mode-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mode-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px var(--primary-glow);
}

.mode-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.mode-link {
    color: var(--accent);
    font-size: 0.875rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin: 0 0 0.5rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.landing-section-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.landing-section-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.showcase-groups {
    display: grid;
    gap: 2rem;
}

.showcase-group {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), rgba(18, 18, 26, 0.95));
}

.showcase-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.showcase-group-header h3 {
    margin: 0 0 0.375rem;
    font-size: 1.25rem;
}

.showcase-group-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 680px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.showcase-card {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.showcase-media {
    background: var(--bg-elevated);
}

.showcase-media > img,
.showcase-media > video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.showcase-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
}

.showcase-compare-item {
    position: relative;
    background: var(--bg);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.showcase-compare-item img,
.showcase-compare-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 0.6875rem;
    color: var(--text);
}

.showcase-content {
    padding: 1rem;
}

.showcase-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.journey-copy .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.journey-copy p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.journey-steps {
    display: grid;
    gap: 1rem;
}

.journey-step {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.journey-step span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.journey-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.journey-step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Studio */
.studio-page {
    min-height: calc(100vh - var(--header-h));
}

.studio-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
    min-height: calc(100vh - var(--header-h) - 80px);
}

.studio-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h) - 2rem);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.studio-sidebar-header h1 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.studio-sidebar-header p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.field-input,
.field-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
}

.field-textarea {
    resize: vertical;
    min-height: 100px;
}

.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip-btn {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}

.chip-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--text);
}

.chip-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

.settings-panel {
    margin-bottom: 1rem;
}

.settings-panel summary {
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.chip-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
}

.chip.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.upload-zone:hover,
.upload-zone.is-dragover {
    border-color: var(--primary);
}

.upload-zone.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.upload-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-preview-media {
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--radius);
    object-fit: contain;
}

.upload-preview-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.credits-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-generate {
    padding: 0.875rem;
    font-size: 1rem;
}

.btn-generate.is-generating,
.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.auth-hint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.studio-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 520px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.preview-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.preview-showcase-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.preview-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.preview-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.preview-ai-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-stage {
    position: relative;
    flex: 1;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.12), transparent),
        var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-media {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.preview-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
}

.preview-compare-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    aspect-ratio: 16 / 10;
}

.preview-compare-item img,
.preview-compare-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-compare-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    font-size: 0.6875rem;
    color: var(--text);
}

.preview-compare-arrow {
    color: var(--accent);
    display: grid;
    place-items: center;
}

.preview-prompt-card {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.preview-prompt-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.preview-prompt-text {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}

.preview-use-prompt {
    font-size: 0.8125rem;
}

.preview-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.preview-thumb {
    position: relative;
    flex: 0 0 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.preview-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 0.75rem;
    pointer-events: none;
}

.preview-showcase[hidden] {
    display: none !important;
}

.preview-result {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    padding: 1rem;
    text-align: center;
}

.preview-result[hidden] {
    display: none !important;
}

.preview-result video,
.preview-result img,
.preview-result-media {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius);
}

.preview-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.preview-result-actions {
    display: flex;
    justify-content: center;
}

.preview-result-placeholder {
    margin: 0;
    color: var(--text-muted);
}

.preview-progress-card {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 2rem 1.5rem;
}

.preview-progress-orb {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 45%),
        linear-gradient(135deg, var(--primary), #6366f1);
    box-shadow:
        0 0 0 10px rgba(139, 92, 246, 0.08),
        0 0 36px rgba(139, 92, 246, 0.35);
    animation: preview-pulse 1.8s ease-in-out infinite;
}

.preview-progress-eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-progress-timer {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.preview-progress-timer.is-waiting {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
}

.preview-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-progress-bar-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s linear;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.preview-progress-status {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    max-width: 32ch;
}

@keyframes preview-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 10px rgba(139, 92, 246, 0.08),
            0 0 36px rgba(139, 92, 246, 0.35);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 0 16px rgba(139, 92, 246, 0.06),
            0 0 44px rgba(139, 92, 246, 0.45);
    }
}

@media (max-width: 900px) {
    .showcase-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .showcase-group-header {
        flex-direction: column;
    }

    .preview-compare {
        grid-template-columns: 1fr;
    }

    .preview-compare-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

.landing-seo {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.landing-seo h2 {
    color: var(--text);
}

/* Modal */
.modal[hidden] {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    width: min(400px, calc(100% - 2rem));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-dialog h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
}

.auth-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #f87171;
}

.auth-message.success {
    color: #4ade80;
}

.billing-modal {
    z-index: 300;
}

.billing-modal-dialog {
    text-align: center;
}

.billing-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.billing-modal-text {
    margin-bottom: 1.5rem;
}

.billing-modal-text strong {
    color: var(--text);
}

.billing-modal-actions {
    display: grid;
    gap: 0.75rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

.footer-nav,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-nav-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.footer-legal p {
    margin: 0;
    line-height: 1.6;
}

.footer-copy {
    text-align: center;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Legal pages */
.legal-page {
    padding: 2.5rem 0 4rem;
}

.legal-container {
    width: min(900px, 100% - 2rem);
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.legal-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--primary);
}

.legal-content {
    line-height: 1.7;
}

.legal-header {
    margin-bottom: 2rem;
}

.legal-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

.legal-updated {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--text);
}

.legal-content p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.legal-content ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-requisites {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.legal-requisites div {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.legal-requisites dt {
    margin: 0;
    font-weight: 500;
    color: var(--text);
    font-size: 0.8125rem;
}

.legal-requisites dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    word-break: break-word;
}

@media (max-width: 560px) {
    .legal-requisites div {
        grid-template-columns: 1fr;
    }
}

.billing-legal-note {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.billing-legal-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Paywall / Billing */
.paywall-page {
    padding: 2.5rem 0 4rem;
}

.paywall-container {
    width: min(1100px, 100% - 2rem);
}

.paywall-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.paywall-crown {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.paywall-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.paywall-header > p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.billing-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.billing-toggle-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.billing-toggle-btn.active {
    background: var(--text);
    color: var(--bg);
}

.billing-badge {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.25);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
}

.billing-toggle-btn.active .billing-badge {
    background: rgba(139, 92, 246, 0.35);
    color: var(--primary-hover);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.pricing-card.popular {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 40px var(--primary-glow);
}

.popular-badge {
    position: absolute;
    top: -0.625rem;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-card h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.pricing-amount {
    margin-bottom: 0.25rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-yearly-note {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 0 0 1rem;
}

.pricing-includes {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 1rem 0 0.5rem;
}

.pricing-features {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.pricing-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.payment-methods {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.payment-methods-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
}

.payment-option input {
    accent-color: var(--primary);
}

.btn-subscribe {
    padding: 0.75rem;
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: min(400px, calc(100% - 2rem));
    text-align: center;
}

.toast p {
    margin: 0;
    font-size: 0.875rem;
    color: #fca5a5;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: flex;
        order: 3;
    }

    .header-actions {
        order: 2;
    }

    .main-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 0 0.25rem;
        border-top: 1px solid var(--border);
        margin-top: 0.25rem;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.625rem 0.25rem;
        border-radius: var(--radius);
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin-top: 0;
        padding: 0 0 0.25rem 0.75rem;
        border: none;
        border-left: 1px solid var(--border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-link {
        padding: 0.5rem 0.25rem;
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .studio-layout {
        grid-template-columns: 1fr;
    }

    .studio-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .showcase-group {
        padding: 1rem;
    }

    .showcase-compare {
        grid-template-columns: 1fr;
    }
}

/* My content */
.content-page {
    padding: 2.5rem 0 4rem;
}

.content-container {
    width: min(1200px, 100% - 2rem);
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-header h1 {
    margin: 0 0 0.375rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-header p {
    margin: 0;
    color: var(--text-muted);
}

.content-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    background: var(--bg-card);
    text-align: center;
}

.content-empty p {
    margin: 0;
    color: var(--text-muted);
}

.content-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.content-table th,
.content-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.content-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.content-cell-preview {
    width: 88px;
}

.content-preview-media {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.content-preview-placeholder {
    display: block;
    width: 72px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
}

.content-cell-date {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.content-cell-prompt {
    max-width: 280px;
    color: var(--text-muted);
}

.content-cell-actions {
    white-space: nowrap;
}

.content-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.content-status.is-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

.content-status.is-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.content-status.is-processing {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.15);
}

.content-status.is-pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.content-status.is-muted {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.content-error {
    display: inline-grid;
    place-items: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: help;
}

@media (max-width: 900px) {
    .content-header {
        flex-direction: column;
    }

    .content-table th:nth-child(4),
    .content-table td:nth-child(4),
    .content-table th:nth-child(7),
    .content-table td:nth-child(7) {
        display: none;
    }
}

/* Content pipeline */
.pipeline-promo {
    padding: 2rem 0 3rem;
}

.pipeline-promo-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(18, 18, 26, 0.95));
}

.pipeline-promo-copy .section-title {
    text-align: left;
    margin-bottom: 0.75rem;
}

.pipeline-promo-copy p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.pipeline-promo-steps {
    display: grid;
    gap: 0.75rem;
}

.pipeline-promo-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.pipeline-promo-step span {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.pipeline-page {
    padding: 2.5rem 0 4rem;
}

.pipeline-container {
    width: min(960px, 100% - 2rem);
}

.pipeline-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.pipeline-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
}

.pipeline-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

.pipeline-lead {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.pipeline-offer,
.pipeline-how,
.pipeline-platforms {
    margin-bottom: 3rem;
}

.pipeline-offer h2,
.pipeline-how h2,
.pipeline-platforms h2,
.pipeline-cta h2 {
    margin: 0 0 1.25rem;
    font-size: 1.375rem;
    text-align: center;
}

.pipeline-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pipeline-feature {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.pipeline-feature-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.pipeline-feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.pipeline-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pipeline-steps {
    display: grid;
    gap: 1rem;
}

.pipeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.pipeline-step span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.pipeline-step h3 {
    margin: 0;
    font-size: 1rem;
}

.pipeline-step p {
    margin: 0;
    grid-column: 2;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pipeline-platform-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pipeline-platform {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
}

.pipeline-platform.is-active {
    color: var(--accent);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
}

.pipeline-platform.is-soon {
    opacity: 0.55;
}

.pipeline-platform-note {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pipeline-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.pipeline-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.pipeline-form-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #f87171;
}

.pipeline-form-message.is-success {
    color: #4ade80;
}

/* Model landing pages */
.models-index-page,
.model-landing-page {
    padding: 2.5rem 0 4rem;
}

.models-container,
.model-landing-container {
    width: min(1100px, 100% - 2rem);
}

.models-index-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.models-index-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

.models-index-lead {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.models-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.model-card-link {
    text-decoration: none;
    color: inherit;
}

.model-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.2s, transform 0.2s;
}

.model-card-link:hover .model-card {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.model-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.model-card-category {
    color: var(--accent);
    font-weight: 600;
}

.model-card-provider {
    color: var(--text-muted);
}

.model-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.model-card p {
    margin: 0;
    flex: 1;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.model-card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 1rem 0;
}

.model-card-highlights span {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.model-card-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.model-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.model-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.model-breadcrumb a:hover {
    text-decoration: underline;
}

.model-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.model-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.model-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
}

.model-badge.is-muted {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.model-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

.model-hero-tagline {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--text);
}

.model-hero-description {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.model-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.model-hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.model-media,
.model-example-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.model-media-caption {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.model-media-caption a {
    color: var(--accent);
    margin-left: 0.25rem;
}

.model-highlights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.model-highlight-chip {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    font-size: 0.8125rem;
    font-weight: 500;
}

.model-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.model-panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.model-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.model-panel ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.model-panel-pros {
    border-color: rgba(74, 222, 128, 0.25);
}

.model-panel-cons {
    border-color: rgba(248, 113, 113, 0.25);
}

.model-examples h2 {
    margin: 0 0 1.25rem;
    font-size: 1.375rem;
}

.model-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.model-example-card {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.model-example-card figcaption {
    padding: 0.875rem 1rem;
}

.model-example-card figcaption p {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
}

.model-example-card figcaption a {
    font-size: 0.8125rem;
    color: var(--accent);
}

.model-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.model-cta h2 {
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
}

.model-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.models-promo-section {
    padding: 3rem 0;
}

.models-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.model-promo-card {
    display: block;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.model-promo-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.model-promo-category {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.model-promo-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.model-promo-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

    .models-promo-footer {
        text-align: center;
    }

/* Provider health admin */
.provider-health-page {
    padding: 2rem 0 4rem;
}

.provider-health-container {
    max-width: 1200px;
}

.provider-health-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.provider-health-lead {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    max-width: 720px;
}

.provider-health-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.provider-health-status {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.provider-health-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
    font-size: 0.875rem;
}

.provider-health-summary #provider-health-ok {
    color: #4ade80;
}

.provider-health-summary #provider-health-fail {
    color: #f87171;
}

.provider-health-summary #provider-health-pending {
    color: var(--text-muted);
}

.provider-health-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.provider-health-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.provider-health-table th,
.provider-health-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.provider-health-table th {
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-elevated);
}

.provider-health-table tr.is-pending td {
    opacity: 0.7;
}

.provider-health-message {
    max-width: 320px;
    word-break: break-word;
    color: var(--text-muted);
}

.provider-health-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-health-badge.is-ok {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.provider-health-badge.is-fail {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.provider-health-badge.is-warn {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.provider-health-badge.is-pending {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .pipeline-promo-inner,
    .pipeline-features {
        grid-template-columns: 1fr;
    }

    .main-nav .nav-link {
        padding: 0.625rem 0.25rem;
        border-radius: var(--radius);
    }

    .models-index-grid,
    .models-promo-grid,
    .model-hero,
    .model-pros-cons,
    .model-examples-grid {
        grid-template-columns: 1fr;
    }
}
