/* ─── Base ─────────────────────────────────────────────── */
::selection { background: rgba(255,92,53,.18); color: #08121f; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", "Manrope", sans-serif; }

/* ─── Dashboard shell ──────────────────────────────────── */
.dashboard-shell {
    background: #0f111a;
    min-height: 100vh;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.dashboard-sidebar {
    background: #13151f;
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    scrollbar-width: none;
}
.dashboard-sidebar::-webkit-scrollbar { display: none; }

/* ─── Nav links ────────────────────────────────────────── */
.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .85rem;
    padding: .7rem .95rem;
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 600;
    transition: background 160ms, color 160ms, transform 120ms;
    text-decoration: none;
}
.dashboard-nav-link:hover {
    background: rgba(255,92,53,.1);
    color: #ff5c35;
    transform: translateX(2px);
}
.dashboard-nav-link-active {
    background: rgba(255,92,53,.15);
    color: #ff5c35;
    box-shadow: inset 3px 0 0 #ff5c35;
}
.dashboard-nav-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
    color: #64748b;
}
.dashboard-nav-link-active .dashboard-nav-icon {
    background: #ff5c35;
    color: #fff;
}

/* ─── Main content area ────────────────────────────────── */
.dashboard-main {
    background: #0f111a;
    flex: 1;
    overflow-y: auto;
    height: 100vh;
}

/* ─── Surface cards ────────────────────────────────────── */
.dashboard-surface {
    background: #181b27;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.dashboard-surface-soft {
    background: linear-gradient(135deg, rgba(255,92,53,.08) 0%, rgba(255,92,53,.03) 100%);
    border: 1px solid rgba(255,92,53,.18);
    border-radius: 1.25rem;
}

