:root {
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-soft: 0 24px 60px rgba(6, 11, 28, 0.28);
    --shadow-glow: 0 0 0 1px rgba(120, 180, 255, 0.22), 0 18px 40px rgba(26, 86, 255, 0.18);
    --surface-quiet: rgba(255, 255, 255, 0.05);
    --surface-quiet-strong: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.04);
    --dropdown-bg: #101a35;
    --dropdown-hover: #18274b;
    --admin-surface: rgba(9, 14, 28, 0.96);
    --admin-shadow: 0 8px 18px rgba(5, 10, 25, 0.12);
}

html[data-theme='dark'] {
    color-scheme: dark;
    --bg: #050816;
    --bg-elevated: rgba(11, 19, 40, 0.72);
    --bg-panel: rgba(8, 14, 30, 0.82);
    --bg-soft: rgba(22, 33, 62, 0.54);
    --text: #f4f7ff;
    --text-muted: #a9b6d4;
    --text-soft: #7c8cae;
    --line: rgba(140, 175, 255, 0.16);
    --line-strong: rgba(123, 164, 255, 0.3);
    --primary: #8B5CF6;
    --secondary: #6366F1;
    --accent: #8B5CF6;
    --danger: #ff6b94;
    --surface-glow: radial-gradient(circle at top left, rgba(139, 92, 246, 0.24), transparent 48%), radial-gradient(circle at bottom right, rgba(123, 105, 255, 0.2), transparent 42%);
}

html[data-theme='light'] {
    color-scheme: light;
    --bg: #f3f7ff;
    --bg-elevated: rgba(255, 255, 255, 0.78);
    --bg-panel: rgba(255, 255, 255, 0.94);
    --bg-soft: rgba(227, 236, 255, 0.7);
    --text: #0e1730;
    --text-muted: #50627f;
    --text-soft: #6d7e9c;
    --line: rgba(73, 111, 191, 0.12);
    --line-strong: rgba(60, 110, 220, 0.22);
    --primary: #7C3AED;
    --secondary: #6366F1;
    --accent: #7C3AED;
    --danger: #d73b68;
    --surface-glow: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 48%), radial-gradient(circle at bottom right, rgba(116, 106, 255, 0.16), transparent 42%);
    --shadow-soft: 0 24px 60px rgba(72, 95, 148, 0.16);
    --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.18), 0 16px 32px rgba(62, 103, 194, 0.12);
    --surface-quiet: rgba(255, 255, 255, 0.82);
    --surface-quiet-strong: rgba(231, 239, 255, 0.96);
    --input-bg: rgba(255, 255, 255, 0.92);
    --dropdown-bg: #f7faff;
    --dropdown-hover: #e7efff;
    --admin-surface: rgba(255, 255, 255, 0.94);
    --admin-shadow: 0 16px 38px rgba(95, 116, 166, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background-color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    isolation: isolate;
    transition: background-color 0.45s ease, color 0.35s ease;
}

html[data-theme='dark'],
html.dark,
body.dark {
    background-color: #000000;
}

html[data-theme='light'],
html.light,
body.light {
    background-color: #F3F4F6;
}

html[data-theme='dark'] body,
html.dark body,
body.dark {
    background-color: #000000;
}

html[data-theme='light'] body,
html.light body,
body.light {
    background-color: #F3F4F6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.06), transparent 50%);
    transform-origin: center;
    will-change: transform;
    animation: moveBackground 25s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: -18vmax;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    background:
        radial-gradient(ellipse at 28% 42%, rgba(139, 92, 246, 0.045), transparent 32%),
        radial-gradient(ellipse at 72% 62%, rgba(99, 102, 241, 0.035), transparent 34%),
        linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.012) 48%, rgba(139, 92, 246, 0.02) 51%, transparent 62%);
    transform: translate3d(-2%, -1%, 0) scale(1);
    transform-origin: center;
    will-change: transform;
    animation: ambientDrift 42s ease-in-out infinite alternate;
}

html[data-theme='dark'] body::before,
html.dark body::before,
body.dark::before {
    background: none;
    animation: none;
}

html[data-theme='dark'] body::after,
html.dark body::after,
body.dark::after {
    inset: -8vmax;
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(196, 181, 253, 0.62) 0 1.2px, transparent 2px),
        radial-gradient(circle, rgba(99, 102, 241, 0.42) 0 1.15px, transparent 2px);
    background-size: 68px 68px, 104px 104px;
    background-position: 0 0, 28px 36px;
    animation: dotDrift 46s linear infinite;
}

html[data-theme='light'] body::before,
html.light body::before,
body.light::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.05), transparent 40%);
}

html[data-theme='light'] body::after,
html.light body::after,
body.light::after {
    inset: -8vmax;
    opacity: 0.3;
    background-image:
        radial-gradient(circle, rgba(124, 58, 237, 0.46) 0 1.2px, transparent 2px),
        radial-gradient(circle, rgba(99, 102, 241, 0.32) 0 1.15px, transparent 2px);
    background-size: 68px 68px, 104px 104px;
    background-position: 0 0, 28px 36px;
    animation: dotDrift 46s linear infinite;
}

.container,
.wrapper,
.main {
    background: transparent;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 20px) scale(1.05);
    }

    100% {
        transform: translate(20px, -30px) scale(1.02);
    }
}

@keyframes ambientDrift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    50% {
        transform: translate3d(2%, 1.5%, 0) scale(1.03);
    }

    100% {
        transform: translate3d(1%, -2%, 0) scale(1.01);
    }
}

@keyframes dotDrift {
    from {
        transform: translate3d(-4%, -2%, 0);
    }

    to {
        transform: translate3d(4%, 2%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--text);
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.8rem) calc(50% - 0.15rem);
    background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
    background-repeat: no-repeat;
    padding-right: 2.7rem;
    position: relative;
    z-index: 6;
}

select:hover {
    border-color: var(--line-strong);
    background-color: var(--surface-quiet-strong);
}

select option,
select optgroup {
    background: var(--dropdown-bg);
    color: var(--text);
}

select option:hover,
select option:checked {
    background: var(--dropdown-hover);
    color: var(--text);
}

select::-ms-expand {
    display: none;
}

textarea {
    resize: vertical;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.background-shell {
    display: none;
}

.particle-canvas {
    display: none;
}

.gradient-orb {
    display: none;
    animation: none;
}

.orb-a {
    background: transparent;
}

.orb-b {
    background: transparent;
}

.orb-c {
    background: transparent;
}

.grid-overlay {
    display: none;
    background-image: none;
}

.site-header,
.site-main,
.site-footer,
.app-shell,
.flash-stack {
    position: relative;
    z-index: 1;
}

.site-header {
    padding: 1.4rem clamp(1rem, 2vw, 2rem) 0;
}

.site-main,
.site-footer,
.app-main {
    padding-inline: clamp(1rem, 2vw, 2rem);
}

.site-main {
    padding-bottom: 2rem;
}

.app-shell {
    max-width: calc(1400px + 3rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 0.85rem clamp(1rem, 2vw, 1.5rem) 0;
    min-width: 0;
}

.app-main {
    min-width: 0;
    padding-bottom: 2rem;
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4.5rem) 0;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-wrap {
    display: grid;
    gap: 0.75rem;
}

.form-warning {
    color: #ffb36a;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
    color: var(--text-muted);
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-quiet-strong);
    box-shadow: var(--shadow-glow);
}

.hero-grid,
.split-section,
.auth-grid,
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-copy h1,
.section-copy h2,
.auth-copy h1,
.page-intro h1,
.cta-card h2 {
    margin: 0.85rem 0 1rem;
    font-family: var(--font-display);
    letter-spacing: 0;
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: 4.2rem;
    max-width: 12ch;
}

.section-copy h2,
.auth-copy h1,
.page-intro h1,
.cta-card h2 {
    font-size: 2.75rem;
}

.hero-lead,
.section-heading p,
.section-copy p,
.auth-copy p,
.page-intro p,
.cta-card p,
.auth-meta,
.microcopy {
    color: var(--text-muted);
}

.eyebrow-stack,
.section-heading,
.section-copy,
.auth-copy,
.auth-shell,
.form-shell,
.contact-highlights,
.auth-benefits,
.history-card,
.profile-card,
.insight-card {
    display: grid;
    gap: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-strip,
.feature-grid,
.metric-grid,
.signal-stack {
    display: grid;
    gap: 1rem;
}

.stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.stat-card,
.metric-card,
.signal-card {
    padding: 1.1rem 1.15rem;
}

.stat-card strong,
.metric-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.stat-card span,
.metric-card span {
    display: block;
    color: var(--text-soft);
}

.hero-visual,
.workspace-preview,
.timeline-card,
.cta-card,
.page-intro,
.tab-shell,
.contact-highlights,
.command-center {
    padding: clamp(1.2rem, 2.4vw, 1.6rem);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header strong {
    font-size: 1rem;
}

.panel-header p,
.panel-status {
    margin: 0.2rem 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.signal-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-card {
    background: var(--surface-quiet);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.signal-card span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
}

.signal-card strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.preview-chat,
.preview-thread,
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.preview-chat {
    margin-top: 1.25rem;
}

.chat-bubble {
    max-width: min(88%, 42rem);
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px rgba(5, 9, 24, 0.16);
}

.bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(123, 105, 255, 0.18));
}

.bubble-assistant {
    align-self: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--surface-quiet);
}

.bubble-admin {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(123, 105, 255, 0.18));
}

.bubble-customer {
    align-self: flex-start;
    background: var(--surface-quiet);
}

.bubble-error {
    background: rgba(255, 107, 148, 0.12);
    border-color: rgba(255, 107, 148, 0.3);
}

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

.feature-card {
    padding: 1.3rem;
}

.feature-card h3,
.timeline-card h3,
.auth-shell h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.feature-card p,
.timeline-card p,
.check-list li,
.history-item p,
.form-shell p,
.insight-card p {
    color: var(--text-muted);
}

.timeline-card {
    display: grid;
    gap: 1rem;
}

.timeline-card article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.timeline-step {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary);
    font-family: var(--font-display);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.demo-grid {
    align-items: stretch;
}

.demo-grid > * {
    flex: 1 1 0;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.workspace-header p {
    margin: 0.25rem 0 0;
    color: var(--text-soft);
}

.check-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.65rem;
}

.cta-section {
    padding-bottom: 4.5rem;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.auth-page .site-main {
    padding-top: 1rem;
}

.auth-section {
    padding-top: clamp(1.5rem, 4vw, 3rem);
}

.auth-shell,
.form-shell,
.contact-highlights {
    padding: clamp(1.3rem, 2.5vw, 1.7rem);
}

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

.auth-social-stack {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.auth-link-callout {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, rgba(20, 25, 39, 0.86), rgba(12, 16, 28, 0.94));
}

.auth-link-callout strong {
    font-size: 0.95rem;
    color: var(--text);
}

.auth-link-callout span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.google-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 3.4rem;
    background: linear-gradient(180deg, rgba(14, 18, 28, 0.94), rgba(6, 10, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.google-auth-button:hover,
.google-auth-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(18, 24, 37, 0.98), rgba(9, 13, 22, 1));
    color: #ffffff;
}

.google-auth-button.is-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.google-auth-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0.1rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.google-auth-button__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.google-auth-button__label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field span {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.field-grid {
    flex-wrap: wrap;
}

.field-grid > * {
    flex: 1 1 220px;
}

.auth-meta {
    margin: 0;
}

.auth-meta a,
.contact-highlights a {
    color: var(--primary);
}

.history-list,
.side-stack,
.contact-stack {
    display: grid;
    gap: 1rem;
}

.ticket-console-grid {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ticket-list-pane,
.ticket-list {
    display: grid;
    gap: 1rem;
}

.ticket-list-header p {
    margin: 0.35rem 0 0;
    color: var(--text-soft);
}

.ticket-summary-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    color: var(--text);
    text-decoration: none;
}

.ticket-summary-card.is-active {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), transparent), var(--bg-elevated);
}

.ticket-summary-head,
.ticket-summary-meta,
.ticket-panel-head,
.ticket-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.ticket-summary-head {
    align-items: flex-start;
}

.ticket-summary-card p {
    margin: 0;
    color: var(--text-muted);
}

.ticket-summary-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ticket-summary-meta {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.ticket-conversation-panel {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.ticket-panel-head {
    align-items: flex-start;
}

.ticket-panel-head h3 {
    margin: 0.25rem 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.ticket-panel-flags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.ticket-panel-head p,
.ticket-toolbar .microcopy {
    margin: 0;
    color: var(--text-soft);
}

.ticket-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-status-form {
    flex: 1 1 24rem;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.9rem;
}

.ticket-delete-form {
    justify-content: flex-end;
}

.ticket-security-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
}

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

.ticket-security-grid strong,
.ticket-security-grid span {
    display: block;
}

.ticket-security-grid strong {
    margin-bottom: 0.25rem;
}

.ticket-security-grid span {
    color: var(--text-soft);
    word-break: break-word;
}

.ticket-thread-shell {
    min-height: 31rem;
    max-height: 36rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
    overflow: hidden;
}

.ticket-thread {
    height: 100%;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.ticket-message-bubble {
    max-width: min(88%, 38rem);
}

.ticket-message-bubble.has-avatar {
    max-width: min(92%, 40rem);
}

.ticket-message-bubble.has-avatar .chat-bubble-shell {
    padding: 1rem 1.05rem;
    border-radius: 22px;
}

.ticket-message-meta {
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.bubble-admin .ticket-message-meta {
    color: rgba(235, 242, 255, 0.86);
}

.ticket-reply-form {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.ticket-reply-form textarea {
    min-height: 7.25rem;
}

.ticket-reply-form .composer-actions {
    align-items: center;
}

.app-page {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.page-intro,
.metric-grid {
    width: 100%;
}

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bot-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bot-chip {
    flex: 1 1 210px;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
}

.bot-chip strong {
    display: block;
    margin-bottom: 0.25rem;
}

.bot-chip span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.bot-chip.is-active {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-glow);
}

.workspace-grid {
    grid-template-columns: minmax(0, 1.3fr) 340px;
}

.chat-panel {
    padding: 1.35rem;
    min-height: 720px;
    min-width: 0;
}

.chat-interface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), transparent), rgba(10, 14, 32, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-header {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.chat-thread {
    min-height: 31rem;
    max-height: 36rem;
    overflow: auto;
    padding: 1rem;
    padding-right: 1.05rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(15, 20, 42, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-form {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.chat-form textarea {
    min-height: 7.75rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(10, 15, 35, 0.9);
    color: var(--text);
    resize: vertical;
}

.chat-form textarea::placeholder {
    color: var(--text-soft);
}

.chat-form .composer-actions {
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.chat-form .composer-actions > * {
    flex-shrink: 0;
}

.chat-form .composer-actions .inline-field {
    margin-right: auto;
}

.chat-form textarea:disabled,
.chat-form select:disabled,
.chat-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.chat-form.is-loading .button-primary {
    box-shadow: 0 10px 24px rgba(60, 111, 255, 0.2);
}

.chat-form.is-loading .button-primary::after {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    margin-left: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    animation: pulseDot 1.1s infinite ease-in-out;
}

.inline-field {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-muted);
}

.inline-field select {
    width: auto;
    min-width: 170px;
}

.profile-card,
.history-card,
.insight-card {
    padding: 1.2rem;
}

.profile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.profile-meta:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-meta span {
    color: var(--text-soft);
}

.history-item {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.history-item strong {
    display: block;
    margin-bottom: 0.15rem;
}

.history-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.history-item span {
    color: var(--text-soft);
    white-space: nowrap;
}

.history-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.history-item.is-hidden {
    display: none;
}

.history-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.history-rename {
    background: none;
    border: 1px solid transparent;
    color: var(--text-soft);
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 10px;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.history-rename:hover {
    color: var(--text);
    border-color: var(--line);
    transform: translateY(-1px);
}

.history-delete {
    background: none;
    border: 1px solid transparent;
    color: var(--text-soft);
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 10px;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.history-delete:hover {
    color: #ff9b9b;
    border-color: var(--line);
    transform: translateY(-1px);
}

.history-rename-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    color: var(--text);
}

.empty-state {
    display: grid;
    gap: 0.7rem;
    place-items: start;
    padding: 1.35rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--line-strong);
    background: var(--surface-quiet);
}

.empty-state.compact {
    padding: 1rem;
}

.flash-stack {
    max-width: 1240px;
    margin: 0 auto 1rem;
    display: grid;
    gap: 0.75rem;
}

.flash {
    padding: 0.95rem 1rem;
}

.flash-success {
    border-color: rgba(99, 102, 241, 0.24);
}

.flash-error {
    border-color: rgba(255, 107, 148, 0.32);
}

.tab-shell {
    display: grid;
    gap: 1.25rem;
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tab-button {
    padding: 0.82rem 1.05rem;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid var(--line);
}

.tab-button.is-active {
    color: var(--text);
    background: var(--surface-quiet-strong);
    box-shadow: var(--shadow-glow);
}

.tab-panel {
    display: none;
    gap: 1.25rem;
}

.tab-panel.is-active {
    display: grid;
}

.admin-shell {
    contain: layout paint;
}

.admin-grid {
    flex-wrap: wrap;
}

.admin-grid > * {
    flex: 1 1 340px;
}

.chatbot-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-quiet);
}

.chatbot-admin-head h2 {
    margin: 0.25rem 0;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.chatbot-admin-head p {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted);
}

.chatbot-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.chatbot-entry-list {
    display: grid;
    gap: 0.75rem;
    max-height: 680px;
    overflow: auto;
    padding-right: 0.15rem;
}

.chatbot-checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.chatbot-checkbox-card span {
    overflow-wrap: anywhere;
}

.chatbot-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.chatbot-search-form {
    justify-content: flex-start;
    margin-bottom: 0.8rem;
}

.status-warning {
    border-color: rgba(255, 196, 87, 0.32);
    color: #ffdca0;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.overview-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.overview-kpi-card,
.overview-panel,
.overview-note {
    padding: 1.2rem;
}

.overview-kpi-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.overview-kpi-value {
    display: block;
    margin: 0.5rem 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.overview-kpi-note {
    margin: 0;
    color: var(--text-muted);
}

.activity-strip,
.usage-list {
    display: grid;
    gap: 1rem;
}

.activity-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    min-height: 220px;
}

.activity-day {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
}

.activity-bar-shell {
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
}

.activity-bar {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.9));
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12);
}

.activity-day strong {
    font-size: 0.9rem;
}

.activity-day small {
    color: var(--text-soft);
}

.usage-item {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
}

.usage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.usage-head span {
    color: var(--text-muted);
    white-space: nowrap;
}

.usage-track {
    width: 100%;
    height: 0.7rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-quiet-strong);
}

.usage-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.92), rgba(123, 105, 255, 0.9));
}

.table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: var(--surface-quiet);
}

.data-table th,
.data-table td {
    padding: 0.95rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table th {
    color: var(--text-soft);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.inline-form select {
    min-width: 110px;
}

.inline-search {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.inline-search input {
    min-width: 220px;
}

.bot-summary-stack {
    display: grid;
    gap: 1rem;
}

.bot-summary-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-quiet);
}

.bot-summary-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.bot-summary-card p {
    margin: 0;
    color: var(--text-soft);
}

.bot-summary-card.is-active {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-glow);
}

.bot-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bot-editor-panel {
    min-height: 100%;
}

.typing-bubble {
    min-width: 90px;
}

.typing-dots {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.typing-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--primary);
    animation: pulseDot 1.1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 15;
    display: grid;
    gap: 0.75rem;
}

/* Profile & Pricing additions */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.profile-panel .profile-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.avatar-shell {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(96,176,255,0.24), rgba(115,66,255,0.24));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.avatar-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-weight: 700;
    color: #cfe4ff;
}

.usage-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pricing-card .price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #8B5CF6;
}

.pricing-card.highlight {
    box-shadow: 0 10px 40px rgba(91, 119, 255, 0.25);
    border: 1px solid rgba(115, 145, 255, 0.35);
}

.feature-list {
    list-style: none;
    margin: 12px 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(14px, -24px, 0) scale(1.04);
    }
}

