/* SceneForge Studio custom styles */
:root {
    --sf-primary: #0f766e;
    --sf-primary-dark: #115e59;
    --sf-secondary: #0f172a;
    --sf-accent: #f97316;
    --sf-accent-soft: #ffedd5;
    --sf-highlight: #14b8a6;
    --sf-bg: #f7f9fc;
    --sf-surface: rgba(255, 255, 255, 0.86);
    --sf-surface-strong: #ffffff;
    --sf-border: rgba(15, 23, 42, 0.08);
    --sf-text: #0f172a;
    --sf-text-soft: #475569;
    --sf-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    --sf-radius-lg: 28px;
    --sf-radius-md: 20px;
    --sf-radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body.app-shell {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
    color: var(--sf-text);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.section-kicker,
.eyebrow-pill,
.status-pill,
.stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

p,
li,
a,
span,
label,
input,
select,
textarea {
    color: var(--sf-text-soft);
}

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

a:hover {
    color: var(--sf-primary-dark);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    backdrop-filter: blur(18px);
    background: rgba(247, 249, 252, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar-brand.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: var(--sf-secondary);
    letter-spacing: -0.02em;
}

.brand-mark__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf-accent), var(--sf-highlight));
    box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.1);
}

.nav-link {
    color: var(--sf-text-soft);
    font-weight: 600;
    padding: 0.65rem 0.95rem !important;
    border-radius: 999px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--sf-secondary);
    background: rgba(20, 184, 166, 0.08);
}

.nav-toggle {
    border: 1px solid var(--sf-border);
    border-radius: 14px;
}

.section-space {
    padding: 5.5rem 0;
}

.section-space--hero {
    padding-top: 4.5rem;
}

.section-space--tight {
    padding-top: 2rem;
}

.hero-shell,
.inner-hero {
    position: relative;
    overflow: clip;
}

.hero-shell::before,
.hero-shell::after,
.inner-hero::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}

.hero-shell::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: 6%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 118, 110, 0.02));
}

.hero-shell::after {
    width: 260px;
    height: 260px;
    bottom: 0;
    left: 2%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.02));
}

.eyebrow-pill,
.status-pill,
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.eyebrow-pill,
.badge-soft {
    color: var(--sf-primary-dark);
    background: rgba(20, 184, 166, 0.12);
}

.status-pill {
    color: #fff;
    background: linear-gradient(135deg, var(--sf-primary), var(--sf-highlight));
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.22);
}

.status-pill--small {
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
}

.display-title {
    font-size: clamp(2.8rem, 4vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin: 1.25rem 0 1.5rem;
    color: var(--sf-secondary);
    max-width: 12ch;
}

.display-title--sm {
    font-size: clamp(2.4rem, 3vw, 3.7rem);
}

.hero-copy {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    border-radius: 999px;
    font-size: 0.96rem;
    padding: 0.92rem 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-brand {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, var(--sf-primary), var(--sf-highlight));
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.26);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--sf-primary-dark), var(--sf-primary));
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--sf-secondary);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--sf-secondary);
    background: #fff;
}

.glass-panel,
.card-surface {
    position: relative;
    border-radius: var(--sf-radius-lg);
    background: var(--sf-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--sf-shadow);
    backdrop-filter: blur(20px);
}

.glass-panel {
    padding: 2rem;
}

.card-surface {
    padding: 1.6rem;
}

.card-surface--nested {
    background: rgba(248, 250, 252, 0.82);
    box-shadow: none;
    border: 1px solid var(--sf-border);
}

.hero-panel__header,
.section-heading,
.project-card__meta,
.project-card__footer,
.template-showcase__top,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-kicker,
.section-kicker,
.scene-card__badge {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sf-accent);
    margin-bottom: 0.75rem;
}

.panel-title,
.section-heading h2,
.project-card h2,
.project-card h3,
.template-showcase h3,
.success-shell h1,
.detail-panel h2,
.detail-panel h3,
.info-stack__item h3,
.empty-state h2,
.empty-state h3 {
    color: var(--sf-secondary);
    margin: 0 0 0.6rem;
    letter-spacing: -0.03em;
}

.scene-stack,
.info-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.scene-card,
.info-stack__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--sf-radius-md);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(243,247,252,0.9));
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.scene-card h3,
.info-stack__item h3 {
    font-size: 1.12rem;
}

.scene-card p,
.template-showcase p,
.project-card p,
.empty-state p,
.detail-copy,
.info-stack__item p {
    margin-bottom: 0;
    line-height: 1.75;
}

.scene-meta,
.template-metrics,
.queue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.scene-meta li,
.template-metrics span,
.queue-tags span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--sf-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 640px;
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--sf-radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    color: var(--sf-secondary);
}

.stat-label {
    display: block;
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.builder-layout,
.success-grid,
.detail-grid {
    display: grid;
    gap: 1.5rem;
}

.builder-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    padding: 2rem;
}

.builder-copy {
    padding: 1rem;
}

.form-surface {
    padding: 1.8rem;
}

.form-surface--large {
    padding: 2rem;
}

.form-label {
    color: var(--sf-secondary);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.84);
    color: var(--sf-secondary);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.12);
}

textarea.form-control {
    min-height: 120px;
}

.form-help,
.text-body-secondary {
    font-size: 0.9rem;
    color: #64748b !important;
    margin-top: 0.45rem;
}

.form-error {
    color: #b91c1c;
    font-size: 0.92rem;
    margin-top: 0.45rem;
}

.benefit-list {
    margin-top: 1.8rem;
    display: grid;
    gap: 0.8rem;
}

.benefit-list li {
    position: relative;
    padding-left: 1.6rem;
}

.benefit-list li::before,
.timeline-list li::marker {
    color: var(--sf-accent);
}

.benefit-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -0.05rem;
    font-size: 1.4rem;
    line-height: 1;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card__footer {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--sf-border);
    font-size: 0.92rem;
}

.search-shell {
    padding: 1.5rem;
}

.success-shell {
    padding: 2.25rem;
}

.success-grid,
.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.detail-panel {
    padding: 2rem;
}

.detail-list {
    display: grid;
    gap: 0.95rem;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--sf-border);
}

.detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-list strong,
.detail-list a {
    color: var(--sf-secondary);
    text-align: right;
    word-break: break-word;
}

.timeline-list {
    padding-left: 1.2rem;
    color: var(--sf-text-soft);
}

.timeline-list li + li {
    margin-top: 0.75rem;
}

.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.sticky-column {
    position: sticky;
    top: 6rem;
}

.site-footer {
    padding: 2rem 0 3rem;
}

.footer-inner {
    padding-top: 1.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sf-secondary);
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .stat-grid,
    .builder-layout,
    .success-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .scene-card,
    .info-stack__item,
    .section-heading,
    .project-card__meta,
    .project-card__footer,
    .hero-panel__header,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sticky-column {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 4rem 0;
    }

    .glass-panel,
    .builder-layout,
    .success-shell,
    .detail-panel,
    .form-surface,
    .card-surface {
        padding: 1.4rem;
    }

    .display-title {
        max-width: none;
    }

    .hero-actions,
    .footer-links {
        width: 100%;
    }

    .hero-actions .btn,
    .footer-links a,
    .d-flex.gap-2 .btn,
    .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
    }
}
