:root {
    --bg: #101110;
    --panel: #191b19;
    --panel-strong: #222520;
    --line: #383d36;
    --line-soft: #2a2e29;
    --text: #f7f1e6;
    --muted: #bfc5b9;
    --subtle: #8e9689;
    --accent: #d5a654;
    --accent-strong: #f0c879;
    --green: #7ec8a1;
    --steel: #91abc2;
    --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(213, 166, 84, 0.12), rgba(213, 166, 84, 0) 32rem),
        linear-gradient(180deg, rgba(145, 171, 194, 0.1), rgba(145, 171, 194, 0) 26rem),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header {
    padding: 22px 0 14px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213, 166, 84, 0.64);
    background: #151512;
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.demo-nav a,
.eyebrow {
    color: var(--muted);
}

.demo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.demo-nav a {
    border: 1px solid var(--line-soft);
    padding: 8px 11px;
    text-decoration: none;
    background: rgba(25, 27, 25, 0.78);
    font-size: 0.9rem;
}

.demo-nav a[aria-current="page"] {
    color: var(--accent-strong);
    border-color: rgba(213, 166, 84, 0.6);
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: end;
    padding: 58px 0 34px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 840px;
    margin-bottom: 18px;
    font-size: clamp(2.65rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.08;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.lede {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.hero-panel,
.input-panel,
.output-panel,
.detail-card,
.business-band,
.cta-band {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--panel);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 24px;
}

.hero-panel span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-panel strong {
    display: block;
    line-height: 1.45;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    align-items: start;
}

.input-panel,
.output-panel {
    padding: 22px;
}

.output-panel {
    min-height: 760px;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.92rem;
}

select {
    width: 100%;
    min-height: 48px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: #0f100f;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(213, 166, 84, 0.16);
}

.warning {
    margin: 4px 0 18px;
    color: var(--subtle);
    font-size: 0.92rem;
    line-height: 1.55;
}

button,
.primary-button,
.secondary-button {
    border: 0;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(180deg, #f0c879, #c58d34);
    color: #141007;
}

.primary-button:disabled {
    opacity: 0.62;
    cursor: progress;
}

.secondary-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    background: #121412;
}

.status-pill {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill.live {
    color: var(--green);
    border-color: rgba(126, 200, 161, 0.55);
}

.status-pill.fallback {
    color: var(--accent-strong);
    border-color: rgba(213, 166, 84, 0.6);
}

.loading[hidden] {
    display: none !important;
}

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.18);
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton-preview {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    min-height: 370px;
    margin-bottom: 16px;
    border: 1px solid rgba(213, 166, 84, 0.42);
    background: #11120f;
}

.skeleton-preview[hidden] {
    display: none !important;
}

.skeleton-media,
.skeleton-copy span,
.skeleton-copy strong,
.skeleton-copy p,
.skeleton-copy button {
    background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(240,200,121,.16), rgba(255,255,255,.05));
    background-size: 220% 100%;
    animation: skeleton-sheen 1.1s ease-in-out infinite;
}

.skeleton-media {
    min-height: 330px;
}

.skeleton-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 30px;
}

.skeleton-copy span,
.skeleton-copy strong,
.skeleton-copy p,
.skeleton-copy button {
    display: block;
    border-radius: 4px;
}

.skeleton-copy span { width: 42%; height: 15px; }
.skeleton-copy strong { width: 88%; height: 58px; }
.skeleton-copy p { width: 100%; height: 15px; margin: 0; }
.skeleton-copy p + p { width: 72%; }
.skeleton-copy button { width: 132px; height: 44px; border: 0; }

@keyframes skeleton-sheen {
    to {
        background-position: -220% 0;
    }
}

.result-state {
    display: grid;
    gap: 16px;
}

.mockup-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    min-height: 370px;
    border: 1px solid rgba(213, 166, 84, 0.54);
    background: #11120f;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3);
}

.mockup-visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(240, 200, 121, 0.12), rgba(145, 171, 194, 0.14)),
        linear-gradient(180deg, #6f8492 0%, #d5ba86 46%, #302b22 47%, #171815 100%);
}

.mockup-visual::before,
.mockup-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(145deg, transparent 0 30%, rgba(20, 16, 7, 0.92) 30% 55%, transparent 55%);
}

.mockup-visual::after {
    inset: auto -18% 0 20%;
    opacity: 0.72;
    transform: skewX(-10deg);
}

.mockup-badge,
.visual-caption {
    position: absolute;
    z-index: 1;
}

.mockup-badge {
    top: 18px;
    left: 18px;
    padding: 8px 10px;
    background: rgba(15, 16, 15, 0.82);
    border: 1px solid rgba(240, 200, 121, 0.58);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.visual-caption {
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.visual-caption span,
.visual-caption strong {
    display: block;
    padding: 8px 10px;
    background: rgba(15, 16, 15, 0.84);
}

.visual-caption span {
    color: var(--muted);
    font-weight: 800;
}

.roofline {
    position: absolute;
    right: 12%;
    bottom: 26%;
    width: 54%;
    height: 12px;
    background: var(--accent-strong);
    transform: rotate(-13deg);
    box-shadow: 0 16px 0 rgba(240, 200, 121, 0.28);
}

.mockup-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.mockup-copy h3 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
}

.mockup-copy p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.62;
}

.mockup-copy button {
    align-self: flex-start;
    margin-top: 12px;
    min-height: 44px;
    padding: 11px 14px;
    background: var(--text);
    color: #11120f;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-card {
    padding: 18px;
}

.detail-card.wide,
.prompt-card {
    grid-column: 1 / -1;
}

.detail-card p,
.detail-card li,
.detail-card small {
    color: var(--muted);
    line-height: 1.55;
}

.detail-card ul {
    margin: 0;
    padding-left: 19px;
}

.detail-card li + li {
    margin-top: 8px;
}

.prompt-card {
    border-color: rgba(145, 171, 194, 0.55);
    background:
        linear-gradient(145deg, rgba(145, 171, 194, 0.1), rgba(255, 255, 255, 0.015)),
        var(--panel);
}

.prompt-card small {
    display: block;
    margin-top: 10px;
    color: var(--steel);
    font-weight: 800;
}

.business-band,
.cta-band {
    margin-top: 24px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.business-band p,
.cta-band p {
    color: var(--muted);
    line-height: 1.6;
}

.cta-band {
    margin-bottom: 30px;
}

.cta-link {
    width: auto;
    justify-self: end;
}

.site-footer {
    color: var(--subtle);
    border-top: 1px solid var(--line-soft);
    padding: 24px 0 34px;
    font-size: 0.9rem;
}

@media (max-width: 920px) {
    .site-header,
    .site-footer,
    .hero,
    .workspace,
    .business-band,
    .cta-band,
    .mockup-card,
    .skeleton-preview,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .output-panel {
        min-height: 0;
    }

    .mockup-copy {
        padding: 24px;
    }

    .mockup-copy h3 {
        font-size: 2rem;
    }

    .cta-link {
        justify-self: stretch;
    }
}