@keyframes pulseDot {
    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.55;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid,
    .signal-stack,
    .overview-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-grid,
    .hero-grid,
    .split-section,
    .auth-grid,
    .overview-grid,
    .ticket-console-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .app-main {
        padding-top: 0.35rem;
    }

    .side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .side-stack > .insight-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .nav-actions,
    .composer-actions,
    .table-actions,
    .ticket-panel-head,
    .ticket-toolbar {
        width: 100%;
    }

    .metric-grid,
    .overview-kpi-grid,
    .signal-stack,
    .activity-strip,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .side-stack {
        grid-template-columns: 1fr;
    }

    .side-stack > .insight-card {
        grid-column: auto;
    }

    .stat-strip,
    .metric-grid,
    .signal-stack,
    .feature-grid,
    .overview-kpi-grid,
    .activity-strip {
        grid-template-columns: 1fr;
    }

    .demo-grid,
    .admin-grid {
        flex-direction: column;
    }

    .inline-field,
    .inline-search,
    .inline-form,
    .ticket-status-form {
        width: 100%;
    }

    .inline-field select,
    .inline-search input,
    .inline-form select,
    .ticket-status-form select {
        width: 100%;
    }

    .ticket-security-grid {
        grid-template-columns: 1fr;
    }

    .brand-badge {
        min-width: 4.8rem;
        height: 3.2rem;
    }

    .brand-badge-word {
        font-size: 1.58rem;
    }

    .sidebar .brand-badge,
    .footer-brand-block .brand-badge {
        min-width: 5.2rem;
        height: 3.6rem;
    }

    .sidebar .brand-badge-word,
    .footer-brand-block .brand-badge-word {
        font-size: 1.72rem;
    }

    .ticket-summary-head,
    .ticket-summary-meta,
    .ticket-message-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-form .composer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-form .composer-actions > * {
        width: 100%;
        justify-content: center;
    }

    .chat-form .composer-actions .inline-field {
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .app-shell,
    .app-main,
    .site-main,
    .site-footer,
    .site-header {
        padding-inline: 0.9rem;
    }

    .app-shell {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .brand-badge {
        min-width: 4.35rem;
        height: 2.9rem;
    }

    .brand-badge-word {
        font-size: 1.44rem;
    }

    .sidebar .brand-badge,
    .footer-brand-block .brand-badge {
        min-width: 4.75rem;
        height: 3.2rem;
    }

    .sidebar .brand-badge-word,
    .footer-brand-block .brand-badge-word {
        font-size: 1.56rem;
    }

    .section-copy h2,
    .auth-copy h1,
    .page-intro h1,
    .cta-card h2 {
        font-size: 1.75rem;
    }

    .chat-bubble {
        max-width: 100%;
    }
}

/* ==========================================================================
   GLOBAL LOADER
   ========================================================================== */

.global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.global-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-content h2 {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.global-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 164, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ==========================================================================
   Obsidian Purple UI System
   Frontend-only visual layer. Keeps existing DOM, JS hooks, IDs, classes, and
   form behavior intact while aligning all screens to the production reference.
   ========================================================================== */

html[data-theme='dark'] {
    color-scheme: dark;
    --bg-primary: #000000;
    --bg-secondary: #0B1220;
    --surface: #111827;
    --accent-primary: #8B5CF6;
    --accent-secondary: #6366F1;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border: rgba(255, 255, 255, 0.06);
    --bg: var(--bg-primary);
    --bg-elevated: rgba(17, 24, 39, 0.72);
    --bg-panel: rgba(17, 24, 39, 0.88);
    --bg-soft: rgba(11, 18, 32, 0.78);
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-soft: #6B7280;
    --line: var(--border);
    --line-strong: rgba(139, 92, 246, 0.36);
    --primary: var(--accent-primary);
    --secondary: var(--accent-secondary);
    --accent: var(--accent-primary);
    --surface-quiet: rgba(255, 255, 255, 0.035);
    --surface-quiet-strong: rgba(139, 92, 246, 0.12);
    --input-bg: rgba(5, 7, 15, 0.62);
    --dropdown-bg: #0B1220;
    --dropdown-hover: rgba(139, 92, 246, 0.16);
    --admin-surface: rgba(17, 24, 39, 0.92);
    --admin-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.28);
    --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 16px 36px rgba(139, 92, 246, 0.16);
    --surface-glow:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(99, 102, 241, 0.1), transparent 30%);
    --primary-gradient: linear-gradient(135deg, #8B5CF6, #6366F1);
    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-sm: 12px;
}

:root.light,
html[data-theme='light'] {
    color-scheme: light;
    --bg-primary: #F3F4F6;
    --bg-secondary: #E5E7EB;
    --surface: #FFFFFF;
    --accent-primary: #7C3AED;
    --accent-secondary: #6366F1;
    --accent-glow: rgba(124, 58, 237, 0.18);
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border: rgba(0, 0, 0, 0.08);
    --bg: var(--bg-primary);
    --bg-elevated: rgba(255, 255, 255, 0.84);
    --bg-panel: rgba(255, 255, 255, 0.96);
    --bg-soft: rgba(229, 231, 235, 0.78);
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-soft: #6B7280;
    --line: var(--border);
    --line-strong: rgba(124, 58, 237, 0.24);
    --primary: var(--accent-primary);
    --secondary: var(--accent-secondary);
    --accent: var(--accent-primary);
    --surface-quiet: rgba(255, 255, 255, 0.72);
    --surface-quiet-strong: rgba(124, 58, 237, 0.08);
    --input-bg: rgba(255, 255, 255, 0.86);
    --dropdown-bg: #FFFFFF;
    --dropdown-hover: #F3F4F6;
    --admin-surface: rgba(255, 255, 255, 0.94);
    --admin-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 18px 46px rgba(17, 24, 39, 0.08);
    --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.12), 0 16px 32px rgba(17, 24, 39, 0.08);
    --surface-glow:
        radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.08), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(99, 102, 241, 0.07), transparent 30%);
    --primary-gradient: linear-gradient(135deg, #7C3AED, #6366F1);
    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-sm: 12px;
}

body {
    color: var(--text-primary);
}

html[data-theme='dark'] body,
html.dark body,
body.dark {
    background-color: #000000;
}

html[data-theme='light'] body,
html.light body,
body.light {
    background-color: #F3F4F6;
}

.gradient-orb {
    display: none;
    animation: none;
}

.orb-a,
.orb-b,
.orb-c {
    background: transparent;
}

.grid-overlay {
    display: none;
    background-image: none;
}

.particle-canvas {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-copy h1,
.section-copy h2,
.auth-copy h1,
.page-intro h1,
.cta-card h2,
[data-page='pricing'] .pricing-v2-head h1,
[data-page='pricing'] .pricing-v2-price-main {
    letter-spacing: 0;
}

.hero-copy h1 {
    font-family: var(--font-body);
    font-size: 4.2rem;
    line-height: 1.06;
}

.section-copy h2,
.section-copy h1,
.auth-copy h1,
.page-intro h1,
.cta-card h2 {
    font-family: var(--font-body);
    font-size: 2.75rem;
    line-height: 1.12;
}

.hero-lead,
.section-heading p,
.section-copy p,
.auth-copy p,
.page-intro p,
.cta-card p,
.auth-meta,
.microcopy {
    color: var(--text-secondary);
}

input,
textarea,
select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

select:hover {
    border-color: var(--line-strong);
    background-color: var(--input-bg);
}

.hero-grid,
.split-section,
.auth-grid,
.workspace-grid {
    gap: 1.5rem;
}

.section {
    padding: 3.25rem 0;
}

.hero-section {
    padding-top: 2.5rem;
}

.stat-card,
.metric-card,
.signal-card,
.feature-card,
.timeline-card,
.workspace-preview,
.contact-highlights,
.form-shell,
.auth-shell,
.page-intro,
.cta-card,
.history-card,
.profile-card,
.insight-card,
.ticket-conversation-panel,
.ticket-summary-card,
.overview-kpi-card,
.overview-panel,
.overview-note,
.bot-summary-card,
.training-sample-card,
.activity-list li,
.empty-state,
.ticket-security-card,
.chat-interface,
.chat-thread,
.ticket-thread-shell,
.table-wrap {
    border-radius: 16px;
    border-color: var(--border);
}

.feature-card,
.metric-card,
.stat-card,
.signal-card,
.history-item,
.ticket-summary-card,
.overview-kpi-card,
.overview-panel,
.training-sample-card,
.usage-item,
.bot-summary-card,
.dashboard-usage-stat {
    background: var(--surface-quiet);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

html[data-theme='light'] .feature-card,
html[data-theme='light'] .metric-card,
html[data-theme='light'] .stat-card,
html[data-theme='light'] .signal-card,
html[data-theme='light'] .history-item,
html[data-theme='light'] .ticket-summary-card,
html[data-theme='light'] .overview-kpi-card,
html[data-theme='light'] .overview-panel,
html[data-theme='light'] .training-sample-card,
html[data-theme='light'] .usage-item,
html[data-theme='light'] .bot-summary-card,
html[data-theme='light'] .dashboard-usage-stat {
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.chat-bubble {
    border-radius: 16px;
    animation: asstMessageIn 0.3s ease both;
}

.bubble-user,
.bubble-admin {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(99, 102, 241, 0.9));
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.2);
}

.bubble-assistant,
.bubble-customer {
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(99, 102, 241, 0.06)),
        rgba(17, 24, 39, 0.62);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme='light'] .bubble-assistant,
html[data-theme='light'] .bubble-customer {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(99, 102, 241, 0.05)),
        rgba(255, 255, 255, 0.9);
}

.bubble-error {
    background: rgba(255, 107, 148, 0.12);
    border-color: rgba(255, 107, 148, 0.28);
    color: var(--text-primary);
}

.chat-interface {
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 38%),
        rgba(5, 7, 15, 0.58);
}

html[data-theme='light'] .chat-interface {
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 38%),
        rgba(255, 255, 255, 0.72);
}

.chat-thread {
    background: rgba(5, 7, 15, 0.54);
}

html[data-theme='light'] .chat-thread {
    background: rgba(243, 244, 246, 0.68);
}

.chat-form textarea {
    border-radius: 14px;
    background: var(--input-bg);
}

.typing-dots span {
    background: var(--accent-primary);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    animation: asstTextIn 0.42s ease forwards;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.site-main :is(h1, h2, h3, p, .eyebrow, .status-pill, .button, .field, li),
.app-main :is(h1, h2, h3, p, .eyebrow, .status-pill, .button, .field, li, .chat-bubble, .profile-meta) {
    animation: asstTextIn 0.42s ease both;
}

.site-main :is(.reveal:nth-child(2), .feature-card:nth-child(2), li:nth-child(2)),
.app-main :is(.reveal:nth-child(2), .metric-card:nth-child(2), li:nth-child(2)) {
    animation-delay: 0.04s;
}

.site-main :is(.reveal:nth-child(3), .feature-card:nth-child(3), li:nth-child(3)),
.app-main :is(.reveal:nth-child(3), .metric-card:nth-child(3), li:nth-child(3)) {
    animation-delay: 0.08s;
}

.site-main :is(.reveal:nth-child(4), .feature-card:nth-child(4), li:nth-child(4)),
.app-main :is(.reveal:nth-child(4), .metric-card:nth-child(4), li:nth-child(4)) {
    animation-delay: 0.12s;
}

.status-pill,
.info-pill,
.filter-pill,
.pricing-v2-price-meta,
.agent-status-pill,
.agent-tier-pill,
.agent-limit-pill {
    border-color: var(--line);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

.filter-pill:hover,
.filter-pill.is-active,
.ticket-summary-card.is-active,
.bot-chip.is-active,
.bot-summary-card.is-active,
.tab-button.is-active {
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.14);
}

.timeline-step {
    border-radius: 14px;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.activity-bar,
.usage-fill {
    background: linear-gradient(180deg, #8B5CF6, #6366F1);
}

.data-table {
    background: transparent;
}

.data-table th {
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.data-table td {
    color: var(--text-primary);
}

html[data-theme='light'] .data-table td {
    color: var(--text-primary);
}

.toast {
    border-radius: 14px;
    background: var(--bg-panel);
}

@keyframes asstTextIn {
    from {
        opacity: 0.82;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes asstMessageIn {
    from {
        opacity: 0.82;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .section {
        padding: 2rem 0;
        overflow-x: hidden;
    }

    .site-main,
    .app-main,
    .section,
    .hero-grid,
    .split-section,
    .auth-grid,
    .pricing-v2-shell,
    .pricing-v2-head,
    .auth-copy,
    .auth-shell,
    .form-shell,
    .glass-card {
        max-width: 100%;
        min-width: 0;
    }

    .auth-section,
    .pricing-v2,
    .pricing-v2-grid,
    .pricing-v2-card,
    .auth-benefits {
        width: 100%;
        max-width: 100%;
    }

    .site-main :is(h1, h2, h3, p),
    .app-main :is(h1, h2, h3, p),
    .pricing-v2-head h1,
    .auth-copy h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .section-copy p,
    .auth-copy p,
    .page-intro p,
    .pricing-v2-head p,
    .feature-card p {
        max-width: min(20rem, calc(100vw - 3rem));
        overflow-wrap: anywhere;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .section-copy h2,
    .section-copy h1,
    .auth-copy h1,
    .page-intro h1,
    .cta-card h2 {
        font-size: 1.85rem;
    }

    .section-copy h1 {
        max-width: 20rem;
        font-size: 1.62rem;
        line-height: 1.24;
        overflow-wrap: anywhere;
    }

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

    [data-page='pricing'] .pricing-v2-head h1 {
        max-width: 20rem;
        margin-inline: auto;
        font-size: 1.82rem;
    }

    body[data-page='login'] .auth-copy h1 {
        max-width: 22rem;
        font-size: 1.5rem;
        line-height: 1.18;
    }

    body[data-page='login'] .auth-copy p,
    [data-page='pricing'] .pricing-v2-head p {
        max-width: 19.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .site-main :is(h1, h2, h3, p, .eyebrow, .status-pill, .button, .field, li),
    .app-main :is(h1, h2, h3, p, .eyebrow, .status-pill, .button, .field, li, .chat-bubble, .profile-meta),
    .chat-bubble {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ==========================================================================
   Public Home Hero
   ========================================================================== */

body[data-page='home'] .hero-section {
    min-height: calc(100vh - 7.5rem);
    display: flex;
    align-items: center;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

body[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

body[data-page='home'] .hero-copy {
    max-width: 640px;
}

body[data-page='home'] .hero-copy h1 {
    max-width: 12.4ch;
    margin: 1.45rem 0 1.1rem;
    font-family: var(--font-body);
    font-size: clamp(3.1rem, 6vw, 5.35rem);
    font-weight: 600;
    line-height: 1.12;
    color: #F6F4FF;
    text-wrap: balance;
}

body[data-page='home'] .hero-title-accent {
    color: #8B5CF6;
    text-shadow: 0 0 26px rgba(139, 92, 246, 0.32);
}

body[data-page='home'] .hero-lead {
    max-width: 34rem;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
    color: rgba(229, 231, 235, 0.72);
}

html[data-theme='light'] body[data-page='home'] .hero-copy h1 {
    color: #111827;
}

html[data-theme='light'] body[data-page='home'] .hero-lead {
    color: rgba(75, 85, 99, 0.86);
}

body[data-page='home'] .eyebrow-stack {
    display: inline-flex;
    width: auto;
}

body[data-page='home'] .home-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.08);
    color: rgba(245, 243, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 26px rgba(139, 92, 246, 0.12);
}

body[data-page='home'] .home-hero-pill::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 0.18rem;
    background: linear-gradient(135deg, #A78BFA, #7C3AED 52%, #6366F1);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
    transform: rotate(45deg);
}

body[data-page='home'] .hero-actions {
    margin-top: 1.65rem;
    gap: 1rem;
}

body[data-page='home'] .hero-actions .button {
    min-width: 11.25rem;
    justify-content: center;
}

body[data-page='home'] .hero-actions .button-secondary {
    background: rgba(5, 7, 15, 0.56);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='home'] .stat-strip {
    display: none;
}

body[data-page='home'] .hero-visual {
    padding: 0;
}

.home-orbit-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(300px, 38vw, 480px);
    isolation: isolate;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: visible;
}

.home-orbit-visual::before {
    content: "";
    position: absolute;
    width: min(30rem, 70vw);
    aspect-ratio: 1.18;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 34%, rgba(196, 181, 253, 0.12), transparent 14%),
        radial-gradient(circle at 50% 44%, rgba(168, 85, 247, 0.32), transparent 24%),
        radial-gradient(ellipse at 50% 58%, rgba(109, 40, 217, 0.18), transparent 48%),
        radial-gradient(circle at 50% 78%, rgba(0, 0, 0, 0.96), transparent 68%);
    filter: blur(16px);
    opacity: 0.9;
    z-index: -2;
    animation: homeVisualGlow 9s ease-in-out infinite alternate;
}

.home-orbit-visual::after {
    content: "";
    position: absolute;
    width: min(34rem, 76vw);
    aspect-ratio: 1.04;
    border-radius: 50%;
    background-image:
        radial-gradient(circle, rgba(216, 180, 254, 0.74) 0 1px, transparent 1.9px),
        radial-gradient(circle, rgba(139, 92, 246, 0.36) 0 1px, transparent 1.8px),
        linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.035) 1px, transparent 1px);
    background-size: 32px 32px, 58px 58px, 54px 54px, 54px 54px;
    background-position: 0 0, 14px 20px, center, center;
    opacity: 0.36;
    mask-image: radial-gradient(ellipse at center, #000 0 46%, transparent 75%);
    transform: rotateX(66deg) rotateZ(-7deg) translate3d(0, 0, -1px);
    z-index: -1;
    animation: homeStarOrbit 38s linear infinite;
}

.home-orbit-ring {
    position: absolute;
    width: min(30rem, 70vw);
    aspect-ratio: 1.05;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.44);
    box-shadow:
        0 0 34px rgba(139, 92, 246, 0.22),
        inset 0 0 32px rgba(139, 92, 246, 0.08);
    transform: rotateX(66deg) rotateZ(-6deg);
    animation: homeRingDrift 46s linear infinite;
}

.home-orbit-ring::before,
.home-orbit-ring::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: inherit;
    border: 1px solid rgba(167, 139, 250, 0.12);
}

.home-orbit-ring::after {
    inset: 28%;
    border-color: rgba(139, 92, 246, 0.08);
}

.home-orbit-ring-two {
    width: min(21rem, 54vw);
    border-color: rgba(196, 181, 253, 0.16);
    transform: rotateX(67deg) rotateZ(20deg);
    animation: homeRingDriftTwo 54s linear infinite reverse;
}

.home-orbit-node {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #B794FF;
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.85), 0 0 36px rgba(139, 92, 246, 0.5);
    animation: nodePulse 5.5s ease-in-out infinite;
}

.home-orbit-node::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 1px;
    height: clamp(3.6rem, 8.4vw, 7.1rem);
    background: linear-gradient(180deg, rgba(216, 180, 254, 0.7), rgba(139, 92, 246, 0.18), transparent);
    transform: translateX(-50%);
    opacity: 0.48;
}

.node-one {
    top: 7%;
    right: 43%;
    animation-name: nodePulse, homeNodeFloatOne;
    animation-duration: 5.5s, 13s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

.node-two {
    left: 13%;
    top: 38%;
    animation-name: nodePulse, homeNodeFloatTwo;
    animation-duration: 5.5s, 15s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-delay: -1.4s, -3s;
}

.node-three {
    right: 14%;
    top: 31%;
    animation-name: nodePulse, homeNodeFloatThree;
    animation-duration: 5.5s, 14s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-delay: -2.8s, -5s;
}

.node-four {
    left: 48%;
    bottom: 8%;
    animation-name: nodePulse, homeNodeFloatFour;
    animation-duration: 5.5s, 16s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-delay: -4s, -7s;
}

.home-ai-stack {
    position: relative;
    width: min(17.8rem, 46vw);
    aspect-ratio: 1.08;
    transform: rotateX(61deg) rotateZ(-45deg) translate3d(0, 0, 0);
    transform-style: preserve-3d;
    animation: homeStackFloat 8.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.22));
}

.home-ai-stack::before {
    content: "";
    position: absolute;
    inset: 58% 2% -17%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(168, 85, 247, 0.42), rgba(88, 28, 135, 0.14) 44%, transparent 72%);
    filter: blur(14px);
    transform: translate3d(-1.05rem, 1.15rem, -4.8rem);
    pointer-events: none;
    z-index: -4;
}

.home-stack-layer,
.home-stack-top {
    position: absolute;
    inset: 17%;
    border-radius: 0.95rem;
    border: 1px solid rgba(216, 180, 254, 0.58);
    transform-style: preserve-3d;
    background:
        linear-gradient(145deg, rgba(192, 132, 252, 0.3), rgba(43, 31, 107, 0.9)),
        rgba(24, 23, 64, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -18px 34px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.22),
        0 0 28px rgba(168, 85, 247, 0.4),
        0 28px 60px rgba(0, 0, 0, 0.55);
}

.home-stack-layer::before,
.home-stack-top::after {
    content: "";
    position: absolute;
    left: 0.46rem;
    right: 0.46rem;
    bottom: -0.74rem;
    height: 0.74rem;
    border: 1px solid rgba(196, 181, 253, 0.26);
    border-top: 0;
    border-radius: 0 0 0.86rem 0.86rem;
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.5), rgba(49, 46, 129, 0.78)),
        rgba(20, 18, 54, 0.88);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(88, 28, 135, 0.38);
    transform: skewX(-40deg) translateZ(-0.08rem);
    transform-origin: top left;
    pointer-events: none;
    z-index: -1;
}

.home-stack-layer::after {
    content: "";
    position: absolute;
    top: 0.54rem;
    right: -0.74rem;
    bottom: 0.08rem;
    width: 0.74rem;
    border: 1px solid rgba(196, 181, 253, 0.22);
    border-left: 0;
    border-radius: 0 0.8rem 0.8rem 0;
    background:
        linear-gradient(90deg, rgba(30, 25, 80, 0.92), rgba(139, 92, 246, 0.4)),
        rgba(19, 17, 50, 0.9);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.05),
        8px 10px 24px rgba(88, 28, 135, 0.28);
    transform: skewY(-40deg) translateZ(-0.08rem);
    transform-origin: top left;
    pointer-events: none;
    z-index: -1;
}

.layer-back {
    transform: translate3d(-1.08rem, 1.08rem, -3.35rem);
    opacity: 0.56;
}

.layer-mid {
    transform: translate3d(-0.72rem, 0.72rem, -2.22rem);
    opacity: 0.72;
}