/* ─── Pill badges ──────────────────────────────────────── */
.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.dashboard-pill-muted { background: rgba(255,255,255,.06); color: #64748b; }
.dashboard-pill-brand { background: rgba(255,92,53,.15); color: #ff5c35; }
.dashboard-pill-online { background: rgba(16,185,129,.15); color: #10b981; }

/* ─── Status badges ────────────────────────────────────── */
.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.dashboard-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dashboard-status-open { background: rgba(16,185,129,.12); color: #10b981; }
.dashboard-status-open::before { background: #10b981; }
.dashboard-status-human { background: rgba(245,158,11,.12); color: #f59e0b; }
.dashboard-status-human::before { background: #f59e0b; }
.dashboard-status-resolved { background: rgba(100,116,139,.12); color: #64748b; }
.dashboard-status-resolved::before { background: #64748b; }

/* ─── Code blocks ──────────────────────────────────────── */
.dashboard-code-block {
    overflow-x: auto;
    border-radius: .85rem;
    background: #0a0c14;
    border: 1px solid rgba(255,255,255,.07);
    padding: .85rem 1rem;
    color: #93c5fd;
    font-size: .75rem;
    line-height: 1.7;
    font-family: "Fira Code", "Courier New", monospace;
}
.landing-code-block {
    overflow-x: auto;
    border-radius: 1.1rem;
    background: #0a0c14;
    padding: 1rem 1.1rem;
    color: #eff6ff;
    font-size: .82rem;
    line-height: 1.8;
    border: 1px solid rgba(255,255,255,.06);
}
.landing-icon-ring {
    display: inline-flex;
    height: 3rem; width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff1ec;
    color: #ff5c35;
    font-weight: 800;
    letter-spacing: .08em;
}

/* ─── Stat cards ───────────────────────────────────────── */
.stat-card {
    background: #181b27;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem;
    transition: border-color 200ms, transform 200ms;
}
.stat-card:hover { border-color: rgba(255,92,53,.3); transform: translateY(-2px); }
.stat-card-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    font-family: "Space Grotesk", sans-serif;
}
.stat-card-label { font-size: .78rem; color: #64748b; font-weight: 500; }
.stat-card-sub { font-size: .68rem; color: #475569; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; margin-top: .5rem; }

/* ─── Table (overview recent activity) ─────────────────── */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
    text-align: left;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #475569;
    padding: .6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-table td {
    padding: .9rem 1rem;
    font-size: .85rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}
.dash-table tbody tr { transition: background 150ms; }
.dash-table tbody tr:hover { background: rgba(255,255,255,.03); }
.dash-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   MESSENGER / INBOX UI
═══════════════════════════════════════════════════════════ */

/* Thread list panel */
.inbox-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 0px);
    overflow: hidden;
}
@media (max-width: 900px) {
    .inbox-layout { grid-template-columns: 1fr; }
    .inbox-thread-pane { display: none; }
}

.inbox-thread-pane {
    background: #13151f;
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.inbox-thread-header {
    padding: 1.25rem 1.1rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.inbox-search {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .7rem;
    padding: .5rem .85rem;
    font-size: .82rem;
    color: #cbd5e1;
    width: 100%;
    outline: none;
    transition: border-color 200ms;
}
.inbox-search::placeholder { color: #475569; }
.inbox-search:focus { border-color: rgba(255,92,53,.4); }

.inbox-thread-list {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}
.inbox-thread-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background 150ms;
    text-decoration: none;
}
.inbox-thread-item:hover { background: rgba(255,255,255,.04); }
.inbox-thread-item.active { background: rgba(255,92,53,.1); border-left: 3px solid #ff5c35; }
.inbox-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5c35, #e14d29);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.inbox-avatar-online::after {
    content: '';
    position: absolute;
    bottom: 1px; right: 1px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #13151f;
}
.inbox-thread-meta { flex: 1; min-width: 0; }
.inbox-thread-name {
    font-size: .84rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inbox-thread-preview {
    font-size: .75rem;
    color: #64748b;
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inbox-thread-time {
    font-size: .68rem;
    color: #475569;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
}
.inbox-unread-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ff5c35;
}

/* Chat area */
.inbox-chat-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f111a;
}
.inbox-chat-topbar {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    background: #13151f;
}
.inbox-chat-title { font-size: .95rem; font-weight: 700; color: #f1f5f9; }
.inbox-chat-subtitle { font-size: .75rem; color: #64748b; margin-top: .1rem; }

.inbox-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}

/* ─── Chat bubbles ─────────────────────────────────────── */
.msg-row { display: flex; align-items: flex-end; gap: .6rem; }
.msg-row-right { flex-direction: row-reverse; }

.msg-bubble {
    max-width: 68%;
    padding: .65rem 1rem;
    font-size: .86rem;
    line-height: 1.6;
    border-radius: 1.1rem;
    word-break: break-word;
    white-space: pre-wrap;
}
.msg-bubble-has-attachment { padding: .55rem; }
.msg-bubble-text { white-space: pre-wrap; }
.msg-bubble-text-with-attachment { margin-top: .55rem; padding: 0 .2rem .15rem; }
.msg-bubble-user {
    background: #1e2235;
    color: #cbd5e1;
    border-bottom-left-radius: .3rem;
}
.msg-bubble-bot {
    background: linear-gradient(135deg, #ff5c35, #e14d29);
    color: #fff;
    border-bottom-right-radius: .3rem;
}
.msg-bubble-agent {
    background: #1a2744;
    color: #93c5fd;
    border-bottom-right-radius: .3rem;
}
.msg-bubble-system {
    background: rgba(245,158,11,.1);
    color: #f59e0b;
    font-size: .75rem;
    border-radius: .7rem;
    padding: .4rem .85rem;
    text-align: center;
    align-self: center;
    max-width: 90%;
}
.msg-sender-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475569;
    margin-bottom: .25rem;
}
.msg-time {
    font-size: .65rem;
    color: #475569;
    margin-top: .2rem;
    padding: 0 .25rem;
}
.msg-avatar {
    width: 1.8rem; height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-bottom: .15rem;
}
.msg-avatar-user { background: #334155; }
.msg-avatar-bot { background: linear-gradient(135deg,#ff5c35,#e14d29); }
.msg-avatar-agent { background: #1d4ed8; }
.msg-attachment-link {
    display: block;
    border-radius: .85rem;
    overflow: hidden;
    text-decoration: none;
}
.msg-attachment-image {
    display: block;
    width: min(320px, 100%);
    max-height: 280px;
    object-fit: cover;
    border-radius: .85rem;
}
.msg-attachment-audio {
    display: block;
    width: min(320px, 100%);
    min-width: 240px;
}
.msg-attachment-file-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .55rem;
    color: inherit;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    opacity: .92;
}
.msg-attachment-file-link:hover { opacity: 1; text-decoration: underline; }

/* Reply box */
.inbox-reply-box {
    padding: 1rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,.06);
    background: #13151f;
    flex-shrink: 0;
}
.inbox-reply-inner {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.1rem;
    padding: .6rem .85rem;
    transition: border-color 200ms;
}
.inbox-reply-inner:focus-within { border-color: rgba(255,92,53,.4); }
.inbox-file-input { display: none; }
.inbox-attach-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94a3b8;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: color 160ms, border-color 160ms, background 160ms;
}
.inbox-attach-btn:hover {
    color: #ff5c35;
    border-color: rgba(255,92,53,.35);
    background: rgba(255,92,53,.08);
}
.inbox-reply-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: .86rem;
    color: #cbd5e1;
    font-family: inherit;
    line-height: 1.5;
    min-height: 2.4rem;
    max-height: 8rem;
}
.inbox-reply-textarea::placeholder { color: #475569; }
.inbox-selected-file {
    margin-top: .65rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-radius: 999px;
    background: rgba(255,92,53,.1);
    border: 1px solid rgba(255,92,53,.18);
    color: #ffb6a2;
    font-size: .72rem;
    font-weight: 600;
    padding: .35rem .75rem;
}
.inbox-selected-file-clear {
    border: none;
    background: transparent;
    color: #f8fafc;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    padding: 0;
}
.inbox-send-btn {
    width: 2.2rem; height: 2.2rem;
    border-radius: .7rem;
    background: #ff5c35;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 160ms, transform 120ms;
}
.inbox-send-btn:hover { background: #e14d29; transform: translateY(-1px); }

/* Context sidebar inside conversation detail */
.conv-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,.06);
    background: #13151f;
    overflow-y: auto;
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.conv-meta-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .9rem;
    padding: 1rem;
}
.conv-meta-card dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #475569; }
.conv-meta-card dd { font-size: .82rem; color: #cbd5e1; margin-top: .3rem; font-weight: 500; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: .75rem;
    background: #ff5c35;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: .55rem 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 160ms, transform 120ms, box-shadow 160ms;
    text-decoration: none;
}
.btn-primary:hover { background: #e14d29; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,92,53,.3); }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.06);
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 600;
    padding: .55rem 1.1rem;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: background 160ms, color 160ms;
    text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #f1f5f9; }

/* ─── Form inputs (dark theme override) ────────────────── */
.dash-input,
textarea.dash-input,
select.dash-input {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    color: #f1f5f9;
    font-size: .84rem;
    padding: .65rem .9rem;
    outline: none;
    transition: border-color 200ms;
    font-family: inherit;
}
.dash-input:focus { border-color: rgba(255,92,53,.5); background: rgba(255,255,255,.07); }
.dash-input::placeholder { color: #475569; }

/* Force Django form widgets dark */
input[type="text"], input[type="email"], input[type="url"],
input[type="color"], textarea, select {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: .75rem !important;
    color: #f1f5f9 !important;
    padding: .65rem .9rem !important;
    font-size: .84rem !important;
    outline: none !important;
    width: 100% !important;
    font-family: inherit !important;
    transition: border-color 200ms !important;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus,
textarea:focus, select:focus {
    border-color: rgba(255,92,53,.5) !important;
    background: rgba(255,255,255,.07) !important;
}
textarea { resize: vertical; min-height: 100px; }
select option { background: #181b27; color: #f1f5f9; }
input[type="checkbox"] {
    width: 1rem !important;
    height: 1rem !important;
    accent-color: #ff5c35 !important;
    border-radius: .25rem !important;
    padding: 0 !important;
}

/* Section headings */
.section-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #ff5c35;
}
.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    margin-top: .4rem;
}
.section-sub {
    font-size: .83rem;
    color: #64748b;
    line-height: 1.7;
    margin-top: .5rem;
}

/* Scrollbar global */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.07) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════ */

:root {
    --landing-paper: #f5efe7;
    --landing-paper-deep: #efe3d6;
    --landing-surface: rgba(255,255,255,.82);
    --landing-surface-strong: #ffffff;
    --landing-border: rgba(15,23,42,.08);
    --landing-ink: #111827;
    --landing-muted: #5f6b7a;
    --landing-muted-soft: #7c8796;
    --landing-brand: #d95d39;
    --landing-brand-strong: #b9492d;
    --landing-brand-soft: #fff1ea;
    --landing-shadow: 0 28px 90px rgba(15,23,42,.12);
    --landing-shadow-soft: 0 18px 50px rgba(15,23,42,.08);
}

.landing-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255,213,188,.72), transparent 34%),
        radial-gradient(circle at 85% 14%, rgba(248,195,134,.28), transparent 22%),
        linear-gradient(180deg, #fbf6f1 0%, var(--landing-paper) 42%, #f7f1ea 100%);
    color: var(--landing-ink);
}

.landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17,24,39,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,0));
    pointer-events: none;
}

.landing-hero {
    position: relative;
}

.landing-orb,
.landing-grid-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
}

.landing-orb {
    background: linear-gradient(135deg, rgba(217,93,57,.32), rgba(255,255,255,0));
    animation: landingFloat 12s ease-in-out infinite;
}

.landing-orb-one {
    top: 5rem;
    right: -4rem;
    width: 18rem;
    height: 18rem;
}

.landing-orb-two {
    left: -5rem;
    top: 26rem;
    width: 15rem;
    height: 15rem;
    animation-delay: -4s;
}

.landing-grid-glow {
    right: 12%;
    top: 9rem;
    width: 22rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(255,255,255,.82) 0%, rgba(255,255,255,0) 72%);
}

.landing-nav {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 1.9rem;
    background: rgba(255,255,255,.7);
    box-shadow: var(--landing-shadow-soft);
    backdrop-filter: blur(18px);
}

.landing-nav-logo {
    display: inline-flex;
    align-items: center;
}

.landing-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
}

.landing-link {
    padding: .8rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--landing-muted);
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.landing-link:hover {
    color: var(--landing-brand);
    background: rgba(255,255,255,.7);
    transform: translateY(-1px);
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--landing-brand) 0%, #f17347 100%);
    padding: .85rem 1.25rem;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(217,93,57,.24);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.landing-button:hover,
.landing-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(217,93,57,.28);
    filter: saturate(1.03);
}

.landing-button-ghost {
    border-color: rgba(15,23,42,.1);
    background: rgba(255,255,255,.74);
    color: var(--landing-ink);
    box-shadow: none;
}

.landing-button-large {
    padding: 1rem 1.45rem;
}

.landing-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 3.2rem;
    padding: 5rem 0 0;
    align-items: center;
}

.landing-copy {
    max-width: 42rem;
}

.landing-kicker,
.landing-section-eyebrow,
.landing-cta-eyebrow,
.landing-code-label,
.landing-flow-note-label,
.landing-story-card-label,
.landing-feature-index,
.landing-proof-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--landing-brand);
}

