:root {
    --bg: #0f1111;
    --panel: #171a1a;
    --panel-strong: #202525;
    --line: #343b39;
    --line-soft: #262c2b;
    --text: #f5f2ea;
    --muted: #b9b6ad;
    --subtle: #888d88;
    --accent: #d0aa63;
    --accent-strong: #f0c978;
    --signal: #72d6b2;
    --danger: #e5aca3;
    --steel: #aeb8b5;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 32rem),
        radial-gradient(circle at 84% 4%, rgba(114, 214, 178, 0.1), transparent 24rem),
        radial-gradient(circle at 18% 0%, rgba(208, 170, 99, 0.14), transparent 28rem),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

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

.site-header,
.site-footer {
    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(208, 170, 99, 0.55);
    background: linear-gradient(145deg, #303634, #151817);
    color: var(--accent);
    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(23, 26, 26, 0.74);
    font-size: 0.9rem;
}

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

.hero {
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: end;
    padding: 62px 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: 820px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 7.5vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.05;
}

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

.availability-panel,
.chat-panel,
.summary-panel,
.booking-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);
}

.availability-panel {
    padding: 24px;
}

.slot-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
}

.slot-row span,
.after-hours {
    color: var(--muted);
    line-height: 1.45;
}

.after-hours {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid rgba(208, 170, 99, 0.38);
    background: rgba(208, 170, 99, 0.08);
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.chat-panel,
.summary-panel {
    padding: 22px;
}

.summary-panel {
    position: sticky;
    top: 18px;
}

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

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

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

.quick-actions button,
.secondary-button {
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #151817;
}

.quick-actions button:hover,
.secondary-button:hover {
    border-color: rgba(208, 170, 99, 0.7);
}

.messages {
    height: 440px;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        #101211;
}

.message {
    width: min(88%, 620px);
    padding: 14px 15px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.035);
}

.message span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.message p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.customer-message {
    justify-self: end;
    background: rgba(114, 214, 178, 0.08);
    border-color: rgba(114, 214, 178, 0.25);
}

.customer-message span {
    color: var(--signal);
}

.chat-form {
    margin-top: 16px;
}

label {
    display: block;
    color: var(--steel);
    font-weight: 800;
    font-size: 0.92rem;
}

.compose-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: stretch;
    margin-top: 8px;
}

textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #101211;
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208, 170, 99, 0.16);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #d9b66d, #9f7d3c);
    color: #101211;
}

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

.warning {
    margin: 12px 0 0;
    color: var(--danger);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    line-height: 1.5;
    font-size: 0.92rem;
}

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

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    padding: 16px;
    margin-bottom: 14px;
    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);
    }
}

.status-pill {
    display: inline-flex;
    padding: 7px 9px;
    border: 1px solid rgba(208, 170, 99, 0.45);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.booking-card {
    padding: 18px;
    box-shadow: none;
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--signal);
    box-shadow: 0 0 18px rgba(114, 214, 178, 0.65);
}

dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

dl div {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

dt {
    color: var(--subtle);
    font-weight: 800;
}

dd {
    margin: 0;
    color: var(--text);
    min-width: 0;
}

.card-notes {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.insight-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.insight-grid article {
    padding: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.025);
}

.insight-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.insight-grid strong {
    color: var(--muted);
    line-height: 1.45;
}

.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: 940px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .workspace,
    .business-band,
    .cta-band {
        grid-template-columns: 1fr;
    }

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

    .summary-panel {
        position: static;
    }

    .messages {
        height: 380px;
    }

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

@media (max-width: 600px) {
    .quick-actions,
    .demo-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .quick-actions button,
    .demo-nav a {
        width: 100%;
        text-align: left;
    }

    .compose-row,
    .slot-row,
    dl div {
        grid-template-columns: 1fr;
    }

    .message {
        width: 100%;
    }
}