.layer-front {
    transform: translate3d(-0.36rem, 0.36rem, -1.08rem);
    opacity: 0.88;
}

.home-stack-top {
    display: grid;
    place-items: center;
    overflow: visible;
    transform: translate3d(0, 0, 0.45rem);
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.2), transparent 19%),
        linear-gradient(145deg, rgba(59, 50, 132, 0.98), rgba(8, 9, 25, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -18px 34px rgba(139, 92, 246, 0.14),
        0 0 0 1px rgba(216, 180, 254, 0.32),
        0 0 36px rgba(168, 85, 247, 0.58),
        0 0 72px rgba(109, 40, 217, 0.24),
        0 34px 72px rgba(0, 0, 0, 0.58);
}

.home-stack-top::before {
    content: "";
    position: absolute;
    inset: 12% 6% auto;
    height: 34%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    filter: blur(10px);
    transform: rotate(-18deg) translateX(-16%);
    opacity: 0.58;
    animation: homeStackSheen 8s ease-in-out infinite;
    pointer-events: none;
}

.home-stack-top::after {
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.68), rgba(59, 37, 124, 0.9)),
        rgba(24, 18, 70, 0.92);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 14px 34px rgba(139, 92, 246, 0.5);
}

.home-stack-top span {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 2.3vw, 1.55rem);
    font-weight: 800;
    color: #A78BFA;
    text-shadow: 0 0 18px rgba(167, 139, 250, 0.7);
    transform: rotateZ(1deg);
}

@keyframes homeStackFloat {
    from {
        transform: rotateX(61deg) rotateZ(-45deg) translate3d(-0.08rem, 0.12rem, 0);
    }

    to {
        transform: rotateX(61deg) rotateZ(-45deg) translate3d(0.24rem, -0.28rem, 0);
    }
}

@keyframes nodePulse {
    0%,
    100% {
        opacity: 0.42;
        box-shadow: 0 0 14px rgba(167, 139, 250, 0.62), 0 0 30px rgba(139, 92, 246, 0.28);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 22px rgba(196, 181, 253, 0.9), 0 0 46px rgba(139, 92, 246, 0.5);
    }
}

@keyframes homeVisualGlow {
    from {
        transform: scale(0.98);
        opacity: 0.78;
    }

    to {
        transform: scale(1.03);
        opacity: 0.96;
    }
}

@keyframes homeStarOrbit {
    from {
        transform: rotateX(66deg) rotateZ(-7deg) translate3d(-0.34rem, -0.12rem, -1px);
    }

    to {
        transform: rotateX(66deg) rotateZ(7deg) translate3d(0.36rem, 0.24rem, -1px);
    }
}

@keyframes homeRingDrift {
    from {
        transform: rotateX(66deg) rotateZ(-6deg);
    }

    to {
        transform: rotateX(66deg) rotateZ(354deg);
    }
}

@keyframes homeRingDriftTwo {
    from {
        transform: rotateX(67deg) rotateZ(20deg);
    }

    to {
        transform: rotateX(67deg) rotateZ(380deg);
    }
}

@keyframes homeNodeFloatOne {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0.65rem, -0.45rem, 0);
    }
}

@keyframes homeNodeFloatTwo {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-0.55rem, 0.5rem, 0);
    }
}

@keyframes homeNodeFloatThree {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0.45rem, 0.62rem, 0);
    }
}

@keyframes homeNodeFloatFour {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-0.45rem, -0.5rem, 0);
    }
}

@keyframes homeStackSheen {
    0%,
    54%,
    100% {
        transform: rotate(-18deg) translateX(-28%);
        opacity: 0.36;
    }

    72% {
        transform: rotate(-18deg) translateX(22%);
        opacity: 0.72;
    }
}

@media (min-width: 900px) {
    body[data-page='home'].site-body .site-header {
        padding-top: 0.45rem;
    }

    body[data-page='home'].site-body .layout-topbar.layout-topbar-site {
        max-width: min(1180px, calc(100vw - 1rem));
    }

    body[data-page='home'].site-body .layout-topbar.layout-topbar-site::after,
    body[data-page='home'].site-body .layout-topbar.layout-topbar-site .topbar-slot-start {
        display: none;
    }

    body[data-page='home'].site-body .nav-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 4.55rem;
        padding: 0.72rem 0.86rem 0.72rem 1.1rem;
        border-radius: 1rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
            rgba(2, 6, 13, 0.82);
        border-color: rgba(139, 92, 246, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 22px 55px rgba(0, 0, 0, 0.38);
    }

    body[data-page='home'].site-body .nav-shell-main {
        display: contents;
    }

    body[data-page='home'].site-body .topbar-slot-center {
        order: 0;
        display: flex;
        width: auto;
        justify-content: flex-start;
    }

    body[data-page='home'].site-body .left-nav {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
    }

    body[data-page='home'].site-body .left-nav .nav-control-dock {
        display: none;
    }

    body[data-page='home'].site-body .topbar-slot-end {
        order: 2;
        width: auto;
    }

    body[data-page='home'].site-body .site-nav {
        order: 1;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 1.2rem;
    }

    body[data-page='home'].site-body .site-nav-group {
        flex-wrap: nowrap;
        gap: 1.25rem;
    }

    body[data-page='home'].site-body .site-nav a {
        padding: 0.4rem 0;
        border-radius: 0;
        color: rgba(229, 231, 235, 0.78);
        font-weight: 600;
        background: transparent;
        box-shadow: none;
    }

    body[data-page='home'].site-body .site-nav a:hover,
    body[data-page='home'].site-body .site-nav a.is-active {
        color: #F6F4FF;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body[data-page='home'].site-body .nav-actions {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    body[data-page='home'].site-body .nav-actions .theme-toggle {
        display: none;
    }

    body[data-page='home'].site-body .nav-actions .button {
        min-width: 5.4rem;
        min-height: 2.85rem;
        padding: 0.7rem 1.1rem;
    }
}

@media (max-width: 899px) {
    body[data-page='home'] .hero-section {
        min-height: auto;
        padding-top: 2.5rem;
    }

    body[data-page='home'] .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body[data-page='home'] .hero-copy h1 {
        max-width: 12ch;
        font-size: clamp(2.45rem, 11vw, 4rem);
    }

    body[data-page='home'] .hero-lead {
        max-width: 100%;
    }

    body[data-page='home'] .hero-actions .button {
        min-width: min(100%, 11.25rem);
    }

    .home-orbit-visual {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-ai-stack,
    .home-orbit-node,
    .home-orbit-ring,
    .home-orbit-visual::before,
    .home-orbit-visual::after,
    .home-stack-top::before {
        animation: none;
    }
}

/* ==========================================================================
   Homepage Premium AI SaaS Pass
   ========================================================================== */

body[data-page='home'] .section {
    max-width: min(1180px, calc(100vw - 2rem));
    padding-block: clamp(3rem, 7vw, 5.75rem);
}

body[data-page='home'] .hero-section {
    position: relative;
    display: block;
    min-height: auto;
    padding-top: clamp(3rem, 6vw, 5.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

body[data-page='home'] .hero-section::before,
body[data-page='home'] .hero-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

body[data-page='home'] .hero-section::before {
    inset: -8rem -10vw auto -10vw;
    height: 42rem;
    background:
        radial-gradient(circle at 25% 24%, rgba(139, 92, 246, 0.18), transparent 28%),
        radial-gradient(circle at 72% 36%, rgba(99, 102, 241, 0.14), transparent 34%);
    filter: blur(18px);
    opacity: 0.68;
}

body[data-page='home'] .hero-section::after {
    inset: 3rem -4vw 0 auto;
    width: min(34rem, 60vw);
    background-image:
        radial-gradient(circle, rgba(196, 181, 253, 0.36) 0 1px, transparent 1.8px);
    background-size: 48px 48px;
    opacity: 0.28;
    mask-image: radial-gradient(circle at center, #000 0 54%, transparent 76%);
    animation: homeParticleDrift 34s linear infinite alternate;
}

body[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
    gap: clamp(2rem, 7vw, 6rem);
    overflow: visible;
}

body[data-page='home'] .hero-copy {
    max-width: 580px;
    animation: homeFadeUp 0.68s ease both;
}

body[data-page='home'] .hero-copy h1 {
    max-width: 11.4ch;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: clamp(3.25rem, 6.25vw, 5.7rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: 0;
}

body[data-page='home'] .hero-lead {
    max-width: 34.5rem;
    margin: 0;
}

body[data-page='home'] .hero-actions {
    margin-top: 1.8rem;
}

body[data-page='home'] .hero-actions .button-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7C3AED, #8B5CF6 48%, #6366F1);
    box-shadow: 0 18px 42px rgba(139, 92, 246, 0.36);
}

body[data-page='home'] .hero-actions .button-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translateX(-120%);
    animation: homeButtonSheen 5.5s ease-in-out infinite;
}

body[data-page='home'] .hero-actions .button-primary,
body[data-page='home'] .hero-actions .button-secondary {
    min-height: 3.05rem;
}

body[data-page='home'] .hero-visual {
    display: grid;
    align-self: start;
    align-items: center;
    min-height: 0;
    animation: homeFadeUp 0.78s ease 0.08s both;
}

body[data-page='home'] .home-orbit-visual {
    min-height: clamp(360px, 42vw, 540px);
    transform: translate(clamp(1.8rem, 4vw, 4rem), clamp(-3.8rem, -4vw, -1.8rem));
}

body[data-page='home'] .home-orbit-visual::before {
    width: min(34.5rem, 78vw);
    opacity: 1;
}

body[data-page='home'] .home-orbit-visual::after {
    width: min(30.5rem, 70vw);
}

body[data-page='home'] .home-orbit-ring {
    width: min(30.5rem, 70vw);
}

body[data-page='home'] .home-orbit-ring-two {
    width: min(21.5rem, 54vw);
}

body[data-page='home'] .home-ai-stack {
    width: min(18.75rem, 52vw);
}

body[data-page='home'] .stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
        rgba(8, 10, 22, 0.78);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025), 0 24px 70px rgba(88, 28, 135, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    animation: homeFadeUp 0.68s ease 0.18s both;
}

body[data-page='home'] .stat-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 6.25rem;
    padding: 1.35rem clamp(1.1rem, 3vw, 2rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page='home'] .stat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    right: 0;
    bottom: 1.25rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.2), transparent);
}

body[data-page='home'] .stat-card::before {
    content: "";
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.72), rgba(76, 29, 149, 0.64));
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.28);
}

body[data-page='home'] .stat-card strong {
    grid-column: 2;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
}

body[data-page='home'] .stat-card span {
    grid-column: 2;
    color: rgba(229, 231, 235, 0.76);
    line-height: 1.35;
}

body[data-page='home'] .section-heading {
    max-width: 760px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

body[data-page='home'] .section-heading h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    line-height: 1.14;
    color: #F8F7FF;
}

body[data-page='home'] .section-heading p {
    max-width: 39rem;
    margin: 0.85rem auto 0;
    color: rgba(229, 231, 235, 0.68);
}

body[data-page='home'] #solutions .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

body[data-page='home'] #solutions .feature-card {
    position: relative;
    min-height: 14rem;
    padding: 1.55rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(8, 10, 22, 0.76);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

body[data-page='home'] #solutions .feature-card::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.2rem;
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.84), rgba(76, 29, 149, 0.78));
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

body[data-page='home'] #solutions .feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.42);
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.22);
}

body[data-page='home'] #solutions .feature-card h3 {
    margin-bottom: 0.7rem;
    font-family: var(--font-body);
    color: #FFFFFF;
}

body[data-page='home'] #solutions .feature-card p {
    margin: 0;
    color: rgba(229, 231, 235, 0.7);
}

body[data-page='home'] .split-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

body[data-page='home'] .split-section .section-copy h2 {
    max-width: 12.5ch;
    margin-top: 0.7rem;
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

body[data-page='home'] .split-section .section-copy h2::first-letter {
    color: inherit;
}

body[data-page='home'] .pill-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.35rem;
    margin-top: 1rem;
}

body[data-page='home'] .info-pill {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

body[data-page='home'] .info-pill::before {
    content: "";
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.72);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.08)),
        radial-gradient(circle at center, rgba(167, 139, 250, 0.28), transparent 52%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.24);
}

body[data-page='home'] .timeline-card {
    position: relative;
    gap: 1.45rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(139, 92, 246, 0.24);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.12), transparent 36%),
        rgba(10, 9, 23, 0.82);
    box-shadow: 0 28px 70px rgba(88, 28, 135, 0.18);
    overflow: hidden;
}

body[data-page='home'] .timeline-card:hover {
    transform: scale(1.02);
    border-color: rgba(167, 139, 250, 0.42);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.22);
}

body[data-page='home'] .timeline-card article {
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 0.25s ease;
}

body[data-page='home'] .timeline-card article:hover {
    transform: translateX(0.35rem);
}

body[data-page='home'] .timeline-step {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.24);
    color: #C4B5FD;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
}

body[data-page='home'] #resources {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 78% 0%, rgba(139, 92, 246, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.012)),
        rgba(8, 10, 22, 0.78);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

body[data-page='home'] #resources .section-heading {
    margin: 0;
    text-align: left;
}

body[data-page='home'] #resources .section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

body[data-page='home'] #resources .demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.78fr);
    gap: 1rem;
    min-width: 0;
}

body[data-page='home'] #resources .workspace-preview,
body[data-page='home'] #resources .demo-grid > .glass-card {
    border: 1px solid rgba(139, 92, 246, 0.22);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.12), transparent 36%),
        rgba(5, 7, 15, 0.78);
}

body[data-page='home'] #resources .workspace-preview {
    min-height: 22rem;
}

body[data-page='home'] .preview-thread {
    position: relative;
    min-height: 13.5rem;
    padding-bottom: 2.6rem;
}

body[data-page='home'] .preview-thread .chat-bubble {
    animation: homeMessageIn 0.6s ease both;
}

body[data-page='home'] .preview-thread .chat-bubble:nth-child(2) {
    animation-delay: 0.14s;
}

body[data-page='home'] .preview-thread .chat-bubble:nth-child(3) {
    animation-delay: 0.28s;
}

body[data-page='home'] .preview-thread::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.75rem;
    height: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 50%, rgba(196, 181, 253, 0.9) 0 2px, transparent 2.8px),
        radial-gradient(circle at 50% 50%, rgba(196, 181, 253, 0.55) 0 2px, transparent 2.8px),
        radial-gradient(circle at 66% 50%, rgba(196, 181, 253, 0.3) 0 2px, transparent 2.8px),
        rgba(17, 24, 39, 0.66);
    animation: typingDots 1.3s ease-in-out infinite;
}

body[data-page='home'] .cta-section {
    padding-top: clamp(2.25rem, 5vw, 4rem);
}

body[data-page='home'] .cta-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid rgba(139, 92, 246, 0.35);
    background:
        radial-gradient(circle at 44% 0%, rgba(139, 92, 246, 0.34), transparent 38%),
        linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(8, 10, 22, 0.84) 48%),
        rgba(8, 10, 22, 0.82);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