.landing-kicker {
    padding: .55rem .9rem;
    border: 1px solid rgba(217,93,57,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
}

.landing-headline {
    margin-top: 1.4rem;
    max-width: 13ch;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: .96;
    letter-spacing: -.04em;
    color: var(--landing-ink);
}

.landing-lead,
.landing-section-copy,
.landing-cta-copy {
    margin-top: 1.35rem;
    max-width: 42rem;
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--landing-muted);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .95rem;
    margin-top: 2rem;
}

.landing-trust-row,
.landing-sector-row,
.landing-band-tags,
.landing-feature-pills,
.landing-cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.landing-trust-row {
    margin-top: 1.5rem;
}

.landing-pill,
.landing-sector-row span,
.landing-band-tags span,
.landing-feature-pills span,
.landing-cta-strip span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.72);
    padding: .65rem .95rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--landing-muted);
}

.landing-proof-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2.1rem;
}

.landing-proof-card,
.landing-story-card,
.landing-feature-panel,
.landing-step-card,
.landing-flow-stack-card,
.landing-code-card,
.landing-security-card,
.landing-fit-card,
.landing-fit-item,
.landing-story-spotlight,
.landing-flow-shell {
    border: 1px solid var(--landing-border);
    border-radius: 1.7rem;
    background: var(--landing-surface);
    box-shadow: var(--landing-shadow-soft);
    backdrop-filter: blur(16px);
}

