html,
body {
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, rgba(13, 102, 107, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(245, 67, 47, 0.08), transparent 26%),
        var(--color-bg-cream);
}

body {
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.brand-logo {
    height: 32px;
    width: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-blue);
    letter-spacing: -0.04em;
    word-spacing: -3px;
}

.top-nav .btn-primary {
    color: #fff;
}

.landing-main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.landing-hero {
    padding: 32px 0 16px;
}

.hero-copy {
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13, 102, 107, 0.08);
    color: var(--color-primary-green);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: var(--color-primary-blue);
}

.hero-description {
    margin-top: 18px;
    max-width: 660px;
    font-size: 1.08rem;
    color: var(--color-text-body);
}

.examples-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.example-section {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 28px;
    border: 1px solid rgba(13, 42, 52, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.example-copy {
    position: sticky;
    top: 96px;
}

.example-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--color-primary-blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.example-copy h2 {
    margin-top: 18px;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--color-primary-blue);
    letter-spacing: -0.04em;
}

.example-copy p {
    margin-top: 12px;
    color: var(--color-text-body);
    font-size: 1rem;
}

.example-demo {
    min-width: 0;
}

.example-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.example-layout.with-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.example-chat-shell {
    min-height: 440px;
    background: rgba(255, 255, 255, 0.96);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-title img {
    height: 32px;
    width: auto;
}

.example-chat-shell .chat-header {
    background: linear-gradient(180deg, rgba(13, 42, 52, 0.04), rgba(13, 42, 52, 0.02));
}

.example-chat-shell .chat-body {
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(247, 244, 238, 0.55) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.example-chat-shell .message {
    max-width: 88%;
}

.landing-static-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-input);
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.example-side-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 440px;
    margin: 0;
    box-shadow: var(--shadow-md);
    align-self: stretch;
}

.example-side-panel .sp-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

.example-side-panel .sp-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-blue);
}

.example-side-panel .sp-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.example-side-panel .btn-primary,
.example-side-panel .btn-secondary {
    align-self: flex-start;
}

.panel-stat-card,
.panel-record,
.panel-notes,
.panel-source {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface-input);
}

.panel-stat-card strong,
.panel-record-title {
    display: block;
    color: var(--color-primary-blue);
    font-size: 1rem;
    font-weight: 700;
}

.panel-stat-label,
.panel-subtle {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.panel-notes {
    color: var(--color-text-body);
    background: rgba(13, 102, 107, 0.06);
    border-color: rgba(13, 102, 107, 0.16);
}

.landing-cta {
    margin-top: 42px;
}

.landing-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 40px 24px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(13, 42, 52, 0.96), rgba(17, 42, 52, 0.82));
    color: #fff;
    box-shadow: 0 22px 48px rgba(13, 42, 52, 0.18);
}

.landing-cta-card h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.landing-cta-card p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
}

.cta-button {
    min-width: 240px;
}

@media (max-width: 1100px) {
    .example-section {
        grid-template-columns: 1fr;
    }

    .example-copy {
        position: static;
    }
}

@media (max-width: 900px) {
    .example-layout.with-panel {
        grid-template-columns: 1fr;
    }

    .example-chat-shell,
    .example-side-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 14px 18px;
        gap: 16px;
    }

    .landing-main {
        padding: 28px 16px 72px;
    }

    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .example-section {
        padding: 18px;
        border-radius: 24px;
    }

    .example-copy h2 {
        font-size: 1.7rem;
    }

    .chat-header,
    .chat-body,
    .chat-footer,
    .example-side-panel .sp-header,
    .example-side-panel .sp-content {
        padding-left: 14px;
        padding-right: 14px;
    }
}