body[data-page='home'] .cta-card .button-primary {
    animation: homeCtaPulse 3.8s ease-in-out infinite;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeParticleDrift {
    from {
        transform: translate3d(-1.2rem, -0.4rem, 0);
    }

    to {
        transform: translate3d(1rem, 0.8rem, 0);
    }
}

@keyframes homeButtonSheen {
    0%,
    55%,
    100% {
        transform: translateX(-120%);
    }

    72% {
        transform: translateX(120%);
    }
}

@keyframes homeMessageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingDots {
    0%,
    100% {
        opacity: 0.55;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes homeCtaPulse {
    0%,
    100% {
        box-shadow: 0 18px 42px rgba(139, 92, 246, 0.28);
    }

    50% {
        box-shadow: 0 22px 58px rgba(139, 92, 246, 0.44);
    }
}

@media (max-width: 980px) {
    body[data-page='home'] .hero-grid,
    body[data-page='home'] .split-section,
    body[data-page='home'] #resources,
    body[data-page='home'] .cta-card {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .hero-grid {
        align-items: center;
    }

    body[data-page='home'] .stat-strip {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .stat-card:not(:last-child)::after {
        top: auto;
        left: 1.25rem;
        right: 1.25rem;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    body[data-page='home'] #resources .demo-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .hero-visual {
        align-self: center;
    }

    body[data-page='home'] .home-orbit-visual {
        transform: none;
    }
}

@media (max-width: 720px) {
    body[data-page='home'] .section {
        max-width: min(100% - 1rem, 1180px);
        padding-block: 2.5rem;
    }

    body[data-page='home'] .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }

    body[data-page='home'] #solutions .feature-grid,
    body[data-page='home'] .pill-row {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .home-orbit-visual {
        min-height: 300px;
    }

    body[data-page='home'] .home-ai-stack {
        width: min(18.5rem, 76vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page='home'] .hero-section::after,
    body[data-page='home'] .hero-actions .button-primary::after,
    body[data-page='home'] .home-orbit-visual::before,
    body[data-page='home'] .home-orbit-visual::after,
    body[data-page='home'] .home-orbit-ring,
    body[data-page='home'] .home-ai-stack,
    body[data-page='home'] .home-orbit-node,
    body[data-page='home'] .home-stack-top::before,
    body[data-page='home'] .preview-thread .chat-bubble,
    body[data-page='home'] .preview-thread::after,
    body[data-page='home'] .cta-card .button-primary {
        animation: none;
    }
}

/* ==========================================================================
   Home Reference Hero - Dark Orbital Stack
   ========================================================================== */

html[data-theme='dark'] body[data-page='home'] {
    background:
        radial-gradient(circle at 34% 47%, rgba(74, 30, 132, 0.12), transparent 27rem),
        radial-gradient(circle at 72% 18%, rgba(33, 37, 85, 0.12), transparent 22rem),
        #020208;
}

html[data-theme='dark'] body[data-page='home']::before {
    background:
        radial-gradient(circle at 31% 53%, rgba(116, 64, 219, 0.13), transparent 19rem),
        radial-gradient(circle at 48% 42%, rgba(177, 137, 255, 0.06), transparent 14rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.9));
    opacity: 1;
    animation: none;
}

html[data-theme='dark'] body[data-page='home']::after {
    inset: 0;
    opacity: 0.72;
    background-image:
        radial-gradient(circle, rgba(221, 212, 255, 0.56) 0 1px, transparent 1.9px),
        radial-gradient(circle, rgba(139, 92, 246, 0.42) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(97, 116, 238, 0.34) 0 0.9px, transparent 1.7px);
    background-size: 68px 68px, 104px 104px, 38px 38px;
    background-position: 1px 12px, 29px 36px, 11px 7px;
    mask-image: linear-gradient(180deg, #000 0 78%, rgba(0, 0, 0, 0.72) 100%);
    animation: referenceStarDrift 58s linear infinite;
}

body[data-page='home'] .hero-section {
    min-height: calc(100vh - 5rem);
    padding-top: clamp(3rem, 6.5vw, 5.75rem);
}

body[data-page='home'] .hero-section::before {
    inset: -9rem -16vw auto -16vw;
    height: 48rem;
    background:
        radial-gradient(circle at 30% 52%, rgba(93, 39, 176, 0.24), transparent 22rem),
        radial-gradient(circle at 43% 42%, rgba(167, 139, 250, 0.09), transparent 15rem);
    filter: blur(22px);
    opacity: 0.92;
}

body[data-page='home'] .hero-section::after {
    inset: 1rem auto auto 4vw;
    width: min(42rem, 62vw);
    height: min(38rem, 68vw);
    background-image:
        linear-gradient(180deg, transparent 0 29%, rgba(145, 121, 255, 0.16) 29.1% 29.4%, transparent 29.5% 100%),
        linear-gradient(180deg, transparent 0 67%, rgba(145, 121, 255, 0.12) 67.1% 67.4%, transparent 67.5% 100%),
        radial-gradient(circle, rgba(207, 197, 255, 0.52) 0 1.3px, transparent 2.2px);
    background-size: 100% 100%, 100% 100%, 54px 54px;
    background-position: center, center, 0 0;
    opacity: 0.42;
    mask-image: linear-gradient(90deg, #000 0 72%, transparent 100%);
    animation: homeParticleDrift 34s linear infinite alternate;
}

body[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
}

body[data-page='home'] .hero-visual {
    min-height: clamp(430px, 48vw, 610px);
    overflow: visible;
}

body[data-page='home'] .home-orbit-visual {
    min-height: clamp(420px, 47vw, 600px);
    transform: translate(clamp(0.25rem, 2.2vw, 2rem), clamp(-2.7rem, -3vw, -1rem));
}

body[data-page='home'] .home-orbit-visual::before {
    width: min(43rem, 78vw);
    aspect-ratio: 1.58;
    background:
        radial-gradient(circle at 43% 43%, rgba(225, 214, 255, 0.14), transparent 6%),
        radial-gradient(circle at 44% 49%, rgba(139, 92, 246, 0.35), transparent 19%),
        radial-gradient(ellipse at 48% 61%, rgba(91, 35, 158, 0.32), transparent 47%),
        radial-gradient(ellipse at 51% 75%, rgba(0, 0, 0, 0.98), transparent 70%);
    filter: blur(18px);
    opacity: 0.95;
    transform: translate3d(-5%, 8%, -3rem) rotateX(67deg);
}

body[data-page='home'] .home-orbit-visual::after {
    width: min(41rem, 80vw);
    aspect-ratio: 1.82;
    background-image:
        radial-gradient(circle, rgba(221, 212, 255, 0.7) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(139, 92, 246, 0.34) 0 1px, transparent 1.7px),
        linear-gradient(rgba(167, 139, 250, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
    background-size: 28px 28px, 52px 52px, 48px 48px, 48px 48px;
    background-position: 0 0, 19px 16px, center, center;
    border: 1px solid rgba(149, 71, 255, 0.2);
    box-shadow:
        inset 0 0 42px rgba(124, 58, 237, 0.1),
        0 0 46px rgba(124, 58, 237, 0.14);
    opacity: 0.52;
    mask-image: radial-gradient(ellipse at center, #000 0 48%, transparent 76%);
    transform: rotateX(68deg) rotateZ(-4deg) translate3d(-7%, 14%, -1px);
}

body[data-page='home'] .home-orbit-ring {
    width: min(40rem, 78vw);
    aspect-ratio: 1.8;
    border-color: rgba(150, 74, 255, 0.5);
    box-shadow:
        0 0 28px rgba(139, 92, 246, 0.22),
        inset 0 0 26px rgba(139, 92, 246, 0.08);
    transform: rotateX(68deg) rotateZ(-4deg) translate3d(-6%, 13%, 0);
}

body[data-page='home'] .home-orbit-ring-two {
    width: min(27rem, 56vw);
    aspect-ratio: 1.72;
    border-color: rgba(199, 177, 255, 0.16);
    transform: rotateX(68deg) rotateZ(14deg) translate3d(-8%, 12%, 0);
}

body[data-page='home'] .home-orbit-node {
    width: 0.58rem;
    height: 0.58rem;
    background: #BDAAFE;
    box-shadow:
        0 0 18px rgba(196, 181, 253, 0.9),
        0 0 44px rgba(139, 92, 246, 0.54);
}

body[data-page='home'] .home-orbit-node::before {
    height: clamp(4.8rem, 9vw, 8.6rem);
    background: linear-gradient(180deg, rgba(196, 181, 253, 0.58), rgba(139, 92, 246, 0.16), transparent);
    opacity: 0.5;
}

body[data-page='home'] .node-one {
    top: 11%;
    right: 44%;
}

body[data-page='home'] .node-two {
    left: 10%;
    top: 44%;
}

body[data-page='home'] .node-three {
    right: 8%;
    top: 36%;
    opacity: 0.34;
}

body[data-page='home'] .node-four {
    left: 49%;
    bottom: 7%;
}

body[data-page='home'] .home-ai-stack {
    width: min(20.5rem, 52vw);
    transform: rotateX(60deg) rotateZ(-45deg) translate3d(-9%, 8%, 0);
    filter:
        drop-shadow(0 0 24px rgba(139, 92, 246, 0.36))
        drop-shadow(0 34px 36px rgba(0, 0, 0, 0.52));
}

body[data-page='home'] .home-ai-stack::before {
    inset: 57% -12% -21%;
    background:
        radial-gradient(ellipse at center, rgba(151, 71, 255, 0.48), rgba(91, 35, 158, 0.18) 42%, transparent 72%);
    filter: blur(16px);
    transform: translate3d(-1.2rem, 1.6rem, -5.2rem);
}

body[data-page='home'] .home-stack-layer,
body[data-page='home'] .home-stack-top {
    inset: 16% 14%;
    border-radius: 1rem;
    border-color: rgba(190, 166, 255, 0.46);
    background:
        radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12), transparent 17%),
        linear-gradient(145deg, rgba(87, 72, 169, 0.82), rgba(28, 22, 78, 0.98) 58%, rgba(18, 16, 48, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -22px 36px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.16),
        0 0 30px rgba(139, 92, 246, 0.28),
        0 26px 58px rgba(0, 0, 0, 0.58);
}

body[data-page='home'] .home-stack-layer::before,
body[data-page='home'] .home-stack-top::after {
    bottom: -0.86rem;
    height: 0.86rem;
    background:
        linear-gradient(180deg, rgba(138, 84, 234, 0.58), rgba(47, 39, 126, 0.86)),
        rgba(22, 18, 62, 0.92);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(88, 28, 135, 0.42);
}

body[data-page='home'] .home-stack-layer::after {
    right: -0.86rem;
    width: 0.86rem;
    background:
        linear-gradient(90deg, rgba(24, 20, 66, 0.95), rgba(119, 71, 213, 0.46)),
        rgba(19, 17, 50, 0.94);
}

body[data-page='home'] .layer-back {
    transform: translate3d(-1.3rem, 1.3rem, -3.85rem);
    opacity: 0.5;
}

body[data-page='home'] .layer-mid {
    transform: translate3d(-0.9rem, 0.9rem, -2.58rem);
    opacity: 0.66;
}

body[data-page='home'] .layer-front {
    transform: translate3d(-0.48rem, 0.48rem, -1.24rem);
    opacity: 0.86;
}

body[data-page='home'] .home-stack-top {
    background:
        radial-gradient(circle at 21% 29%, rgba(255, 255, 255, 0.18), transparent 18%),
        linear-gradient(145deg, rgba(68, 58, 146, 0.98), rgba(22, 19, 68, 0.99) 58%, rgba(13, 13, 34, 1));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -20px 36px rgba(139, 92, 246, 0.16),
        0 0 0 1px rgba(216, 180, 254, 0.33),
        0 0 38px rgba(168, 85, 247, 0.62),
        0 0 86px rgba(109, 40, 217, 0.28),
        0 34px 72px rgba(0, 0, 0, 0.62);
}

body[data-page='home'] .home-stack-top::before {
    inset: 16% 8% auto;
    height: 31%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    filter: blur(12px);
    opacity: 0.48;
}

body[data-page='home'] .home-stack-top span {
    color: #BFA8FF;
    text-shadow:
        0 0 14px rgba(191, 168, 255, 0.84),
        0 0 32px rgba(139, 92, 246, 0.56);
}

@keyframes referenceStarDrift {
    from {
        background-position: 1px 12px, 29px 36px, 11px 7px;
    }

    to {
        background-position: 35px 46px, -23px -16px, 30px 26px;
    }
}

@media (max-width: 980px) {
    body[data-page='home'] .hero-visual {
        min-height: clamp(340px, 58vw, 500px);
    }

    body[data-page='home'] .home-orbit-visual {
        transform: none;
    }
}

@media (max-width: 720px) {
    body[data-page='home'] .hero-section::after {
        inset: 15rem auto auto -10vw;
        width: 116vw;
        opacity: 0.32;
    }

    body[data-page='home'] .home-orbit-visual {
        min-height: 330px;
    }

    body[data-page='home'] .home-ai-stack {
        width: min(18rem, 76vw);
    }
}

/* ==========================================================================
   Home Screenshot Restoration
   ========================================================================== */

html[data-theme='dark'] body[data-page='home'] {
    background:
        radial-gradient(circle at 28% 34%, rgba(86, 33, 149, 0.15), transparent 31rem),
        radial-gradient(circle at 58% 46%, rgba(37, 31, 78, 0.18), transparent 28rem),
        #010106;
}

html[data-theme='dark'] body[data-page='home']::before {
    background:
        radial-gradient(circle at 18% 42%, rgba(139, 92, 246, 0.12), transparent 30rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 31%, transparent 72%, rgba(0, 0, 0, 0.92));
    opacity: 1;
}

html[data-theme='dark'] body[data-page='home']::after {
    inset: 0;
    opacity: 0.66;
    background-image:
        radial-gradient(circle, rgba(225, 218, 255, 0.56) 0 1.2px, transparent 2px),
        radial-gradient(circle, rgba(139, 92, 246, 0.4) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(90, 101, 218, 0.32) 0 1px, transparent 1.8px);
    background-size: 68px 68px, 104px 104px, 38px 38px;
    background-position: 0 14px, 28px 36px, 10px 8px;
    mask-image: linear-gradient(180deg, #000 0 86%, rgba(0, 0, 0, 0.76) 100%);
}

@media (min-width: 900px) {
    body[data-page='home'].site-body .site-header {
        padding-top: 0.8rem;
    }

    body[data-page='home'].site-body .layout-topbar.layout-topbar-site {
        max-width: min(1182px, calc(100vw - 2rem));
    }

    body[data-page='home'].site-body .nav-shell {
        min-height: 4.7rem;
        padding: 0.72rem 0.86rem 0.72rem 1.1rem;
        border-radius: 1rem;
        border-color: rgba(124, 90, 220, 0.34);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
            rgba(13, 11, 34, 0.86);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 0 0 1px rgba(255, 255, 255, 0.018),
            0 22px 60px rgba(0, 0, 0, 0.34);
    }

    body[data-page='home'].site-body .site-nav {
        gap: 1.25rem;
    }

    body[data-page='home'].site-body .site-nav-group {
        gap: 1.25rem;
    }

    body[data-page='home'].site-body .site-nav a {
        color: rgba(232, 230, 242, 0.72);
        font-size: 0.94rem;
        font-weight: 700;
    }

    body[data-page='home'].site-body .site-nav a:hover,
    body[data-page='home'].site-body .site-nav a.is-active {
        color: #F8F7FF;
    }

    body[data-page='home'].site-body .nav-actions .button {
        min-width: 5.4rem;
        min-height: 3.1rem;
        border-radius: 0.78rem;
        font-weight: 800;
    }

    body[data-page='home'].site-body .nav-actions .button-ghost {
        border-color: rgba(139, 92, 246, 0.5);
        background: rgba(8, 7, 22, 0.44);
        color: #F8F7FF;
    }

    body[data-page='home'].site-body .nav-actions .button-primary {
        background: linear-gradient(135deg, #8B5CF6, #6D6AF4);
        box-shadow: 0 16px 38px rgba(110, 84, 240, 0.32);
    }
}

body[data-page='home'] .section {
    max-width: min(1182px, calc(100vw - 2rem));
}

body[data-page='home'] .hero-section {
    min-height: calc(100vh - 5.5rem);
    padding-top: clamp(2.75rem, 4vw, 3.25rem);
    padding-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

body[data-page='home'] .hero-section::before {
    inset: -10rem -12vw auto -12vw;
    height: 44rem;
    background:
        radial-gradient(circle at 20% 44%, rgba(139, 92, 246, 0.2), transparent 25rem),
        radial-gradient(circle at 60% 48%, rgba(77, 47, 149, 0.12), transparent 26rem);
    filter: blur(18px);
    opacity: 0.82;
}

body[data-page='home'] .hero-section::after {
    inset: 8rem auto auto 45%;
    width: min(45rem, 52vw);
    height: min(34rem, 46vw);
    opacity: 0.26;
    background-image:
        linear-gradient(180deg, transparent 0 44%, rgba(145, 121, 255, 0.18) 44.1% 44.35%, transparent 44.45% 100%),
        radial-gradient(circle, rgba(207, 197, 255, 0.42) 0 1.1px, transparent 2px);
    background-size: 100% 100%, 52px 52px;
    mask-image: radial-gradient(ellipse at center, #000 0 56%, transparent 78%);
}

body[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 0.48fr) minmax(520px, 0.52fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
}

body[data-page='home'] .hero-copy {
    max-width: 520px;
    opacity: 1;
    transform: none;
    animation: none;
}

body[data-page='home'] .hero-copy h1 {
    max-width: 10.7ch;
    margin-top: 1.55rem;
    margin-bottom: 1.25rem;
    color: #FAF9FF;
    font-size: clamp(4.2rem, 5.45vw, 5.65rem);
    font-weight: 700;
    line-height: 1.06;
}

body[data-page='home'] .hero-title-accent {
    color: #8B5CF6;
    text-shadow: 0 0 28px rgba(139, 92, 246, 0.38);
}

body[data-page='home'] .home-hero-pill {
    padding: 0.5rem 0.82rem;
    border-color: rgba(139, 92, 246, 0.48);
    background: rgba(17, 12, 39, 0.78);
    color: rgba(247, 245, 255, 0.9);
}

body[data-page='home'] .home-hero-pill::before {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 0.22rem;
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
}

body[data-page='home'] .hero-visual {
    min-height: clamp(520px, 46vw, 650px);
    align-self: start;
    opacity: 1;
    transform: none;
    animation: none;
}

body[data-page='home'] .home-orbit-visual {
    min-height: clamp(520px, 46vw, 650px);
    transform: translate(clamp(-1rem, -1vw, -0.3rem), clamp(2.3rem, 4vw, 4.4rem));
}

body[data-page='home'] .home-orbit-visual::before {
    width: min(36rem, 46vw);
    aspect-ratio: 1.48;
    opacity: 0.94;
}

body[data-page='home'] .home-orbit-visual::after {
    width: min(36rem, 46vw);
    aspect-ratio: 1.76;
    opacity: 0.5;
}

body[data-page='home'] .home-orbit-ring {
    width: min(36rem, 46vw);
    aspect-ratio: 1.78;
}

body[data-page='home'] .home-orbit-ring-two {
    width: min(25rem, 34vw);
}

body[data-page='home'] .home-ai-stack {
    width: min(20.5rem, 31vw);
}

body[data-page='home'] .node-one {
    top: 8%;
    right: 35%;
}

body[data-page='home'] .node-two {
    left: 15%;
    top: 36%;
}

body[data-page='home'] .node-three {
    right: 6%;
    top: 28%;
}

body[data-page='home'] .node-four {
    left: 51%;
    bottom: 3%;
}

body[data-page='home'] .stat-strip {
    display: none;
}

@media (max-width: 980px) {
    body[data-page='home'] .hero-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .hero-copy h1 {
        max-width: 10.8ch;
        font-size: clamp(3.2rem, 12vw, 4.6rem);
    }

    body[data-page='home'] .home-orbit-visual {
        transform: none;
    }

    body[data-page='home'] .home-ai-stack {
        width: min(19rem, 70vw);
    }
}

@media (max-width: 720px) {
    body[data-page='home'] .hero-section {
        padding-top: 2.75rem;
    }

    body[data-page='home'] .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.55rem, 12.5vw, 3.8rem);
    }

    body[data-page='home'] .hero-visual,
    body[data-page='home'] .home-orbit-visual {
        min-height: 340px;
    }
}

/* ==========================================================================
   Home page production layout and typography refresh
   ========================================================================== */

body[data-page='home'] :is(.site-main, .app-main) {
    padding-inline: 0;
}

body[data-page='home'] .section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px;
}

body[data-page='home'] .section + .section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page='home'] .hero-section {
    min-height: calc(100vh - 5.5rem);
    padding-top: 96px;
    padding-bottom: 96px;
}

body[data-page='home'] .hero-grid,
body[data-page='home'] .split-section,
body[data-page='home'] .demo-grid {
    gap: 32px;
}

body[data-page='home'] .feature-grid,
body[data-page='home'] .pill-row {
    gap: 24px;
}

body[data-page='home'] .hero-copy,
body[data-page='home'] .section-copy,
body[data-page='home'] .section-heading,
body[data-page='home'] .cta-card,
body[data-page='home'] .feature-card,
body[data-page='home'] .timeline-card,
body[data-page='home'] .workspace-preview,
body[data-page='home'] .stat-card,
body[data-page='home'] #resources .demo-grid > .glass-card {
    min-width: 0;
}

body[data-page='home'] :is(.hero-copy h1, .section-heading h2, .section-copy h2, .cta-card h2, .feature-card h3, .timeline-card h3, #resources .glass-card h3) {
    font-family: var(--font-body);
    letter-spacing: 0;
}

body[data-page='home'] .hero-copy h1 {
    max-width: 11ch;
    margin: 20px 0 24px;
    font-size: clamp(3.25rem, 6vw, 64px);
    line-height: 1.1;
    font-weight: 700;
}

body[data-page='home'] .section-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    gap: 12px;
    text-align: center;
}

body[data-page='home'] .section-heading h2,
body[data-page='home'] .section-copy h2,
body[data-page='home'] .cta-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 40px);
    line-height: 1.2;
    font-weight: 600;
    color: #f8f7ff;
}

body[data-page='home'] .feature-card h3,
body[data-page='home'] .timeline-card h3,
body[data-page='home'] #resources .glass-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
}

body[data-page='home'] .hero-lead,
body[data-page='home'] .section-heading p,
body[data-page='home'] .section-copy p,
body[data-page='home'] .feature-card p,
body[data-page='home'] .timeline-card p,
body[data-page='home'] .check-list li,
body[data-page='home'] .workspace-header p,
body[data-page='home'] .stat-card span,
body[data-page='home'] .chat-bubble,
body[data-page='home'] .cta-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

body[data-page='home'] .hero-lead {
    max-width: 40rem;
}

body[data-page='home'] .eyebrow,
body[data-page='home'] .status-pill {
    font-size: 14px;
    line-height: 1.4;
}

body[data-page='home'] .eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

body[data-page='home'] .status-pill {
    color: rgba(220, 212, 255, 0.78);
}

body[data-page='home'] .home-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: 999px;
    background: rgba(17, 12, 39, 0.72);
    color: rgba(244, 239, 255, 0.88);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.14);
}

body[data-page='home'] .hero-title-accent {
    color: #8b5cf6;
    text-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

body[data-page='home'] .hero-actions {
    gap: 16px;
    flex-wrap: wrap;
}

body[data-page='home'] .hero-actions .button {
    min-width: 182px;
    min-height: 56px;
    padding: 0.95rem 1.4rem;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
}

body[data-page='home'] .hero-actions .button-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d4dff);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.24);
}

body[data-page='home'] .hero-actions .button-primary::after {
    opacity: 0.45;
    filter: blur(18px);
}

body[data-page='home'] .hero-actions .button-secondary {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(10, 10, 18, 0.42);
}

body[data-page='home'] .hero-section::before {
    filter: blur(12px);
    opacity: 0.72;
}

body[data-page='home'] .home-orbit-visual::before {
    opacity: 0.88;
}

body[data-page='home'] .home-orbit-visual::after {
    opacity: 0.38;
}

body[data-page='home'] .stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow: 0 18px 42px rgba(7, 7, 18, 0.26);
}

body[data-page='home'] .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    align-items: center;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page='home'] .stat-card + .stat-card {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page='home'] .stat-card::before {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), transparent 35%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(91, 51, 204, 0.86));
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.24);
}

body[data-page='home'] .stat-card strong {
    grid-column: 2;
    margin: 0;
    font-size: clamp(2rem, 3vw, 48px);
    line-height: 1;
    color: #ffffff;
}

body[data-page='home'] #solutions .feature-grid {
    gap: 24px;
}

body[data-page='home'] #solutions .feature-card,
body[data-page='home'] .timeline-card,
body[data-page='home'] .timeline-card article,
body[data-page='home'] #resources .workspace-preview,
body[data-page='home'] #resources .demo-grid > .glass-card,
body[data-page='home'] .cta-card {
    border-radius: 16px;
}

body[data-page='home'] #solutions .feature-card,
body[data-page='home'] #resources .workspace-preview,
body[data-page='home'] #resources .demo-grid > .glass-card {
    padding: 24px;
}

body[data-page='home'] #solutions .feature-card {
    min-height: 100%;
    border-color: rgba(139, 92, 246, 0.18);
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 10, 22, 0.72);
    box-shadow: 0 16px 36px rgba(6, 6, 15, 0.22);
}

body[data-page='home'] #solutions .feature-card::before {
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.22);
}

body[data-page='home'] .split-section {
    align-items: start;
}

body[data-page='home'] .split-section .section-copy {
    gap: 16px;
}

body[data-page='home'] .pill-row {
    margin-top: 8px;
}

body[data-page='home'] .timeline-card {
    gap: 16px;
    padding: 24px;
    border-color: rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent 32%),
        rgba(10, 9, 23, 0.78);
    box-shadow: 0 18px 42px rgba(88, 28, 135, 0.14);
}

body[data-page='home'] .timeline-card article {
    padding: 24px;
}

body[data-page='home'] .timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(88, 28, 135, 0.16);
}

body[data-page='home'] #resources {
    display: block;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

body[data-page='home'] #resources .section-heading {
    text-align: center;
    margin-bottom: 32px;
}

body[data-page='home'] #resources .section-heading h2 {
    font-size: clamp(2rem, 4vw, 40px);
}

body[data-page='home'] #resources .demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.78fr);
    gap: 24px;
}

body[data-page='home'] #resources .workspace-preview,
body[data-page='home'] #resources .demo-grid > .glass-card {
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent 30%),
        rgba(6, 8, 18, 0.76);
    box-shadow: 0 18px 40px rgba(6, 6, 15, 0.24);
}

body[data-page='home'] #resources .workspace-preview {
    min-height: 22rem;
}

body[data-page='home'] .workspace-header {
    gap: 16px;
    margin-bottom: 24px;
}