.landing-proof-card {
    padding: 1.25rem;
}

.landing-proof-card-accent {
    background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,244,238,.96));
    border-color: rgba(217,93,57,.14);
}

.landing-proof-value {
    margin-top: .8rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--landing-ink);
    letter-spacing: -.04em;
}

.landing-proof-copy {
    margin-top: .45rem;
    font-size: .94rem;
    line-height: 1.75;
    color: var(--landing-muted);
}

.landing-sector-row {
    margin-top: 1.6rem;
}

.landing-stage-wrap {
    position: relative;
}

.landing-stage-flags {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .8rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(17,24,39,.62);
}

.landing-stage {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,248,243,.82));
    box-shadow: var(--landing-shadow);
    backdrop-filter: blur(20px);
    animation: landingFloat 10s ease-in-out infinite;
}

.landing-stage::before {
    content: "";
    position: absolute;
    inset: 1.1rem 12% auto auto;
    width: 12rem;
    height: 8rem;
    background: radial-gradient(circle, rgba(255,237,230,.92) 0%, rgba(255,237,230,0) 70%);
    filter: blur(18px);
    pointer-events: none;
}

.landing-stage-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem .25rem 1rem;
    color: rgba(17,24,39,.55);
    font-size: .82rem;
    font-weight: 700;
}

