:root {
    --rls-red: #c1121f;
    --rls-red-dark: #7c1018;
    --rls-red-soft: #ffe4e7;
    --rls-cream: #fff8f3;
    --rls-paper: rgba(255, 255, 255, 0.86);
    --rls-ink: #351216;
    --rls-muted: #7d4a51;
    --rls-line: rgba(193, 18, 31, 0.14);
    --rls-shadow: 0 28px 60px rgba(124, 16, 24, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--rls-ink);
    background:
        radial-gradient(circle at top left, rgba(193, 18, 31, 0.12), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(193, 18, 31, 0.11), transparent 24%),
        linear-gradient(180deg, #fffdf9 0%, #fff2f3 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 10px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--rls-red) 0%, var(--rls-red-dark) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    box-shadow: 0 14px 22px rgba(124, 16, 24, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rls-muted);
}

.brand-copy strong {
    font-size: 18px;
    font-weight: 800;
}

.topnav {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid var(--rls-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.topnav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--rls-muted);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
    padding: 36px 0 24px;
}

.hero-copy,
.launch-panel,
.workflow-card,
.delivery {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rls-line);
    border-radius: 28px;
    background: var(--rls-paper);
    box-shadow: var(--rls-shadow);
    backdrop-filter: blur(12px);
}

.hero-copy {
    padding: 42px;
}

.eyebrow,
.panel-kicker,
.card-index {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rls-muted);
}

.hero h1,
.delivery h2,
.launch-panel h2 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 6vw, 6.2rem);
}

.hero-text,
.delivery-copy p,
.workflow-card p,
.launch-hint,
#session-description,
.session-details {
    font-size: 16px;
    line-height: 1.7;
    color: var(--rls-muted);
}

.hero-text {
    max-width: 52ch;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-action,
.submit-button,
.ghost-button,
.secondary-action,
.preset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action,
.submit-button {
    border: none;
    padding: 14px 20px;
    background: linear-gradient(180deg, var(--rls-red) 0%, var(--rls-red-dark) 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 26px rgba(124, 16, 24, 0.22);
}

.secondary-action,
.ghost-button,
.preset-button {
    border: 1px solid var(--rls-line);
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--rls-ink);
    font-weight: 700;
    cursor: pointer;
}

.primary-action:hover,
.submit-button:hover,
.ghost-button:hover,
.secondary-action:hover,
.preset-button:hover {
    transform: translateY(-1px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 36px 0 0;
    list-style: none;
}

.hero-metrics li {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(193, 18, 31, 0.12);
}

.hero-metrics strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.hero-metrics span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--rls-muted);
}

.launch-panel {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,236,239,0.95) 100%);
}

.panel-sheen {
    position: absolute;
    inset: 0 auto auto 65%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(193, 18, 31, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.launch-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.launch-form label {
    font-size: 14px;
    font-weight: 700;
}

.launch-form input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(193, 18, 31, 0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    color: var(--rls-ink);
    outline: none;
}

.launch-form input:focus {
    border-color: var(--rls-red);
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.08);
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-button {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.launch-hint {
    margin: 0;
}

.local-mode-note {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(193, 18, 31, 0.12);
}

.local-mode-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rls-muted);
}

.local-mode-note ol {
    margin: 0;
    padding-left: 20px;
    color: var(--rls-muted);
    line-height: 1.7;
}

.local-mode-note li + li {
    margin-top: 4px;
}

.session-banner {
    margin-top: 24px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(193, 18, 31, 0.12);
}

.session-banner.is-hidden {
    display: none;
}

.session-badge {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--rls-red-soft);
    color: var(--rls-red-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.session-banner h3 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
}

.session-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.workflow-card {
    padding: 24px;
}

.workflow-card h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.accent-card {
    background: linear-gradient(135deg, rgba(193,18,31,0.96) 0%, rgba(124,16,24,0.94) 100%);
    color: #fff;
}

.accent-card .card-index,
.accent-card p {
    color: rgba(255,255,255,0.82);
}

.delivery {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    margin-top: 18px;
    padding: 30px;
}

@media (max-width: 980px) {
    .hero,
    .workflow-grid,
    .delivery {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .launch-panel {
        padding: 28px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 20px, 1200px);
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-copy,
    .launch-panel,
    .delivery,
    .workflow-card {
        border-radius: 24px;
    }

    .hero-copy {
        padding: 24px;
    }

    .hero h1 {
        font-size: 2.9rem;
    }

    .launch-panel {
        padding: 22px;
    }

    .launch-form input,
    .primary-action,
    .submit-button,
    .secondary-action,
    .ghost-button {
        width: 100%;
    }

    .hero-actions,
    .session-actions {
        flex-direction: column;
    }
}