body[data-page='home'] .workspace-header strong {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

body[data-page='home'] .preview-thread {
    min-height: 15rem;
    gap: 16px;
}

body[data-page='home'] .preview-thread::after {
    border-color: rgba(139, 92, 246, 0.16);
}

body[data-page='home'] .check-list {
    gap: 14px;
}

body[data-page='home'] .check-list li {
    padding-left: 30px;
}

body[data-page='home'] .cta-section {
    padding-top: 96px;
}

body[data-page='home'] .cta-card {
    gap: 24px;
    padding: 32px;
    border-color: rgba(139, 92, 246, 0.22);
    background:
        radial-gradient(circle at 44% 0%, rgba(139, 92, 246, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(88, 28, 135, 0.18), rgba(8, 10, 22, 0.88) 48%),
        rgba(8, 10, 22, 0.82);
    box-shadow: 0 20px 48px rgba(88, 28, 135, 0.16);
}

body[data-page='home'] .cta-card .button-primary {
    animation: none;
}

@media (max-width: 980px) {
    body[data-page='home'] .section,
    body[data-page='home'] .hero-section,
    body[data-page='home'] .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    body[data-page='home'] .stat-strip {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .stat-card + .stat-card {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 720px) {
    body[data-page='home'] .section,
    body[data-page='home'] .hero-section,
    body[data-page='home'] .cta-section {
        padding: 64px 24px;
    }

    body[data-page='home'] .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.75rem, 12vw, 64px);
    }

    body[data-page='home'] .hero-actions .button {
        width: 100%;
    }

    body[data-page='home'] .cta-card {
        padding: 24px;
    }
}

/* ==========================================================================
   Home page hero visual cleanup
   ========================================================================== */

body[data-page='home'] {
    background-color: #020204;
}

html[data-theme='dark'] body[data-page='home'] {
    background:
        radial-gradient(circle at 22% 18%, rgba(58, 27, 107, 0.1), transparent 24rem),
        radial-gradient(circle at 78% 14%, rgba(25, 28, 70, 0.08), transparent 22rem),
        #020204;
}

body[data-page='home']::before {
    background:
        radial-gradient(circle at 20% 14%, rgba(139, 92, 246, 0.045), transparent 22%),
        radial-gradient(circle at 78% 12%, rgba(99, 102, 241, 0.03), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(9, 7, 18, 0.38), transparent 44%);
    animation: none;
    opacity: 1;
}

html[data-theme='dark'] body[data-page='home']::before {
    background:
        radial-gradient(circle at 20% 14%, rgba(139, 92, 246, 0.045), transparent 22%),
        radial-gradient(circle at 78% 12%, rgba(99, 102, 241, 0.03), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(9, 7, 18, 0.38), transparent 44%);
    animation: none;
    opacity: 1;
}

body[data-page='home']::after {
    inset: -6vmax;
    opacity: 0.3;
    background-image:
        radial-gradient(circle, rgba(232, 225, 255, 0.68) 0 1.15px, transparent 2.05px),
        radial-gradient(circle, rgba(139, 92, 246, 0.36) 0 1px, transparent 1.9px),
        radial-gradient(circle, rgba(99, 102, 241, 0.26) 0 0.95px, transparent 1.8px);
    background-size: 78px 78px, 132px 132px, 208px 208px;
    background-position: 4px 14px, 36px 42px, 18px 10px;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.02);
    transform-origin: center;
    backface-visibility: hidden;
    animation: homeStarFieldFloat 64s ease-in-out infinite alternate;
}

html[data-theme='dark'] body[data-page='home']::after {
    inset: -6vmax;
    opacity: 0.3;
    background-image:
        radial-gradient(circle, rgba(232, 225, 255, 0.68) 0 1.15px, transparent 2.05px),
        radial-gradient(circle, rgba(139, 92, 246, 0.36) 0 1px, transparent 1.9px),
        radial-gradient(circle, rgba(99, 102, 241, 0.26) 0 0.95px, transparent 1.8px);
    background-size: 78px 78px, 132px 132px, 208px 208px;
    background-position: 4px 14px, 36px 42px, 18px 10px;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.02);
    transform-origin: center;
    backface-visibility: hidden;
    animation: homeStarFieldFloat 64s ease-in-out infinite alternate;
}

body[data-page='home'] .hero-section::before {
    inset: -6rem -10vw auto -10vw;
    height: 36rem;
    background:
        radial-gradient(circle at 60% 52%, rgba(88, 28, 135, 0.2), transparent 22%),
        radial-gradient(circle at 28% 24%, rgba(99, 102, 241, 0.08), transparent 28%);
    filter: blur(10px);
    opacity: 0.42;
}

body[data-page='home'] .hero-section::after {
    inset: 4rem -2vw 0 auto;
    width: min(32rem, 56vw);
    background-image:
        radial-gradient(circle, rgba(196, 181, 253, 0.2) 0 0.9px, transparent 1.8px);
    background-size: 56px 56px;
    opacity: 0.12;
    mask-image: radial-gradient(circle at center, #000 0 48%, transparent 76%);
}

body[data-page='home'] .brand-badge {
    gap: 0.58rem;
}

body[data-page='home'] .brand-badge::before {
    width: 1.14rem;
    height: 1.26rem;
    background:
        linear-gradient(180deg, rgba(244, 239, 255, 0.9), rgba(244, 239, 255, 0) 22%),
        linear-gradient(145deg, #d5c7ff 0%, #8b5cf6 42%, #5b21b6 100%);
    clip-path: polygon(50% 0, 100% 100%, 79% 100%, 60% 57%, 40% 57%, 21% 100%, 0 100%);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.54));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset -2px -3px 4px rgba(49, 16, 114, 0.38);
    transform: translateY(-0.02rem);
}

body[data-page='home'] .brand-badge::after {
    left: 0.36rem;
    top: 0.64rem;
    width: 0.54rem;
    height: 0.16rem;
    background: rgba(248, 245, 255, 0.92);
    box-shadow:
        0 0 8px rgba(248, 245, 255, 0.22),
        0 0 18px rgba(139, 92, 246, 0.18);
}

body[data-page='home'] .brand-badge-word {
    color: #fbfaff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.16);
}

body[data-page='home'] .hero-visual {
    overflow: visible;
}

body[data-page='home'] .home-orbit-visual {
    min-height: clamp(500px, 44vw, 620px);
    transform: translate(clamp(-0.6rem, 0vw, 0rem), clamp(1rem, 2.2vw, 2rem));
}

body[data-page='home'] .home-orbit-visual::before {
    width: min(34rem, 44vw);
    aspect-ratio: 1.4;
    background:
        radial-gradient(circle at 50% 46%, rgba(139, 92, 246, 0.22), transparent 18%),
        radial-gradient(ellipse at 50% 58%, rgba(109, 40, 217, 0.18), transparent 34%),
        radial-gradient(ellipse at 50% 70%, rgba(24, 10, 46, 0.94), transparent 66%);
    filter: blur(12px);
    opacity: 0.72;
}

body[data-page='home'] .home-orbit-visual::after {
    width: min(35rem, 46vw);
    aspect-ratio: 1.7;
    background-image:
        radial-gradient(circle, rgba(216, 180, 254, 0.44) 0 1px, transparent 1.9px),
        radial-gradient(circle, rgba(139, 92, 246, 0.18) 0 0.9px, transparent 1.8px);
    background-size: 40px 40px, 68px 68px;
    background-position: 0 0, 14px 18px;
    opacity: 0.24;
    mask-image: radial-gradient(ellipse at center, #000 0 54%, transparent 76%);
    transform: rotateX(72deg) rotateZ(-8deg) translate3d(0, 0, -1px);
}

body[data-page='home'] .home-orbit-ring {
    width: min(34.5rem, 45vw);
    aspect-ratio: 1.78;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 0 22px rgba(139, 92, 246, 0.14),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
    transform: rotateX(72deg) rotateZ(-8deg);
}

body[data-page='home'] .home-orbit-ring::before {
    border-color: rgba(167, 139, 250, 0.09);
}

body[data-page='home'] .home-orbit-ring::after {
    border-color: rgba(139, 92, 246, 0.05);
}

body[data-page='home'] .home-orbit-ring-two {
    width: min(23rem, 32vw);
    border-color: rgba(196, 181, 253, 0.13);
    transform: rotateX(72deg) rotateZ(11deg);
}

body[data-page='home'] .home-orbit-node {
    width: 0.42rem;
    height: 0.42rem;
    background: #c9b7ff;
    box-shadow: 0 0 10px rgba(201, 183, 255, 0.74), 0 0 22px rgba(139, 92, 246, 0.28);
}

body[data-page='home'] .home-orbit-node::before {
    opacity: 0.28;
}

body[data-page='home'] .home-ai-stack {
    width: min(19.25rem, 30vw);
    transform: rotateX(67deg) rotateZ(-33deg) translate3d(-2%, 2%, 0);
    filter:
        drop-shadow(0 0 16px rgba(139, 92, 246, 0.22))
        drop-shadow(0 28px 34px rgba(0, 0, 0, 0.72));
}

body[data-page='home'] .home-ai-stack::before {
    inset: 61% -8% -18%;
    background:
        radial-gradient(ellipse at center, rgba(151, 71, 255, 0.38), rgba(91, 35, 158, 0.1) 40%, transparent 72%);
    filter: blur(12px);
    transform: translate3d(-0.8rem, 1.1rem, -5rem);
}

body[data-page='home'] .home-stack-layer,
body[data-page='home'] .home-stack-top {
    inset: 15% 13%;
    border-radius: 1.2rem;
    border-color: rgba(190, 166, 255, 0.56);
    background:
        linear-gradient(155deg, rgba(84, 72, 168, 0.92), rgba(24, 20, 64, 0.99) 62%, rgba(8, 9, 20, 1));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -16px 28px rgba(139, 92, 246, 0.12),
        0 0 0 1px rgba(139, 92, 246, 0.14),
        0 0 24px rgba(139, 92, 246, 0.22),
        0 22px 42px rgba(0, 0, 0, 0.68);
}

body[data-page='home'] .home-stack-layer::before,
body[data-page='home'] .home-stack-top::after {
    left: 0.42rem;
    right: 0.42rem;
    bottom: -0.68rem;
    height: 0.68rem;
    border-color: rgba(196, 181, 253, 0.18);
    background:
        linear-gradient(180deg, rgba(132, 88, 230, 0.54), rgba(35, 31, 102, 0.9)),
        rgba(19, 16, 53, 0.96);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(88, 28, 135, 0.22);
}

body[data-page='home'] .home-stack-layer::after {
    top: 0.46rem;
    right: -0.68rem;
    bottom: 0.05rem;
    width: 0.68rem;
    border-color: rgba(196, 181, 253, 0.16);
    background:
        linear-gradient(90deg, rgba(18, 16, 53, 0.98), rgba(103, 67, 197, 0.42)),
        rgba(16, 14, 44, 0.96);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.04),
        6px 8px 18px rgba(88, 28, 135, 0.16);
}

body[data-page='home'] .layer-back {
    transform: translate3d(-0.96rem, 0.96rem, -3.25rem);
    opacity: 0.48;
}

body[data-page='home'] .layer-mid {
    transform: translate3d(-0.64rem, 0.64rem, -2.1rem);
    opacity: 0.64;
}

body[data-page='home'] .layer-front {
    transform: translate3d(-0.32rem, 0.32rem, -0.98rem);
    opacity: 0.82;
}

body[data-page='home'] .home-stack-top {
    transform: translate3d(0, 0, 0.34rem);
    background:
        radial-gradient(circle at 24% 25%, rgba(255, 255, 255, 0.12), transparent 13%),
        linear-gradient(155deg, rgba(60, 54, 140, 0.98), rgba(20, 18, 58, 1) 62%, rgba(6, 7, 17, 1));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -14px 24px rgba(139, 92, 246, 0.08),
        0 0 0 1px rgba(216, 180, 254, 0.26),
        0 0 30px rgba(168, 85, 247, 0.32),
        0 28px 56px rgba(0, 0, 0, 0.74);
}

body[data-page='home'] .home-stack-top::before {
    inset: 20% 10% auto;
    height: 22%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    filter: blur(8px);
    opacity: 0.38;
}

body[data-page='home'] .home-stack-top span {
    font-size: clamp(1.02rem, 1.8vw, 1.34rem);
    color: #efe8ff;
    text-shadow:
        0 0 10px rgba(239, 232, 255, 0.72),
        0 0 22px rgba(139, 92, 246, 0.38);
}

@keyframes homeStarFieldFloat {
    0% {
        transform: translate3d(-2.4%, -1.4%, 0) scale(1.01);
    }

    25% {
        transform: translate3d(-0.9%, 1.1%, 0) scale(1.025);
    }

    50% {
        transform: translate3d(1.6%, -0.2%, 0) scale(1.035);
    }

    75% {
        transform: translate3d(0.5%, 1.7%, 0) scale(1.024);
    }

    100% {
        transform: translate3d(2.5%, 0.8%, 0) scale(1.015);
    }
}

@media (max-width: 980px) {
    body[data-page='home'] .home-orbit-visual {
        min-height: 460px;
        transform: none;
    }

    body[data-page='home'] .home-ai-stack {
        width: min(18rem, 72vw);
    }
}

@media (max-width: 720px) {
    body[data-page='home']::after {
        opacity: 0.22;
    }

    body[data-page='home'] .hero-visual,
    body[data-page='home'] .home-orbit-visual {
        min-height: 320px;
    }

    body[data-page='home'] .home-ai-stack {
        width: min(15.5rem, 74vw);
    }
}

/* ==========================================================================
   Reference-driven UI refinement
   Final pass aligning the existing site structure with the dark AI SaaS look.
   ========================================================================== */

body.has-unified-topbar .section {
    padding-block: clamp(3rem, 5vw, 4.75rem);
}

body.has-unified-topbar :is(.section[id], [id='solutions'], [id='resources'], [id='ai-agents'], [id='ticket-thread']) {
    scroll-margin-top: 8rem;
}

body.has-unified-topbar .site-main > .section:first-child,
body.has-unified-topbar .app-main > .section:first-child {
    padding-top: clamp(1.1rem, 2.4vw, 1.7rem);
}

body.has-unified-topbar .section-heading {
    gap: 0.85rem;
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

body.has-unified-topbar .page-intro,
body.has-unified-topbar .form-shell,
body.has-unified-topbar .contact-highlights,
body.has-unified-topbar .ticket-conversation-panel,
body.has-unified-topbar .ticket-summary-card,
body.has-unified-topbar .auth-shell {
    border-radius: 28px;
}

body.has-unified-topbar .feature-card,
body.has-unified-topbar .timeline-card article,
body.has-unified-topbar .contact-highlights article,
body.has-unified-topbar .ticket-summary-card,
body.has-unified-topbar .history-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(7, 10, 20, 0.74);
    border-color: rgba(139, 92, 246, 0.16);
}

body.has-unified-topbar .history-item:hover,
body.has-unified-topbar .ticket-summary-card:hover {
    box-shadow: 0 18px 36px rgba(139, 92, 246, 0.12);
}

body[data-page='home'] .hero-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

body[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(430px, 0.86fr);
    gap: clamp(1.8rem, 3vw, 3rem);
    align-items: center;
}

body[data-page='home'] .hero-copy {
    max-width: 44rem;
}

body[data-page='home'] .home-hero-pill {
    width: fit-content;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.08);
    color: #f4efff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body[data-page='home'] .hero-copy h1 {
    margin: 1.1rem 0 1.25rem;
    max-width: 9.2ch;
    font-family: var(--font-body);
    font-size: clamp(2.95rem, 5.4vw, 5.1rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

body[data-page='home'] .hero-title-accent {
    color: #8b5cf6;
    text-shadow: 0 0 26px rgba(139, 92, 246, 0.26);
}

body[data-page='home'] .hero-lead {
    max-width: 34rem;
    font-size: 1.06rem;
    line-height: 1.75;
}

body[data-page='home'] .hero-actions {
    gap: 0.85rem;
}

body[data-page='home'] .hero-actions .button {
    min-width: 11rem;
}

body[data-page='home'] .hero-actions .button-primary {
    box-shadow: 0 18px 34px rgba(139, 92, 246, 0.28);
}

body[data-page='home'] .hero-visual {
    position: relative;
    min-height: clamp(460px, 46vw, 620px);
    isolation: isolate;
    overflow: visible;
}

body[data-page='home'] .hero-particle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body[data-page='home'] .hero-particle {
    position: absolute;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: rgba(216, 180, 254, 0.9);
    box-shadow: 0 0 14px rgba(216, 180, 254, 0.54), 0 0 30px rgba(139, 92, 246, 0.24);
    animation: heroParticleFloat 8s ease-in-out infinite;
}

body[data-page='home'] .particle-one {
    top: 10%;
    left: 12%;
}

body[data-page='home'] .particle-two {
    top: 18%;
    right: 8%;
    animation-delay: -1.1s;
}

body[data-page='home'] .particle-three {
    top: 42%;
    left: 2%;
    animation-delay: -2s;
}

body[data-page='home'] .particle-four {
    right: 3%;
    bottom: 24%;
    animation-delay: -3.1s;
}

body[data-page='home'] .particle-five {
    left: 26%;
    bottom: 10%;
    animation-delay: -4.3s;
}

body[data-page='home'] .particle-six {
    right: 22%;
    bottom: 8%;
    animation-delay: -5s;
}

body[data-page='home'] .home-dashboard-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    container-type: inline-size;
    container-name: dashboard-preview;
}

body[data-page='home'] .dashboard-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
}

body[data-page='home'] .dashboard-orbit-one {
    width: min(44rem, 95%);
    height: min(24rem, 78%);
    transform: rotate(-10deg);
}

body[data-page='home'] .dashboard-orbit-two {
    width: min(34rem, 76%);
    height: min(18rem, 58%);
    transform: rotate(12deg);
    border-color: rgba(196, 181, 253, 0.14);
}

body[data-page='home'] .dashboard-float {
    position: absolute;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(196, 181, 253, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
        linear-gradient(145deg, rgba(139, 92, 246, 0.72), rgba(76, 29, 149, 0.92));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 16px 36px rgba(0, 0, 0, 0.24);
    animation: heroFloatCard 5.5s ease-in-out infinite;
}

body[data-page='home'] .dashboard-float::before,
body[data-page='home'] .dashboard-float::after {
    content: '';
    position: absolute;
}

body[data-page='home'] .dashboard-float-chat {
    top: 1.5rem;
    right: 5.5rem;
}

body[data-page='home'] .dashboard-float-chat::before {
    inset: 1.2rem 1rem 1.25rem;
    border-radius: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.84);
}

body[data-page='home'] .dashboard-float-chat::after {
    left: 1.68rem;
    bottom: 1.02rem;
    width: 0.82rem;
    height: 0.82rem;
    border-left: 2px solid rgba(255, 255, 255, 0.84);
    border-bottom: 2px solid rgba(255, 255, 255, 0.84);
    transform: skewX(-24deg) rotate(-16deg);
}

body[data-page='home'] .dashboard-float-bot {
    left: 1.3rem;
    bottom: 7rem;
    animation-delay: -1.6s;
}

body[data-page='home'] .dashboard-float-bot::before {
    inset: 1.15rem 1rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

body[data-page='home'] .dashboard-float-bot::after {
    left: 1.62rem;
    top: 1.72rem;
    width: 1.12rem;
    height: 0.24rem;
    border-radius: 999px;
    background: #6d28d9;
    box-shadow: -0.52rem -0.42rem 0 #6d28d9, 0.52rem -0.42rem 0 #6d28d9;
}

body[data-page='home'] .dashboard-float-bolt {
    right: 1.2rem;
    bottom: 3.2rem;
    animation-delay: -0.9s;
}

body[data-page='home'] .dashboard-float-bolt::before {
    left: 1.72rem;
    top: 1.06rem;
    width: 1rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.88);
    clip-path: polygon(46% 0, 100% 0, 68% 43%, 100% 43%, 28% 100%, 48% 56%, 18% 56%);
}

body[data-page='home'] .dashboard-preview-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 55rem);
    min-height: 29rem;
    padding: 1.15rem;
    border-radius: 2rem;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1.35fr) minmax(12rem, 0.95fr);
    gap: 1rem;
    align-items: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 30%),
        rgba(8, 10, 20, 0.92);
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 30px 62px rgba(0, 0, 0, 0.42),
        0 0 46px rgba(139, 92, 246, 0.12);
}

body[data-page='home'] .dashboard-preview-sidebar,
body[data-page='home'] .dashboard-preview-chat,
body[data-page='home'] .dashboard-preview-chart,
body[data-page='home'] .dashboard-preview-kpi {
    border: 1px solid rgba(139, 92, 246, 0.14);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='home'] .dashboard-preview-sidebar {
    display: grid;
    align-content: start;
    gap: 0.62rem;
    padding: 0.72rem 0.48rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.018);
}

body[data-page='home'] .dashboard-preview-logo,
body[data-page='home'] .dashboard-preview-nav {
    display: block;
    border-radius: 1rem;
    position: relative;
}

body[data-page='home'] .dashboard-preview-logo {
    width: 100%;
    height: 2.7rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(196, 181, 253, 0.94), rgba(139, 92, 246, 0.94) 52%, rgba(91, 33, 182, 0.94));
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.24);
}

body[data-page='home'] .dashboard-preview-logo::before,
body[data-page='home'] .dashboard-preview-logo::after,
body[data-page='home'] .dashboard-preview-nav::before,
body[data-page='home'] .dashboard-preview-nav::after {
    content: '';
    position: absolute;
}

body[data-page='home'] .dashboard-preview-logo::before {
    inset: 0.78rem 0.9rem;
    border-radius: 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.86);
}

body[data-page='home'] .dashboard-preview-logo::after {
    left: 50%;
    top: 50%;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: -0.48rem 0 0 rgba(255, 255, 255, 0.92), 0.48rem 0 0 rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .dashboard-preview-nav {
    width: 100%;
    height: 2.45rem;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.022);
    opacity: 0.72;
}

body[data-page='home'] .dashboard-preview-nav.is-active {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12) inset;
    opacity: 1;
}