.landing-window-controls {
    display: inline-flex;
    gap: .35rem;
}

.landing-window-controls span {
    width: .72rem;
    height: .72rem;
    border-radius: 999px;
    background: rgba(15,23,42,.12);
}

.landing-stage-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
}

.landing-stage-sidebar {
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(17,24,39,.94);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}

.landing-sidebar-title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.54);
}

.landing-workspace-chip {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    margin-top: .75rem;
    padding: .9rem .95rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 1rem;
    background: rgba(255,255,255,.04);
}

.landing-workspace-chip strong {
    font-size: .9rem;
    font-weight: 700;
}

.landing-workspace-chip span {
    font-size: .75rem;
    color: rgba(255,255,255,.58);
}

.landing-workspace-chip-active {
    border-color: rgba(255,140,108,.5);
    background: linear-gradient(180deg, rgba(217,93,57,.22), rgba(217,93,57,.08));
}

.landing-sidebar-divider {
    height: 1px;
    margin: 1rem 0;
    background: rgba(255,255,255,.08);
}

.landing-coverage-list {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.landing-coverage-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    line-height: 1.55;
    color: rgba(255,255,255,.82);
}

.landing-dot {
    flex-shrink: 0;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7bf63, #ff8f63);
    box-shadow: 0 0 0 4px rgba(247,191,99,.16);
}