body[data-page='home'] .dashboard-preview-nav::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    right: calc(100% + 0.38rem);
    transform: translate3d(0.18rem, -50%, 0);
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background: rgba(11, 15, 28, 0.96);
    color: rgba(233, 221, 255, 0.72);
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 2;
}

body[data-page='home'] .dashboard-preview-nav:hover::after {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

body[data-page='home'] .dashboard-preview-nav-glyph {
    position: relative;
    width: 1rem;
    height: 1rem;
    opacity: 0.82;
}

body[data-page='home'] .dashboard-preview-nav.is-active .dashboard-preview-nav-glyph {
    opacity: 1;
}

body[data-page='home'] .dashboard-preview-nav-glyph::before,
body[data-page='home'] .dashboard-preview-nav-glyph::after {
    content: '';
    position: absolute;
}

body[data-page='home'] .dashboard-preview-nav-overview .dashboard-preview-nav-glyph::before {
    left: 50%;
    top: 50%;
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 0.08rem;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow:
        -0.34rem -0.34rem 0 rgba(255, 255, 255, 0.92),
        0.34rem -0.34rem 0 rgba(255, 255, 255, 0.92),
        -0.34rem 0.34rem 0 rgba(255, 255, 255, 0.92),
        0.34rem 0.34rem 0 rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .dashboard-preview-nav-bots .dashboard-preview-nav-glyph::before {
    inset: 0.18rem 0.14rem 0.28rem;
    border-radius: 0.28rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

body[data-page='home'] .dashboard-preview-nav-bots .dashboard-preview-nav-glyph::after {
    left: 0.24rem;
    top: 0.44rem;
    width: 0.14rem;
    height: 0.14rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0.36rem 0 0 rgba(255, 255, 255, 0.92), 0.18rem 0.28rem 0 rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .dashboard-preview-nav-chat .dashboard-preview-nav-glyph::before {
    left: 50%;
    top: 50%;
    width: 0.88rem;
    height: 0.64rem;
    border-radius: 0.26rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -58%);
}

body[data-page='home'] .dashboard-preview-nav-chat .dashboard-preview-nav-glyph::after {
    left: 50%;
    top: 50%;
    width: 0.28rem;
    height: 0.28rem;
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: translate(-15%, 15%) skewX(-18deg) rotate(-45deg);
}

body[data-page='home'] .dashboard-preview-nav-analytics .dashboard-preview-nav-glyph::before {
    left: 50%;
    top: 50%;
    width: 0.94rem;
    height: 0.8rem;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 0.12rem 0.4rem / 0.14rem 0.24rem no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 0.4rem 0.2rem / 0.14rem 0.44rem no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 0.68rem 0.06rem / 0.14rem 0.58rem no-repeat;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.14rem;
}

body[data-page='home'] .dashboard-preview-nav-settings .dashboard-preview-nav-glyph::before {
    left: 50%;
    top: 50%;
    width: 0.88rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 -0.28rem 0 rgba(255, 255, 255, 0.9), 0 0.28rem 0 rgba(255, 255, 255, 0.9);
}

body[data-page='home'] .dashboard-preview-nav-settings .dashboard-preview-nav-glyph::after {
    left: 50%;
    top: 50%;
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-0.38rem, -50%);
    box-shadow:
        0.46rem -0.28rem 0 rgba(255, 255, 255, 0.92),
        0.14rem 0.28rem 0 rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .dashboard-preview-main {
    display: grid;
    gap: 0.95rem;
    min-width: 0;
}

body[data-page='home'] .dashboard-preview-topbar,
body[data-page='home'] .dashboard-preview-chart-head,
body[data-page='home'] .dashboard-preview-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

body[data-page='home'] .dashboard-preview-topbar > div,
body[data-page='home'] .dashboard-preview-chart-head span,
body[data-page='home'] .dashboard-preview-chat-head span {
    min-width: 0;
}

body[data-page='home'] .dashboard-preview-topbar strong {
    display: block;
    font-size: 1.15rem;
}

body[data-page='home'] .dashboard-preview-topbar span,
body[data-page='home'] .dashboard-preview-chart-head span:last-child {
    color: var(--text-soft);
    font-size: 0.84rem;
}

body[data-page='home'] .dashboard-preview-pill,
body[data-page='home'] .dashboard-preview-chat-head em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: rgba(139, 92, 246, 0.14);
    color: #e9ddff;
    font-size: 0.74rem;
    font-style: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

body[data-page='home'] .dashboard-preview-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

body[data-page='home'] .dashboard-preview-kpi {
    padding: 0.85rem 0.9rem;
    border-radius: 1.2rem;
}

body[data-page='home'] .dashboard-preview-kpi span,
body[data-page='home'] .dashboard-preview-kpi small {
    display: block;
}

body[data-page='home'] .dashboard-preview-kpi span {
    color: var(--text-soft);
    font-size: 0.75rem;
    line-height: 1.35;
}

body[data-page='home'] .dashboard-preview-kpi strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.5rem;
    line-height: 1;
}

body[data-page='home'] .dashboard-preview-kpi small {
    margin-top: 0.45rem;
    color: #5ee7a1;
    font-size: 0.72rem;
    font-weight: 700;
}

body[data-page='home'] .dashboard-preview-kpi:nth-child(4) small {
    color: #ff7e98;
}

body[data-page='home'] .dashboard-preview-chart {
    padding: 1rem;
    border-radius: 1.5rem;
}

body[data-page='home'] .dashboard-preview-chart svg {
    width: 100%;
    height: 8.5rem;
    display: block;
    margin-top: 0.55rem;
}

body[data-page='home'] .dashboard-preview-chat {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.5rem;
}

body[data-page='home'] .dashboard-preview-chat-head span {
    font-weight: 700;
}

body[data-page='home'] .dashboard-preview-message {
    max-width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body[data-page='home'] .dashboard-preview-message.is-assistant {
    background: rgba(255, 255, 255, 0.05);
}

body[data-page='home'] .dashboard-preview-message.is-user {
    justify-self: end;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.94), rgba(99, 102, 241, 0.92));
    color: #ffffff;
}

body[data-page='home'] .dashboard-preview-dots {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.3rem 0 0.1rem;
}

body[data-page='home'] .dashboard-preview-dots span {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 999px;
    background: rgba(196, 181, 253, 0.92);
    animation: pulseDot 1.2s infinite ease-in-out;
}

body[data-page='home'] .dashboard-preview-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

body[data-page='home'] .dashboard-preview-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

body[data-page='home'] .dashboard-preview-input {
    margin-top: auto;
    min-height: 2.95rem;
    display: flex;
    align-items: center;
    padding: 0.78rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.82rem;
}

@container dashboard-preview (max-width: 46rem) {
    body[data-page='home'] .dashboard-preview-shell {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    body[data-page='home'] .dashboard-preview-chat {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        align-items: start;
    }

    body[data-page='home'] .dashboard-preview-chat-head,
    body[data-page='home'] .dashboard-preview-input {
        grid-column: 1 / -1;
    }
}

@container dashboard-preview (max-width: 36rem) {
    body[data-page='home'] .dashboard-preview-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container dashboard-preview (max-width: 28rem) {
    body[data-page='home'] .dashboard-preview-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1rem;
    }

    body[data-page='home'] .dashboard-preview-sidebar {
        grid-auto-flow: column;
        grid-auto-columns: minmax(2.8rem, 1fr);
        overflow-x: auto;
    }

    body[data-page='home'] .dashboard-preview-nav::after {
        display: none;
    }

    body[data-page='home'] .dashboard-preview-kpis,
    body[data-page='home'] .dashboard-preview-chat {
        grid-template-columns: 1fr;
    }
}

body[data-page='home'] .stat-strip {
    margin-top: 1.9rem;
    gap: 1rem;
}

body[data-page='home'] .stat-card {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.3rem;
    border-radius: 1.65rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(7, 10, 20, 0.8);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

body[data-page='home'] .stat-card::before {
    content: none !important;
    display: none !important;
}

body[data-page='home'] .stat-card > div {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

body[data-page='home'] .stat-card > .stat-card-icon {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.1rem;
    margin: 0;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.34), rgba(76, 29, 149, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 28px rgba(0, 0, 0, 0.18);
    color: #f8f5ff;
    font-size: 1.3rem;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.28);
}

body[data-page='home'] .stat-card > .stat-card-icon::before,
body[data-page='home'] .stat-card > .stat-card-icon::after {
    content: none;
}

body[data-page='home'] .stat-card > div {
    grid-column: 2;
}

body[data-page='home'] .stat-card-modules > .stat-card-icon {
    font-size: 1.28rem;
}

body[data-page='home'] .stat-card-conversations > .stat-card-icon {
    font-size: 1.24rem;
}

body[data-page='home'] .stat-card-pipeline > .stat-card-icon {
    font-size: 1.2rem;
}

body[data-page='home'] .stat-card strong {
    margin-bottom: 0.22rem;
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
}

body[data-page='home'] #solutions .feature-grid {
    gap: 1rem;
}

body[data-page='home'] #solutions .feature-card {
    position: relative;
    min-height: 15rem;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: 1.45rem 1.45rem 1.45rem 5.4rem;
    border-radius: 1.75rem;
}

body[data-page='home'] #solutions .feature-card::before,
body[data-page='home'] #solutions .feature-card::after {
    content: '';
    position: absolute;
}

body[data-page='home'] #solutions .feature-card::before {
    top: 1.35rem;
    left: 1.35rem;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.34), rgba(76, 29, 149, 0.86));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

body[data-page='home'] #solutions .feature-card::after {
    top: 2.05rem;
    left: 2.05rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.45rem;
    border: 2px solid rgba(255, 255, 255, 0.86);
}

body[data-page='home'] #solutions .feature-card > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

body[data-page='home'] #solutions .feature-card h3 {
    line-height: 1.35;
}

body[data-page='home'] #solutions .feature-card p {
    line-height: 1.7;
}

body[data-page='home'] #solutions .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px rgba(139, 92, 246, 0.16);
}

body[data-page='home'] .split-section {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.6rem);
}

body[data-page='home'] .split-section .section-copy {
    max-width: 40rem;
}

body[data-page='home'] .split-section .section-copy h2 {
    max-width: 10.5ch;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
}

body[data-page='home'] .timeline-card {
    padding: 1.25rem;
    border-radius: 2rem;
    gap: 0.9rem;
}

body[data-page='home'] .timeline-card article {
    padding: 1rem;
    border-radius: 1.35rem;
}

body[data-page='home'] #resources .demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.25rem;
    align-items: stretch;
}

body[data-page='home'] .workspace-preview,
body[data-page='home'] #resources .demo-grid > .glass-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 2rem;
}

body[data-page='home'] .workspace-preview {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 30%),
        rgba(8, 10, 20, 0.9);
}

body[data-page='home'] .workspace-preview::before,
body[data-page='home'] #resources .demo-grid > .glass-card:not(.workspace-preview)::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.5), rgba(99, 102, 241, 0));
    opacity: 0.9;
    pointer-events: none;
}

body[data-page='home'] .workspace-preview::after {
    content: '';
    position: absolute;
    right: -3.5rem;
    bottom: -4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
    pointer-events: none;
}

body[data-page='home'] #resources .demo-grid > .glass-card:not(.workspace-preview) {
    display: grid;
    align-content: start;
    gap: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 34%),
        rgba(8, 10, 20, 0.88);
}

body[data-page='home'] .workspace-header {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

body[data-page='home'] .workspace-header > div {
    min-width: 0;
    flex: 1 1 16rem;
}

body[data-page='home'] .workspace-header .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.36rem 0.78rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='home'] .workspace-header .status-pill::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #79f2b4;
    box-shadow: 0 0 0 0.26rem rgba(121, 242, 180, 0.12);
}

body[data-page='home'] .preview-thread {
    min-height: 20rem;
    padding: 1.35rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(139, 92, 246, 0.14);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), transparent 34%),
        rgba(8, 12, 24, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='home'] .preview-thread .chat-bubble {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;
    animation-duration: 0.42s;
    max-width: min(100%, 42rem);
    overflow-wrap: anywhere;
}

body[data-page='home'] .preview-thread .chat-bubble-copy {
    display: block;
    min-width: 0;
}

body[data-page='home'] .preview-thread .bubble-user {
    align-self: flex-end;
    margin-left: auto;
}

body[data-page='home'] .preview-thread .chat-bubble-avatar {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex: 0 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(5, 9, 24, 0.18);
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-assistant {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(99, 102, 241, 0.82));
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-assistant::before {
    content: '';
    position: absolute;
    inset: 0.48rem 0.44rem 0.62rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.38rem;
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-assistant::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.82rem;
    width: 0.16rem;
    height: 0.16rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0.44rem 0 0 rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-user {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-user::before {
    content: '';
    position: absolute;
    left: 0.67rem;
    top: 0.42rem;
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .preview-thread .chat-bubble-avatar.is-user::after {
    content: '';
    position: absolute;
    left: 0.45rem;
    bottom: 0.4rem;
    width: 1.08rem;
    height: 0.62rem;
    border-radius: 0.7rem 0.7rem 0.42rem 0.42rem;
    background: rgba(255, 255, 255, 0.92);
}

body[data-page='home'] .preview-thread .chat-bubble:nth-child(2) {
    animation-delay: 0.08s;
}

body[data-page='home'] .preview-thread .chat-bubble:nth-child(3) {
    animation-delay: 0.16s;
}

body[data-page='home'] .preview-thread .typing-bubble {
    grid-template-columns: auto auto;
    align-items: center;
    width: fit-content;
    max-width: none;
    margin-top: auto;
    padding-right: 1rem;
}

body[data-page='home'] .preview-thread::after {
    content: none;
}

body[data-page='home'] #resources .section-copy.compact {
    gap: 0.8rem;
}

body[data-page='home'] #resources .section-copy.compact .eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.36rem 0.78rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: rgba(236, 229, 255, 0.78);
}

body[data-page='home'] #resources .section-copy.compact h3 {
    max-width: 16ch;
    line-height: 1.25;
}

body[data-page='home'] #resources .check-list {
    margin: 0.1rem 0 0;
    padding: 0;
    list-style: none;
    gap: 0.85rem;
}

body[data-page='home'] #resources .check-list li {
    position: relative;
    padding: 0.08rem 0 0.08rem 1.95rem;
    line-height: 1.5;
}

body[data-page='home'] #resources .check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(99, 102, 241, 0.16));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page='home'] #resources .check-list li::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.63rem;
    width: 0.34rem;
    height: 0.2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    transform: rotate(-45deg);
}

body[data-page='home'] #resources .button-primary.button-block {
    margin-top: auto;
    min-height: 3.25rem;
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.22), 0 0 24px rgba(139, 92, 246, 0.1);
}

body[data-page='home'] .cta-card {
    align-items: center;
    padding: clamp(1.8rem, 3vw, 2.4rem);
    border-radius: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 36%),
        rgba(7, 10, 20, 0.9);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28), 0 0 42px rgba(139, 92, 246, 0.1);
}

body[data-page='home'] .cta-card .button-primary {
    box-shadow: 0 20px 36px rgba(139, 92, 246, 0.26);
}

body[data-page='contact'] .form-shell,
body[data-page='login'] .auth-shell,
body[data-page='register'] .auth-shell,
body[data-page='forgot-password'] .auth-shell,
body[data-page='reset-password'] .auth-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 30%),
        rgba(8, 10, 20, 0.82);
}

body[data-page='contact'] .contact-highlights article,
body[data-page='contact'] .ticket-summary-card {
    border-radius: 1.35rem;
}

body[data-page='contact'] .ticket-summary-head,
body[data-page='contact'] .ticket-summary-meta {
    align-items: center;
}

body[data-page='contact'] .split-section {
    grid-template-columns: minmax(0, 1.28fr) minmax(390px, 440px);
    gap: clamp(1.6rem, 3vw, 2.8rem);
    align-items: start;
}

body[data-page='contact'] .section.split-section {
    max-width: 1220px;
    padding-top: clamp(1rem, 2.4vw, 1.8rem);
    padding-bottom: clamp(1.2rem, 2.4vw, 2rem);
}

body[data-page='contact'] .split-section > .section-copy {
    position: relative;
    align-content: start;
    gap: clamp(0.85rem, 1.4vw, 1.2rem);
    max-width: none;
    padding: clamp(0.95rem, 2vw, 1.3rem) 0 0;
}

body[data-page='contact'] .split-section > .section-copy::before {
    content: '';
    position: absolute;
    inset: 4.2rem auto auto -0.9rem;
    width: clamp(3.4rem, 7vw, 4.8rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0));
    opacity: 0.95;
}

body[data-page='contact'] .split-section > .section-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(17, 24, 39, 0.22));
    box-shadow: 0 18px 36px rgba(7, 10, 20, 0.18);
}

body[data-page='contact'] .split-section > .section-copy .eyebrow::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.3rem rgba(139, 92, 246, 0.14);
}

body[data-page='contact'] .split-section > .section-copy h1 {
    max-width: 14ch;
    margin-top: 0.3rem;
    font-size: clamp(2.55rem, 4.35vw, 3.95rem);
    line-height: 0.99;
    letter-spacing: -0.04em;
}

body[data-page='contact'] .split-section > .section-copy > p {
    max-width: 54ch;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.72;
    color: rgba(229, 231, 235, 0.76);
}

body[data-page='contact'] .contact-highlights {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: none;
    margin-top: 0.25rem;
    padding: 0.95rem;
    border-radius: 1.7rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(14, 18, 30, 0.98), rgba(22, 28, 46, 0.86));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='contact'] .contact-highlights::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.045) 50%, transparent 76%),
        radial-gradient(circle at 10% 14%, rgba(139, 92, 246, 0.12), transparent 28%);
    opacity: 0.7;
}

body[data-page='contact'] .contact-highlights article {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
        rgba(7, 11, 21, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body[data-page='contact'] .contact-highlights article:hover {
    transform: translateY(-0.2rem);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body[data-page='contact'] .contact-highlights article strong {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    font-size: 0.94rem;
    color: #f8fafc;
}

body[data-page='contact'] .contact-highlights article strong::before {
    content: '';
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(99, 102, 241, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page='contact'] .contact-highlights article p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(209, 213, 219, 0.78);
    line-height: 1.6;
}

body[data-page='contact'] .form-shell {
    position: relative;
    overflow: hidden;
    align-self: start;
    min-height: 0;
    border-radius: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(7, 10, 20, 0.95), rgba(20, 25, 39, 0.86));
    box-shadow:
        0 32px 72px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='contact'] .form-shell .section-copy.compact {
    gap: 0.8rem;
}

body[data-page='contact'] .form-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.9), rgba(99, 102, 241, 0));
}

body[data-page='contact'] .form-shell .section-copy.compact .eyebrow {
    opacity: 0.92;
    letter-spacing: 0.12em;
}

body[data-page='contact'] .form-shell .section-copy.compact h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.08;
}

body[data-page='contact'] .form-shell .section-copy.compact p {
    max-width: 34ch;
}

body[data-page='contact'] .form-shell .form-stack {
    gap: 0.9rem;
}

body[data-page='contact'] .form-shell label span {
    color: rgba(226, 232, 240, 0.76);
    letter-spacing: 0.01em;
}

body[data-page='contact'] .form-shell :is(input[type='text'], textarea) {
    border-color: rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(14, 18, 30, 0.82);
}

body[data-page='contact'] .form-shell textarea {
    min-height: 8.6rem;
    line-height: 1.64;
}

body[data-page='contact'] .form-shell .button-primary.button-block {
    min-height: 3.45rem;
    border-radius: 1.05rem;
    box-shadow: 0 20px 38px rgba(99, 102, 241, 0.24), 0 0 28px rgba(139, 92, 246, 0.12);
}

body[data-page='contact'] .form-shell .captcha-wrap {
    gap: 0.55rem;
}

body[data-page='contact'] .form-shell .microcopy {
    font-size: 0.9rem;
    line-height: 1.55;
}

body[data-page='contact'] .page-intro {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.35rem;
    padding: clamp(1.2rem, 2.4vw, 1.7rem);
    border-radius: 1.9rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 35%),
        rgba(10, 14, 24, 0.88);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.24);
}

body[data-page='contact'] .page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.04) 50%, transparent 80%),
        radial-gradient(circle at 12% 22%, rgba(139, 92, 246, 0.1), transparent 32%);
    opacity: 0.72;
}

body[data-page='contact'] .page-intro > div:first-child {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    max-width: 50rem;
}

body[data-page='contact'] .page-intro h2 {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    line-height: 1.04;
}

body[data-page='contact'] .page-intro p {
    max-width: 60ch;
    margin: 0;
    line-height: 1.72;
}

body[data-page='contact'] .page-intro .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(17, 24, 39, 0.22));
}

body[data-page='contact'] .page-intro .eyebrow::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.26rem rgba(139, 92, 246, 0.12);
}

body[data-page='contact'] .filter-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

body[data-page='contact'] .filter-pill {
    min-height: 3rem;
    padding-inline: 1.05rem;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(12, 17, 30, 0.7);
}

body[data-page='contact'] .filter-pill:hover,
body[data-page='contact'] .filter-pill.is-active {
    transform: translateY(-0.08rem);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.16);
}

body[data-page='contact'] .ticket-console-grid {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 36%),
        rgba(8, 12, 22, 0.84);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='contact'] .ticket-console-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.032) 50%, transparent 78%),
        radial-gradient(circle at 8% 18%, rgba(139, 92, 246, 0.08), transparent 24%);
    opacity: 0.72;
}

body[data-page='contact'] .ticket-list-pane,
body[data-page='contact'] .ticket-conversation-panel {
    position: relative;
    z-index: 1;
}

body[data-page='contact'] .ticket-list-pane {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    min-width: 0;
}

body[data-page='contact'] .ticket-list {
    align-content: start;
    max-height: clamp(26rem, 62vh, 42rem);
    padding-right: 0.15rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

body[data-page='contact'] .ticket-list-header {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.25rem;
    border-radius: 1.55rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
        rgba(10, 14, 24, 0.86);
}

body[data-page='contact'] .ticket-list-header::before,
body[data-page='contact'] .ticket-conversation-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.88), rgba(99, 102, 241, 0));
}

body[data-page='contact'] .ticket-list-header strong {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: #f8fafc;
}

body[data-page='contact'] .ticket-list-header strong::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.35rem rgba(139, 92, 246, 0.1);
}

body[data-page='contact'] .ticket-list-header p {
    max-width: 25ch;
    line-height: 1.62;
}

body[data-page='contact'] .ticket-summary-card {
    position: relative;
    overflow: hidden;
    padding: 1.12rem 1.14rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 22, 0.8);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body[data-page='contact'] .ticket-summary-card::before {
    content: '';
    position: absolute;
    inset: 1rem auto 1rem 0;
    width: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    opacity: 0;
    transform: scaleY(0.35);
    transform-origin: center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body[data-page='contact'] .ticket-summary-card:hover {
    transform: translateY(-0.16rem);
    border-color: rgba(139, 92, 246, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body[data-page='contact'] .ticket-summary-card:hover::before,
body[data-page='contact'] .ticket-summary-card.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

body[data-page='contact'] .ticket-summary-card.is-active {
    border-color: rgba(139, 92, 246, 0.22);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.016)),
        rgba(11, 16, 29, 0.92);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(139, 92, 246, 0.08);
}

body[data-page='contact'] .ticket-summary-head > div {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

body[data-page='contact'] .ticket-summary-head strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.34;
    color: #f8fafc;
}

body[data-page='contact'] .ticket-summary-card p {
    font-size: 0.91rem;
    line-height: 1.58;
}

body[data-page='contact'] .ticket-summary-head .status-pill {
    flex: 0 0 auto;
}

body[data-page='contact'] .ticket-summary-meta {
    padding-top: 0.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-page='contact'] .ticket-list > .empty-state {
    min-height: 8.5rem;
    padding: 1.2rem;
    border: 1px dashed rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 22, 0.68);
    display: flex;
    align-items: center;
}

body[data-page='contact'] .ticket-list > .empty-state p {
    margin: 0;
    line-height: 1.68;
    color: rgba(209, 213, 219, 0.8);
}

body[data-page='contact'] .ticket-conversation-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1.18rem;
    border-radius: 1.9rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 36%),
        rgba(9, 13, 24, 0.9);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.24);
}

body[data-page='contact'] .ticket-panel-head {
    padding: 0.1rem 0.05rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page='contact'] .ticket-panel-head > div {
    display: grid;
    gap: 0.36rem;
}

body[data-page='contact'] .ticket-panel-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.46rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(17, 24, 39, 0.18));
}

body[data-page='contact'] .ticket-panel-head .eyebrow::before {
    content: '';
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.22rem rgba(139, 92, 246, 0.1);
}

body[data-page='contact'] .ticket-panel-head h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin-top: 0;
}

body[data-page='contact'] .ticket-panel-head p {
    font-size: 0.92rem;
    line-height: 1.6;
}

body[data-page='contact'] .ticket-thread-shell,
body[data-page='contact'] .ticket-security-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 22, 0.72);
    border-color: rgba(255, 255, 255, 0.07);
}

body[data-page='contact'] .ticket-thread-shell {
    min-height: clamp(24rem, 54vh, 34rem);
    max-height: clamp(26rem, 62vh, 40rem);
    padding: 1rem;
    border-radius: 1.6rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

body[data-page='contact'] .ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
}

body[data-page='contact'] .ticket-thread::-webkit-scrollbar,
body[data-page='contact'] .ticket-list::-webkit-scrollbar {
    width: 0.5rem;
}

body[data-page='contact'] .ticket-thread::-webkit-scrollbar-thumb,
body[data-page='contact'] .ticket-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(99, 102, 241, 0.32));
}

body[data-page='contact'] .ticket-thread::-webkit-scrollbar-track,
body[data-page='contact'] .ticket-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

body[data-page='contact'] .ticket-message-bubble {
    max-width: min(80%, 39rem);
}

body[data-page='contact'] .ticket-message-bubble .chat-bubble-shell {
    padding: 1rem 1.05rem;
    border-radius: 1.35rem;
}

body[data-page='contact'] .ticket-message-bubble.bubble-admin {
    margin-left: auto;
}

body[data-page='contact'] .ticket-message-bubble.bubble-admin .chat-bubble-shell {
    border-top-right-radius: 0.6rem;
}

body[data-page='contact'] .ticket-message-bubble.bubble-customer {
    margin-right: auto;
}

body[data-page='contact'] .ticket-message-bubble.bubble-customer .chat-bubble-shell {
    border-top-left-radius: 0.6rem;
}

body[data-page='contact'] .ticket-message-meta {
    margin-bottom: 0.62rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

body[data-page='contact'] .ticket-message-meta strong {
    font-size: 0.84rem;
    font-weight: 600;
}

body[data-page='contact'] .ticket-message-bubble .bubble-content {
    line-height: 1.7;
    word-break: break-word;
}

body[data-page='contact'] .ticket-reply-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.1rem;
    border-top-color: rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

body[data-page='contact'] .ticket-reply-form textarea {
    min-height: 6.75rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        rgba(11, 15, 27, 0.82);
}

body[data-page='contact'] .ticket-reply-form .composer-actions {
    justify-content: space-between;
    gap: 0.75rem;
}

body[data-page='contact'] .ticket-reply-form .microcopy {
    max-width: 34ch;
    font-size: 0.89rem;
    line-height: 1.58;
}

body[data-page='contact'] .ticket-reply-form .button-primary {
    min-width: 11rem;
    min-height: 3.1rem;
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.22), 0 0 24px rgba(139, 92, 246, 0.1);
}

body[data-page='contact'] .empty-state {
    padding: 1.6rem;
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014)),
        rgba(9, 13, 23, 0.76);
}

body.ticket-access-page .ticket-access-section {
    max-width: 1180px;
    padding-top: clamp(2rem, 4vw, 3.2rem);
}

body.ticket-access-page .ticket-access-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(1.45rem, 2.8vw, 2rem);
    border-radius: 2.15rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(9, 13, 24, 0.95), rgba(23, 29, 47, 0.88));
    box-shadow:
        0 32px 74px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.ticket-access-page .ticket-access-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.9), rgba(99, 102, 241, 0));
}

body.ticket-access-page .ticket-access-hero {
    display: grid;
    gap: 1rem;
    padding-bottom: 0.45rem;
}

body.ticket-access-page .ticket-access-copy {
    gap: 0.8rem;
}

body.ticket-access-page .ticket-access-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

body.ticket-access-page .ticket-access-headline-row .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(17, 24, 39, 0.22));
}

body.ticket-access-page .ticket-access-headline-row .eyebrow::before {
    content: '';
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.28rem rgba(139, 92, 246, 0.14);
}

body.ticket-access-page .ticket-access-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    color: rgba(196, 181, 253, 0.95);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.ticket-access-page .ticket-access-kicker::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.26rem rgba(139, 92, 246, 0.12);
}

body.ticket-access-page .ticket-access-shell h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.7rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

body.ticket-access-page .ticket-access-lead {
    max-width: 50rem;
    margin: 0;
    color: rgba(229, 231, 235, 0.78);
    font-size: 1.04rem;
    line-height: 1.85;
}

body.ticket-access-page .ticket-access-summary {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.35rem;
    padding: 1.15rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 42%),
        rgba(10, 14, 24, 0.78);
}

body.ticket-access-page .ticket-access-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.04) 50%, transparent 76%),
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.1), transparent 28%);
    opacity: 0.72;
}

body.ticket-access-page .ticket-access-summary article {
    position: relative;
    z-index: 1;
    min-height: 8.4rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 22, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.ticket-access-page .ticket-access-summary article strong {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
    color: #f8fafc;
}

body.ticket-access-page .ticket-access-summary article strong::before {
    content: '';
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(99, 102, 241, 0.12));
}

body.ticket-access-page .ticket-access-summary article p {
    margin: 0;
    color: rgba(209, 213, 219, 0.78);
    line-height: 1.72;
    word-break: break-word;
}

body.ticket-access-page .ticket-access-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    margin-top: 0.25rem;
    padding: 1.18rem;
    border-radius: 1.9rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 36%),
        rgba(9, 13, 24, 0.9);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.24);
}

body.ticket-access-page .ticket-access-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.88), rgba(99, 102, 241, 0));
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head {
    padding: 0.1rem 0.05rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head > div {
    display: grid;
    gap: 0.36rem;
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.46rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(17, 24, 39, 0.18));
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head .eyebrow::before {
    content: '';
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.22rem rgba(139, 92, 246, 0.1);
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin-top: 0;
}

body.ticket-access-page .ticket-access-panel .ticket-panel-head p {
    font-size: 0.92rem;
    line-height: 1.6;
}

body.ticket-access-page .ticket-access-panel .ticket-thread-shell {
    min-height: clamp(24rem, 56vh, 36rem);
    max-height: clamp(26rem, 64vh, 44rem);
    padding: 1rem;
    border-radius: 1.6rem;
    border-color: rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 22, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

body.ticket-access-page .ticket-access-panel .ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
}

body.ticket-access-page .ticket-access-panel .ticket-thread::-webkit-scrollbar {
    width: 0.5rem;
}

body.ticket-access-page .ticket-access-panel .ticket-thread::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(99, 102, 241, 0.32));
}

body.ticket-access-page .ticket-access-panel .ticket-thread::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble {
    max-width: min(78%, 41rem);
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble .chat-bubble-shell {
    padding: 1rem 1.05rem;
    border-radius: 1.35rem;
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble.bubble-admin {
    margin-left: auto;
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble.bubble-admin .chat-bubble-shell {
    border-top-right-radius: 0.6rem;
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble.bubble-customer {
    margin-right: auto;
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble.bubble-customer .chat-bubble-shell {
    border-top-left-radius: 0.6rem;
}

body.ticket-access-page .ticket-access-panel .ticket-message-meta {
    margin-bottom: 0.62rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

body.ticket-access-page .ticket-access-panel .ticket-message-meta strong {
    font-size: 0.84rem;
    font-weight: 600;
}

body.ticket-access-page .ticket-access-panel .ticket-message-bubble .bubble-content {
    line-height: 1.7;
    word-break: break-word;
}

body.ticket-access-page .ticket-access-panel .ticket-reply-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.ticket-access-page .ticket-access-panel .ticket-reply-form textarea {
    min-height: 7rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        rgba(11, 15, 27, 0.82);
}

body.ticket-access-page .ticket-access-panel .ticket-reply-form .composer-actions {
    justify-content: space-between;
    gap: 0.75rem;
}

body.ticket-access-page .ticket-access-panel .ticket-reply-form .microcopy {
    max-width: 34ch;
    font-size: 0.89rem;
    line-height: 1.58;
}

body.ticket-access-page .ticket-access-panel .ticket-reply-form .button-primary {
    min-width: 11rem;
    min-height: 3.1rem;
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.22), 0 0 24px rgba(139, 92, 246, 0.1);
}

body.ticket-access-page .ticket-access-empty {
    margin-top: 0.35rem;
    padding: 1.45rem 1.5rem;
    border-radius: 1.7rem;
    border: 1px solid rgba(139, 92, 246, 0.14);
}

body.ticket-access-page .ticket-access-actions {
    margin-top: 1.2rem;
}

body.ticket-access-page .ticket-access-actions .button {
    min-height: 3.25rem;
    border-radius: 1rem;
    padding-inline: 1.25rem;
}

body.ticket-access-page .ticket-access-actions .button-primary {
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.24), 0 0 26px rgba(139, 92, 246, 0.1);
}

body.ticket-access-page .ticket-access-meta {
    max-width: 46rem;
    margin: 0.95rem 0 0;
    color: rgba(156, 163, 175, 0.86);
    line-height: 1.74;
}

body[data-page='ticket_success'] .ticket-success-section {
    max-width: 1120px;
    padding-top: clamp(2rem, 4vw, 3.25rem);
}

body[data-page='ticket_success'] .ticket-success-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(1.45rem, 2.8vw, 2rem);
    border-radius: 2.15rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(9, 13, 24, 0.95), rgba(23, 29, 47, 0.88));
    box-shadow:
        0 32px 74px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='ticket_success'] .ticket-success-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(167, 139, 250, 0.9), rgba(99, 102, 241, 0));
}

body[data-page='ticket_success'] .ticket-success-hero {
    display: grid;
    gap: 1rem;
    padding-bottom: 0.45rem;
}

body[data-page='ticket_success'] .ticket-success-copy {
    gap: 0.8rem;
}

body[data-page='ticket_success'] .ticket-success-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

body[data-page='ticket_success'] .ticket-success-headline-row .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(17, 24, 39, 0.22));
}

body[data-page='ticket_success'] .ticket-success-headline-row .eyebrow::before {
    content: '';
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.28rem rgba(139, 92, 246, 0.14);
}

body[data-page='ticket_success'] .ticket-success-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    color: rgba(196, 181, 253, 0.95);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body[data-page='ticket_success'] .ticket-success-kicker::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(99, 102, 241, 0.95));
    box-shadow: 0 0 0 0.26rem rgba(139, 92, 246, 0.12);
}

body[data-page='ticket_success'] .ticket-success-shell h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.7rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

body[data-page='ticket_success'] .ticket-success-lead {
    max-width: 48rem;
    margin: 0;
    color: rgba(229, 231, 235, 0.78);
    font-size: 1.04rem;
    line-height: 1.85;
}

body[data-page='ticket_success'] .ticket-success-summary {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.45rem;
    padding: 1.15rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 42%),
        rgba(10, 14, 24, 0.78);
}

body[data-page='ticket_success'] .ticket-success-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.04) 50%, transparent 76%),
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.1), transparent 28%);
    opacity: 0.72;
}

body[data-page='ticket_success'] .ticket-success-summary article {
    position: relative;
    z-index: 1;
    min-height: 8.4rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 22, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page='ticket_success'] .ticket-success-summary article strong {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
    color: #f8fafc;
}

body[data-page='ticket_success'] .ticket-success-summary article strong::before {
    content: '';
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(99, 102, 241, 0.12));
}

body[data-page='ticket_success'] .ticket-success-summary article p {
    margin: 0;
    color: rgba(209, 213, 219, 0.78);
    line-height: 1.72;
    word-break: break-word;
}

body[data-page='ticket_success'] .ticket-success-actions {
    margin-top: 1.25rem;
}

body[data-page='ticket_success'] .ticket-success-actions .button {
    min-height: 3.25rem;
    border-radius: 1rem;
    padding-inline: 1.25rem;
}

body[data-page='ticket_success'] .ticket-success-actions .button-primary {
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.24), 0 0 26px rgba(139, 92, 246, 0.1);
}

body[data-page='ticket_success'] .ticket-success-meta {
    max-width: 44rem;
    margin: 0.95rem 0 0;
    color: rgba(156, 163, 175, 0.86);
    line-height: 1.74;
}

@media (max-width: 1180px) {
    body[data-page='contact'] .split-section {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
        gap: 1.8rem;
    }

    body[data-page='contact'] .split-section > .section-copy h1 {
        max-width: 13.6ch;
        font-size: clamp(2.45rem, 7vw, 3.65rem);
    }

    body[data-page='contact'] .contact-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page='contact'] .contact-highlights article:last-child {
        grid-column: 1 / -1;
    }

    body[data-page='contact'] .page-intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body[data-page='contact'] .filter-pills {
        justify-content: flex-start;
    }

    body[data-page='contact'] .ticket-console-grid {
        grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    }

    body.ticket-access-page .ticket-access-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page='ticket_success'] .ticket-success-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    body[data-page='contact'] .split-section {
        gap: 1.35rem;
    }

    body[data-page='contact'] .split-section > .section-copy {
        max-width: none;
        padding-top: 0;
    }

    body[data-page='contact'] .split-section > .section-copy::before {
        inset: 4rem auto auto 0;
        width: 4rem;
    }

    body[data-page='contact'] .contact-highlights {
        max-width: none;
        grid-template-columns: 1fr;
    }

    body[data-page='contact'] .contact-highlights article:last-child {
        grid-column: auto;
    }

    body[data-page='contact'] .ticket-console-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='contact'] .ticket-list {
        max-height: none;
        overflow: visible;
    }

    body[data-page='contact'] .ticket-thread-shell {
        max-height: none;
    }

    body[data-page='contact'] .ticket-message-bubble {
        max-width: min(92%, 100%);
    }

    body.ticket-access-page .ticket-access-panel .ticket-thread-shell {
        max-height: none;
    }

    body.ticket-access-page .ticket-access-panel .ticket-message-bubble {
        max-width: min(92%, 100%);
    }

    body[data-page='ticket_success'] .ticket-success-shell h1 {
        max-width: 13ch;
        font-size: clamp(2.35rem, 8vw, 3.45rem);
    }
}

@media (max-width: 720px) {
    body[data-page='contact'] .split-section > .section-copy h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
        letter-spacing: -0.03em;
    }

    body[data-page='contact'] :is(.contact-highlights, .form-shell, .page-intro, .ticket-conversation-panel) {
        border-radius: 1.5rem;
    }

    body[data-page='contact'] .contact-highlights article {
        padding: 1.05rem 1rem 1rem;
    }

    body[data-page='contact'] .page-intro,
    body[data-page='contact'] .ticket-console-grid {
        padding: 0.95rem;
    }

    body[data-page='contact'] .ticket-list-header,
    body[data-page='contact'] .ticket-conversation-panel {
        border-radius: 1.4rem;
    }

    body[data-page='contact'] .ticket-thread-shell {
        min-height: 22rem;
        padding: 0.85rem;
        border-radius: 1.3rem;
    }

    body[data-page='contact'] .ticket-message-bubble {
        max-width: 100%;
    }

    body[data-page='contact'] .ticket-reply-form .composer-actions {
        align-items: stretch;
    }

    body[data-page='contact'] .ticket-reply-form .button-primary {
        width: 100%;
        min-width: 0;
    }

    body.ticket-access-page .ticket-access-shell {
        padding: 1.2rem;
        border-radius: 1.55rem;
    }

    body.ticket-access-page .ticket-access-shell h1 {
        font-size: clamp(2.05rem, 11vw, 2.85rem);
    }

    body.ticket-access-page .ticket-access-summary {
        grid-template-columns: 1fr;
        padding: 0.95rem;
        border-radius: 1.4rem;
    }

    body.ticket-access-page .ticket-access-summary article {
        min-height: 0;
        padding: 1rem;
    }

    body.ticket-access-page .ticket-access-panel {
        padding: 0.95rem;
        border-radius: 1.4rem;
    }

    body.ticket-access-page .ticket-access-panel .ticket-thread-shell {
        min-height: 22rem;
        padding: 0.85rem;
        border-radius: 1.3rem;
    }

    body.ticket-access-page .ticket-access-panel .ticket-message-bubble {
        max-width: 100%;
    }

    body.ticket-access-page .ticket-access-panel .ticket-reply-form .composer-actions,
    body.ticket-access-page .ticket-access-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.ticket-access-page .ticket-access-panel .ticket-reply-form .button-primary,
    body.ticket-access-page .ticket-access-actions .button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    body[data-page='ticket_success'] .ticket-success-shell {
        padding: 1.2rem;
        border-radius: 1.55rem;
    }

    body[data-page='ticket_success'] .ticket-success-shell h1 {
        font-size: clamp(2.05rem, 11vw, 2.85rem);
    }

    body[data-page='ticket_success'] .ticket-success-summary {
        grid-template-columns: 1fr;
        padding: 0.95rem;
        border-radius: 1.4rem;
    }

    body[data-page='ticket_success'] .ticket-success-summary article {
        min-height: 0;
        padding: 1rem;
    }

    body[data-page='ticket_success'] .ticket-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page='ticket_success'] .ticket-success-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@keyframes heroParticleFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translate3d(0.4rem, -0.85rem, 0) scale(1.1);
        opacity: 1;
    }
}

@keyframes heroFloatCard {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -0.55rem, 0);
    }
}

@media (max-width: 1180px) {
    body[data-page='home'] .hero-grid,
    body[data-page='home'] .split-section,
    body[data-page='home'] .demo-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] #resources .demo-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .hero-copy {
        max-width: none;
    }

    body[data-page='home'] .dashboard-preview-shell {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    body[data-page='home'] .dashboard-preview-chat {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        align-items: start;
    }

    body[data-page='home'] .dashboard-preview-chat-head,
    body[data-page='home'] .dashboard-preview-input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body[data-page='home'] .dashboard-preview-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page='home'] .hero-visual {
        min-height: 31rem;
    }
}