.landing-stage-main {
    display: grid;
    gap: 1rem;
}

.landing-stage-metrics {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-mini-stat {
    padding: .95rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.76);
}

.landing-mini-stat p {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(17,24,39,.48);
}

.landing-mini-stat strong {
    display: block;
    margin-top: .45rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--landing-ink);
}

.landing-shot {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.74);
    box-shadow: var(--landing-shadow-soft);
}

.landing-shot-large {
    background: linear-gradient(180deg, rgba(255,249,245,.94), rgba(255,255,255,.9));
}

.landing-shot-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.landing-shot-large .landing-shot-image {
    aspect-ratio: 1.32 / 1;
    object-position: top;
}

.landing-shot-image-widget {
    aspect-ratio: 1.16 / 1;
    object-position: top;
}

.landing-shot-image-mobile {
    aspect-ratio: .82 / 1;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: .8rem 1rem 0;
}

.landing-shot-caption {
    padding: 1rem 1rem 1.1rem;
}

.landing-shot-caption p {
    font-size: .9rem;
    font-weight: 800;
    color: var(--landing-ink);
}

.landing-shot-caption span {
    display: block;
    margin-top: .3rem;
    font-size: .82rem;
    line-height: 1.7;
    color: var(--landing-muted);
}

.landing-shot-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-band {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(15,23,42,.06);
    border-bottom: 1px solid rgba(15,23,42,.06);
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(12px);
}

.landing-band-copy {
    max-width: 48rem;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--landing-ink);
}

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

.landing-section-tight {
    padding-top: 4.4rem;
}

.landing-section-last {
    padding: 4.4rem 0 5.5rem;
}

.landing-story-grid,
.landing-integration-grid,
.landing-security-grid {
    display: grid;
    gap: 1.2rem;
}

.landing-story-spotlight {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,244,238,.96), rgba(255,255,255,.9));
}

.landing-section-title,
.landing-cta-title {
    margin-top: .9rem;
    max-width: 18ch;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.04em;
    color: var(--landing-ink);
}

.landing-story-checks {
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
}

.landing-story-checks div {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
}

.landing-story-checks strong,
.landing-story-card h3,
.landing-feature-panel h3,
.landing-step-card h3,
.landing-flow-note h3,
.landing-security-list strong,
.landing-fit-item strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--landing-ink);
    letter-spacing: -.02em;
}

.landing-story-checks span,
.landing-story-card p,
.landing-feature-panel p,
.landing-step-card p,
.landing-flow-note p:last-child,
.landing-flow-stack-card span,
.landing-security-list span,
.landing-fit-item span {
    display: block;
    margin-top: .35rem;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--landing-muted);
}

.landing-story-stack {
    display: grid;
    gap: 1rem;
}

.landing-story-stack-compact {
    margin-top: 1.8rem;
}

.landing-story-card {
    padding: 1.35rem;
}

.landing-feature-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.landing-feature-panel {
    padding: 1.45rem;
}

.landing-feature-panel-large {
    background: linear-gradient(180deg, rgba(255,244,238,.96), rgba(255,255,255,.92));
    border-color: rgba(217,93,57,.16);
}

.landing-feature-panel-large h3 {
    margin-top: .85rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.landing-feature-panel h3 {
    margin-top: .8rem;
}

.landing-feature-panel p {
    margin-top: .55rem;
}

.landing-feature-pills {
    margin-top: 1.2rem;
}

.landing-flow-shell {
    padding: 2rem;
}

.landing-section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-section-header-flow {
    align-items: flex-start;
}

.landing-flow-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.landing-step-list,
.landing-flow-stack,
.landing-code-stack,
.landing-fit-grid,
.landing-security-list {
    display: grid;
    gap: 1rem;
}

.landing-step-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem;
}

.landing-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(217,93,57,.14), rgba(255,241,234,.95));
    color: var(--landing-brand);
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.landing-flow-note {
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,246,241,.95));
    border: 1px solid rgba(217,93,57,.12);
}

.landing-flow-stack-card {
    padding: 1rem 1.1rem;
}

.landing-flow-stack-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--landing-ink);
}

.landing-code-card {
    padding: 1.3rem;
}

.landing-code-label {
    color: var(--landing-brand);
}

.landing-code-block {
    margin-top: .9rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15,23,42,.08);
    background: #101521;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.landing-security-card,
.landing-fit-card {
    padding: 2rem;
}

.landing-security-list div,
.landing-fit-item {
    padding: 1.1rem 1.15rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(15,23,42,.06);
}

.landing-fit-card {
    background: linear-gradient(180deg, rgba(255,248,245,.96), rgba(255,255,255,.9));
}

.landing-fit-grid {
    margin-top: 1.6rem;
}

.landing-cta-shell {
    padding: 2rem;
    border: 1px solid rgba(255,220,208,.92);
    border-radius: 2rem;
    background: linear-gradient(135deg, #d95d39 0%, #f17347 100%);
    box-shadow: 0 34px 90px rgba(217,93,57,.26);
    color: #fff;
}

.landing-cta-title,
.landing-cta-copy {
    color: #fff;
}

.landing-cta-eyebrow {
    color: rgba(255,255,255,.75);
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.8rem;
}

.landing-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: var(--landing-brand-strong);
    padding: .95rem 1.35rem;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

.landing-cta-button:hover,
.landing-cta-button:focus-visible {
    transform: translateY(-2px);
    background: #fff7f2;
}

.landing-cta-button-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
}

.landing-cta-strip {
    margin-top: 1.7rem;
}

.landing-cta-strip span {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
}

@keyframes landingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (min-width: 768px) {
    .landing-proof-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-story-grid,
    .landing-integration-grid,
    .landing-security-grid,
    .landing-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-section-header {
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .landing-section-header .landing-section-copy,
    .landing-section-header-flow .landing-section-copy {
        margin-top: 0;
        max-width: 32rem;
    }
}

@media (min-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    }

    .landing-feature-grid {
        grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr));
    }

    .landing-feature-panel-large {
        grid-row: span 2;
    }
}

@media (max-width: 1023px) {
    .landing-nav {
        padding: 1rem;
    }

    .landing-nav-links {
        justify-content: flex-start;
    }

    .landing-stage-shell {
        grid-template-columns: 1fr;
    }

    .landing-stage-sidebar {
        order: 2;
    }

    .landing-stage-main {
        order: 1;
    }
}

@media (max-width: 767px) {
    .landing-shell::before {
        background-size: 32px 32px;
    }

    .landing-nav {
        border-radius: 1.5rem;
    }

    .landing-hero-grid {
        gap: 2.2rem;
        padding-top: 3.6rem;
    }

    .landing-headline {
        max-width: none;
    }

    .landing-proof-card,
    .landing-story-card,
    .landing-feature-panel,
    .landing-step-card,
    .landing-security-card,
    .landing-fit-card,
    .landing-story-spotlight,
    .landing-flow-shell,
    .landing-code-card,
    .landing-cta-shell {
        border-radius: 1.35rem;
    }

    .landing-stage {
        padding: .85rem;
        border-radius: 1.5rem;
    }

    .landing-stage-topbar,
    .landing-stage-sidebar,
    .landing-flow-shell,
    .landing-security-card,
    .landing-fit-card,
    .landing-cta-shell {
        padding: 1.2rem;
    }

    .landing-stage-metrics,
    .landing-shot-grid {
        grid-template-columns: 1fr;
    }

    .landing-step-card {
        grid-template-columns: 1fr;
    }

    .landing-step-number {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 1rem;
    }

    .landing-section {
        padding-top: 4rem;
    }

    .landing-section-last {
        padding-bottom: 4rem;
    }
}