@media (max-width: 720px) {
    body[data-page='home'] .hero-copy h1 {
        max-width: 10.5ch;
    }

    body[data-page='home'] .hero-actions,
    body[data-page='home'] .cta-card {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page='home'] .hero-actions .button,
    body[data-page='home'] .cta-card .button {
        width: 100%;
    }

    body[data-page='home'] .stat-strip {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] #solutions .feature-card {
        padding: 5.2rem 1.2rem 1.2rem;
        gap: 0.8rem;
    }

    body[data-page='home'] .dashboard-preview-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    body[data-page='home'] .dashboard-preview-sidebar {
        grid-auto-flow: column;
        grid-auto-columns: minmax(2.8rem, 1fr);
        overflow-x: auto;
    }

    body[data-page='home'] .dashboard-preview-nav::after {
        display: none;
    }
}

@media (max-width: 560px) {
    body[data-page='home'] .hero-visual {
        min-height: 27rem;
    }

    body[data-page='home'] .dashboard-float {
        width: 3.8rem;
        height: 3.8rem;
    }

    body[data-page='home'] .dashboard-preview-kpis,
    body[data-page='home'] .dashboard-preview-chat {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .preview-thread {
        min-height: 16rem;
    }
}

/* ==========================================================================
   Layout stabilization pass
   Keeps the current visual system intact while normalizing spacing, widths,
   overflow, and card alignment across pages.
   ========================================================================== */

html {
    scroll-padding-top: 6.5rem;
}

body.has-unified-topbar {
    --layout-max-width: 1200px;
    --layout-gutter: clamp(1rem, 2vw, 1.25rem);
    --layout-section-gap: 80px;
    --layout-grid-gap: clamp(1rem, 2vw, 1.5rem);
    overflow-x: hidden;
}

body.has-unified-topbar .main-wrapper,
body.has-unified-topbar .site-footer {
    width: min(100%, calc(var(--layout-max-width) + (var(--layout-gutter) * 2)));
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    position: relative;
    z-index: 1;
    min-width: 0;
}

body.has-unified-topbar .page-content,
body.has-unified-topbar :is(.site-main, .app-main, .app-page, .section, .page-intro, .form-shell, .contact-highlights, .auth-shell, .workspace-grid, .dashboard-inbox-grid, .dashboard-usage-grid, .profile-layout-grid, .hero-grid, .split-section, .demo-grid, .feature-grid, .metric-grid, .signal-stack, .stat-strip, .overview-grid, .ticket-console-grid, .field-grid, .pricing-v2-grid, .agent-builder-layout, .agent-builder-choice-grid, .agent-builder-feature-grid, .agent-checkout-grid) {
    min-width: 0;
}

body.has-unified-topbar .page-content {
    width: 100%;
    padding: 0 0 2rem;
}

body.has-unified-topbar :is(.site-main, .app-main) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.has-unified-topbar :is(.site-main, .app-main) > :where(.section, .app-page) {
    width: 100%;
    max-width: none;
    margin: var(--layout-section-gap) 0 0;
    padding-inline: 0;
    position: relative;
    z-index: 1;
}

body.has-unified-topbar :is(.site-main, .app-main) > :where(.section, .app-page):first-child {
    margin-top: 0;
}

body.has-unified-topbar .section {
    padding-block: clamp(2rem, 4vw, 4.5rem);
}

body.has-unified-topbar .app-page {
    display: grid;
    gap: var(--layout-grid-gap);
}

body.has-unified-topbar.auth-page .site-main {
    padding-top: 0;
}

body.has-unified-topbar .hero-section,
body.has-unified-topbar .auth-section,
body.has-unified-topbar .cta-section,
body.has-unified-topbar[data-page='pricing'] .pricing-v2 {
    padding-block: clamp(2rem, 4vw, 4.5rem);
}

body.has-unified-topbar[data-page='home'] .hero-section {
    min-height: auto;
}

body.has-unified-topbar .grid {
    display: grid;
    gap: var(--grid-gap, var(--layout-grid-gap));
    align-items: start;
    min-width: 0;
}

body.has-unified-topbar .grid > * {
    min-width: 0;
    max-width: 100%;
}

body.has-unified-topbar .demo-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

body.has-unified-topbar .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.25rem);
}

body.has-unified-topbar .stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0;
}

body.has-unified-topbar .field-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.has-unified-topbar .profile-layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.has-unified-topbar .ticket-console-grid {
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
}

body.has-unified-topbar :is(.feature-card, .stat-card, .metric-card, .signal-card, .timeline-card, .workspace-preview, .cta-card, .form-shell, .page-intro, .history-card, .profile-card) {
    max-width: 100%;
    overflow: hidden;
}

body.has-unified-topbar[data-page='home'] #resources,
body.has-unified-topbar[data-page='home'] #resources .demo-grid,
body.has-unified-topbar[data-page='home'] .preview-thread {
    overflow: visible;
}

@media (max-width: 1180px) {
    body.has-unified-topbar .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 5.8rem;
    }

    body.has-unified-topbar {
        --layout-gutter: clamp(0.9rem, 4vw, 1rem);
    }

    body.has-unified-topbar .profile-layout-grid,
    body.has-unified-topbar .ticket-console-grid {
        grid-template-columns: 1fr;
    }

    body.has-unified-topbar :is(.page-intro, .workspace-header, .panel-header, .cta-card) {
        align-items: flex-start;
    }
}

/* Fuller page layout pass.
   Gives each page enough horizontal structure so sections do not feel centered
   and empty. */
body.has-unified-topbar {
    --layout-max-width: 1440px;
    --layout-gutter: clamp(1rem, 2.6vw, 2rem);
    --layout-section-gap: clamp(4rem, 7vw, 7rem);
    --layout-grid-gap: clamp(1.1rem, 2vw, 1.8rem);
}

body.has-unified-topbar[data-page='home'] {
    --layout-max-width: 1520px;
}

body.has-unified-topbar[data-page='pricing'],
body.has-unified-topbar[data-page='contact'],
body.has-unified-topbar[data-page='payment_success'],
body.has-unified-topbar[data-page='ticket_success'],
body.ticket-access-page.has-unified-topbar {
    --layout-max-width: 1480px;
}

body.has-unified-topbar[data-page='admin'] {
    --layout-max-width: 1680px;
}

body.has-unified-topbar .main-wrapper,
body.has-unified-topbar .site-footer {
    width: min(100%, calc(var(--layout-max-width) + (var(--layout-gutter) * 2)));
    padding-inline: var(--layout-gutter);
}

body.site-body.has-unified-topbar :is(.section-heading, .section-copy.compact) {
    max-width: min(100%, 64rem);
    margin-inline: 0;
    text-align: left;
}

body.site-body.has-unified-topbar :is(.section-heading p, .section-copy.compact p) {
    margin-inline: 0;
}

body.has-unified-topbar[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(620px, 1.1fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

body.has-unified-topbar[data-page='home'] .hero-copy {
    max-width: none;
    align-items: flex-start;
    text-align: left;
}

body.has-unified-topbar[data-page='home'] .hero-copy h1 {
    max-width: 14ch;
}

body.has-unified-topbar[data-page='home'] #solutions .section-heading {
    margin-bottom: 0;
}

body.has-unified-topbar[data-page='home'] .split-section {
    grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

body.has-unified-topbar[data-page='home'] .demo-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

body.has-unified-topbar[data-page='contact'] .split-section {
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
}

body.has-unified-topbar[data-page='contact'] .section-copy {
    max-width: none;
}

body.has-unified-topbar[data-page='contact'] .form-shell {
    align-self: stretch;
}

body.has-unified-topbar[data-page='contact'] .ticket-console-grid {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

body.has-unified-topbar[data-page='payment_success'] .stack-section {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(520px, 1.32fr);
    gap: clamp(1.25rem, 2vw, 1.75rem);
    align-items: start;
}

body.has-unified-topbar[data-page='payment_success'] .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.has-unified-topbar[data-page='admin'] .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.has-unified-topbar[data-page='admin'] .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 1.6vw, 1.35rem);
    align-items: start;
}

body.has-unified-topbar[data-page='admin'] .ticket-console-grid {
    grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
}

body.has-unified-topbar:is([data-page='login'], [data-page='register'], [data-page='forgot-password'], [data-page='reset-password']) .auth-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

body.has-unified-topbar .auth-shell {
    justify-self: stretch;
}

@media (max-width: 980px) {
    body.has-unified-topbar[data-page='home'] .hero-grid,
    body.has-unified-topbar[data-page='home'] .split-section,
    body.has-unified-topbar[data-page='home'] .demo-grid,
    body.has-unified-topbar[data-page='contact'] .split-section,
    body.has-unified-topbar[data-page='contact'] .ticket-console-grid,
    body.has-unified-topbar[data-page='payment_success'] .stack-section,
    body.has-unified-topbar[data-page='admin'] .ticket-console-grid,
    body.has-unified-topbar:is([data-page='login'], [data-page='register'], [data-page='forgot-password'], [data-page='reset-password']) .auth-grid {
        grid-template-columns: 1fr;
    }

    body.has-unified-topbar[data-page='admin'] .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.has-unified-topbar {
        --layout-section-gap: clamp(2.75rem, 12vw, 4rem);
    }

    body.has-unified-topbar[data-page='home'] .hero-copy h1 {
        max-width: 11ch;
    }

    body.has-unified-topbar[data-page='payment_success'] .profile-grid {
        grid-template-columns: 1fr;
    }

    body.has-unified-topbar[data-page='admin'] .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium flow refinement layer.
   Final visual pass only: spacing, section rhythm, width, and lightweight depth. */
body.has-unified-topbar {
    --layout-max-width: 1560px;
    --layout-gutter: clamp(1rem, 2.8vw, 2.6rem);
    --layout-section-gap: clamp(4.5rem, 7vw, 8rem);
    --layout-grid-gap: clamp(1.2rem, 2.2vw, 2.25rem);
    --flow-card-gap: clamp(1rem, 1.6vw, 1.55rem);
    --flow-section-pad: clamp(4rem, 7vw, 8rem);
    --flow-section-pad-tight: clamp(2.8rem, 5vw, 5.4rem);
    --flow-divider: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.28), rgba(105, 183, 255, 0.2), transparent);
    --flow-surface:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(7, 10, 20, 0.78);
    --flow-surface-quiet:
        linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.01)),
        rgba(7, 10, 20, 0.62);
    --flow-border: rgba(226, 232, 255, 0.13);
    --flow-border-strong: rgba(139, 92, 246, 0.28);
    --flow-shadow: 0 22px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    --flow-shadow-hover: 0 28px 68px rgba(0, 0, 0, 0.34), 0 0 34px rgba(139, 92, 246, 0.12);
}

body.has-unified-topbar[data-page='home'] {
    --layout-max-width: 1680px;
}

body.has-unified-topbar[data-page='pricing'],
body.has-unified-topbar[data-page='contact'] {
    --layout-max-width: 1580px;
}

body.has-unified-topbar .main-wrapper,
body.has-unified-topbar .site-footer {
    width: min(100%, calc(var(--layout-max-width) + (var(--layout-gutter) * 2)));
}

body.has-unified-topbar :is(.site-main, .app-main) {
    position: relative;
    isolation: isolate;
}

body.has-unified-topbar :is(.site-main, .app-main) > :where(.section, .app-page) {
    position: relative;
    isolation: isolate;
}

body.site-body.has-unified-topbar .site-main > .section {
    padding-block: var(--flow-section-pad);
}

body.site-body.has-unified-topbar .site-main > .section:first-child {
    padding-top: clamp(3rem, 5vw, 5.5rem);
}

body.site-body.has-unified-topbar .site-main > .section + .section {
    margin-top: clamp(0.5rem, 1.8vw, 1.8rem);
}

body.site-body.has-unified-topbar .site-main > .section + .section::before,
body.app-body.has-unified-topbar .app-main > .section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: clamp(0rem, 4vw, 4rem);
    right: clamp(0rem, 4vw, 4rem);
    height: 1px;
    pointer-events: none;
    background: var(--flow-divider);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.14);
}

body.has-unified-topbar :is(.section, .app-page) > * {
    position: relative;
    z-index: 1;
}

body.site-body.has-unified-topbar .site-main > .section:nth-of-type(even)::after,
body.app-body.has-unified-topbar .app-main > .section:nth-of-type(even)::after {
    content: '';
    position: absolute;
    inset: clamp(1rem, 4vw, 4rem) calc(var(--layout-gutter) * -0.45);
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(139, 92, 246, 0.07), transparent 32%),
        linear-gradient(285deg, rgba(105, 183, 255, 0.055), transparent 36%);
    border-block: 1px solid rgba(255, 255, 255, 0.035);
    opacity: 0.72;
}

body.has-unified-topbar :is(.section-heading, .section-copy, .page-intro) {
    gap: clamp(0.8rem, 1.5vw, 1.25rem);
}

body.has-unified-topbar :is(.section-heading h2, .section-copy h1, .section-copy h2, .page-intro h1, .page-intro h2, .cta-card h2) {
    line-height: 1.04;
    text-wrap: balance;
}

body.has-unified-topbar :is(.section-heading p, .section-copy p, .page-intro p, .hero-lead) {
    max-width: 68ch;
    line-height: 1.72;
}

body.has-unified-topbar :is(.site-main, .app-main) :is(.glass-card, .feature-card, .metric-card, .stat-card, .timeline-card, .workspace-preview, .form-shell, .contact-highlights, .ticket-conversation-panel, .page-intro, .auth-shell) {
    border-color: var(--flow-border);
    box-shadow: var(--flow-shadow);
}

body.has-unified-topbar :is(.feature-card, .metric-card, .stat-card, .timeline-card, .workspace-preview, .form-shell, .ticket-conversation-panel, .page-intro) {
    background: var(--flow-surface);
}

body.has-reveal-motion .reveal {
    opacity: 0.78;
    transform: translate3d(0, 10px, 0);
    animation: none;
    transition:
        opacity 0.62s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--reveal-order, 0) * 42ms);
    will-change: opacity, transform;
}

body.has-reveal-motion .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
    body.has-unified-topbar :is(.site-main, .app-main) :is(.feature-card, .metric-card, .stat-card, .timeline-card, .workspace-preview, .form-shell, .ticket-summary-card, .profile-panel, .history-card, .dashboard-welcome-card, .dashboard-usage, .agent-module-summary):hover {
        transform: translate3d(0, -3px, 0);
        border-color: var(--flow-border-strong);
        box-shadow: var(--flow-shadow-hover);
    }

    body.has-unified-topbar :is(.chat-panel, .ticket-conversation-panel):hover {
        transform: none;
    }
}

body.has-unified-topbar[data-page='home'] .hero-section {
    min-height: min(920px, calc(100svh - 3rem));
    display: grid;
    align-content: center;
    padding-block: clamp(4.5rem, 7vw, 8rem);
}

body.has-unified-topbar[data-page='home'] .hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(0.8rem, 2vw, 2rem);
    height: 1px;
    pointer-events: none;
    background: var(--flow-divider);
}

body.has-unified-topbar[data-page='home'] .hero-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
    gap: clamp(2.4rem, 5.8vw, 6.8rem);
}

body.has-unified-topbar[data-page='home'] .hero-lead {
    max-width: 60ch;
}

body.has-unified-topbar[data-page='home'] .hero-actions {
    margin-top: clamp(0.4rem, 1.4vw, 1rem);
}

body.has-unified-topbar[data-page='home'] .hero-visual {
    min-height: clamp(430px, 54vw, 720px);
}

body.has-unified-topbar[data-page='home'] .home-dashboard-preview {
    width: min(100%, 860px);
    margin-inline: auto 0;
}

body.has-unified-topbar[data-page='home'] .stat-strip {
    margin-top: clamp(2rem, 4vw, 4.4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.6rem);
}

body.has-unified-topbar[data-page='home'] .stat-card {
    min-height: 8.25rem;
    align-content: center;
}

body.has-unified-topbar[data-page='home'] #solutions {
    padding-top: clamp(5rem, 8vw, 9rem);
}

body.has-unified-topbar[data-page='home'] #solutions .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
    align-items: end;
    max-width: none;
    gap: clamp(1rem, 3vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.6rem);
}

body.has-unified-topbar[data-page='home'] #solutions .section-heading p {
    justify-self: end;
    max-width: 34rem;
}

body.has-unified-topbar[data-page='home'] .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
}

body.has-unified-topbar[data-page='home'] .feature-card {
    min-height: clamp(14rem, 18vw, 18rem);
    padding: clamp(1.35rem, 2vw, 2rem);
    display: grid;
    align-content: end;
}

body.has-unified-topbar[data-page='home'] .feature-card:nth-child(odd) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
        linear-gradient(135deg, rgba(139, 92, 246, 0.11), transparent 42%),
        rgba(7, 10, 20, 0.76);
}

body.has-unified-topbar[data-page='home'] .split-section {
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

body.has-unified-topbar[data-page='home'] .timeline-card {
    padding: clamp(1.4rem, 2.3vw, 2.2rem);
}

body.has-unified-topbar[data-page='home'] .demo-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
}

body.has-unified-topbar[data-page='home'] .workspace-preview {
    min-height: clamp(34rem, 46vw, 42rem);
}

body.has-unified-topbar[data-page='home'] .cta-section {
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

body.has-unified-topbar[data-page='home'] .cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: clamp(1.6rem, 3.5vw, 3.2rem);
    gap: clamp(1.4rem, 4vw, 4rem);
}

body.has-unified-topbar[data-page='contact'] .section.split-section {
    min-height: clamp(620px, 70vh, 820px);
    align-items: center;
    padding-block: clamp(4rem, 7vw, 7.5rem);
}

body.has-unified-topbar[data-page='contact'] .split-section {
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    gap: clamp(2rem, 5vw, 5rem);
}

body.has-unified-topbar[data-page='contact'] .contact-highlights.glass-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.has-unified-topbar[data-page='contact'] .contact-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

body.has-unified-topbar[data-page='contact'] .contact-highlights article {
    padding: clamp(1rem, 1.7vw, 1.45rem);
    min-height: 10rem;
    background: var(--flow-surface-quiet);
    border: 1px solid var(--flow-border);
    box-shadow: var(--flow-shadow);
}

body.has-unified-topbar[data-page='contact'] .form-shell {
    padding: clamp(1.5rem, 3vw, 2.7rem);
    align-content: center;
}

body.has-unified-topbar[data-page='contact'] .page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding: clamp(1.4rem, 2.6vw, 2.4rem);
}

body.has-unified-topbar[data-page='contact'] .ticket-console-grid {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.2rem, 2.4vw, 2rem);
    align-items: stretch;
}

body.has-unified-topbar[data-page='contact'] :is(.ticket-list-pane, .ticket-conversation-panel) {
    min-height: clamp(34rem, 52vh, 44rem);
}

body.has-unified-topbar[data-page='contact'] .ticket-list {
    gap: clamp(0.8rem, 1.4vw, 1.1rem);
}

@media (max-width: 1180px) {
    body.has-unified-topbar[data-page='home'] .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.has-unified-topbar[data-page='home'] .hero-grid,
    body.has-unified-topbar[data-page='home'] .split-section,
    body.has-unified-topbar[data-page='home'] .demo-grid,
    body.has-unified-topbar[data-page='contact'] .split-section,
    body.has-unified-topbar[data-page='contact'] .ticket-console-grid {
        grid-template-columns: 1fr;
    }

    body.has-unified-topbar[data-page='home'] .home-dashboard-preview {
        margin-inline: auto;
    }

    body.has-unified-topbar[data-page='contact'] .contact-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.has-unified-topbar {
        --layout-gutter: clamp(0.9rem, 4.5vw, 1.1rem);
        --flow-section-pad: clamp(3rem, 11vw, 4.5rem);
    }

    body.site-body.has-unified-topbar .site-main > .section {
        padding-block: var(--flow-section-pad);
    }

    body.has-unified-topbar[data-page='home'] .hero-section {
        min-height: auto;
    }

    body.has-unified-topbar[data-page='home'] #solutions .section-heading,
    body.has-unified-topbar[data-page='home'] .stat-strip,
    body.has-unified-topbar[data-page='home'] .feature-grid,
    body.has-unified-topbar[data-page='home'] .cta-card,
    body.has-unified-topbar[data-page='contact'] .page-intro {
        grid-template-columns: 1fr;
    }

    body.has-unified-topbar[data-page='home'] #solutions .section-heading p {
        justify-self: start;
    }

    body.has-unified-topbar :is(.hero-copy, .section-copy, .section-heading, .page-intro) {
        max-width: min(100%, 22rem);
    }

    body.has-unified-topbar :is(.hero-lead, .section-copy p, .section-heading p, .page-intro p) {
        max-width: min(100%, 21rem);
        overflow-wrap: anywhere;
    }

    body.has-unified-topbar[data-page='contact'] .split-section > .section-copy h1 {
        max-width: min(100%, 21rem);
        font-size: clamp(2.05rem, 9.2vw, 2.55rem);
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    body.has-unified-topbar[data-page='home'] .feature-card {
        min-height: 12rem;
    }
}

@media (max-width: 640px) {
    body.has-unified-topbar[data-page='home'] .hero-copy,
    body.has-unified-topbar[data-page='contact'] .split-section > .section-copy {
        max-width: min(100%, 19.5rem);
    }

    body.has-unified-topbar[data-page='home'] .hero-lead,
    body.has-unified-topbar[data-page='contact'] .split-section > .section-copy > p {
        max-width: min(100%, 18.75rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-reveal-motion .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
