body.cinematic-shell {
    --stage-max-width: min(1400px, calc(100vw - clamp(2rem, 6vw, 6rem)));
    --stage-radius-xl: 34px;
    --stage-radius-lg: 28px;
    --stage-radius-md: 22px;
    --stage-radius-sm: 18px;
    --stage-gap: clamp(1rem, 2vw, 1.5rem);
    --stage-gap-lg: clamp(1.4rem, 3vw, 2.2rem);
    --stage-pad: clamp(1.2rem, 2.4vw, 1.8rem);
    --stage-pad-lg: clamp(1.5rem, 3vw, 2.4rem);
    --stage-shadow: 0 34px 90px rgba(2, 6, 18, 0.42);
    --stage-shadow-hover: 0 42px 110px rgba(2, 6, 18, 0.52);
    --stage-border: rgba(255, 255, 255, 0.12);
    --stage-border-strong: rgba(169, 199, 255, 0.24);
    --stage-panel: rgba(7, 12, 26, 0.86);
    --stage-panel-solid: rgba(5, 9, 20, 0.94);
    --stage-panel-soft: rgba(255, 255, 255, 0.05);
    --stage-copy: rgba(229, 239, 255, 0.78);
    --stage-copy-soft: rgba(204, 220, 248, 0.6);
    --stage-glow:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.12), transparent 28%);
}

body.cinematic-shell::before {
    background:
        radial-gradient(circle at 16% 18%, rgba(139, 92, 246, 0.18), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.12), transparent 28%),
        radial-gradient(circle at 54% 78%, rgba(99, 102, 241, 0.08), transparent 30%);
}

body.cinematic-shell::after {
    inset: -10vmax;
    opacity: 0.5;
    background:
        linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.02) 48%, rgba(139, 92, 246, 0.04) 52%, transparent 66%),
        radial-gradient(circle, rgba(196, 181, 253, 0.4) 0 1.3px, transparent 2px),
        radial-gradient(circle, rgba(167, 139, 250, 0.24) 0 1.1px, transparent 2px);
    background-size: auto, 72px 72px, 112px 112px;
    background-position: 0 0, 0 0, 24px 32px;
}

body.cinematic-shell .layout-topbar,
body.cinematic-shell .main-wrapper,
body.cinematic-shell .page-content,
body.cinematic-shell .site-main,
body.cinematic-shell .app-main {
    position: relative;
    z-index: 1;
}

body.cinematic-shell .layout-topbar.layout-topbar-site,
body.cinematic-shell .layout-topbar.layout-topbar-app,
body.cinematic-shell .main-wrapper,
body.cinematic-shell .site-footer {
    width: min(100%, var(--stage-max-width));
    max-width: none;
    margin-inline: auto;
}

body.cinematic-shell :is(.site-main, .app-main) > :where(.section, .app-page) {
    width: min(100%, var(--stage-max-width));
    max-width: none;
    margin-inline: auto;
}

body.cinematic-shell .section,
body.cinematic-shell .app-page {
    padding-inline: clamp(0rem, 1vw, 0.5rem);
}

body.cinematic-shell .section {
    padding-block: clamp(4.5rem, 7vw, 7rem);
}

body.cinematic-shell .app-page {
    padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 6vw, 5rem);
}

body.cinematic-shell :is(.nav-shell, .footer-shell, .glass-card, .page-intro, .auth-shell, .form-shell, .contact-highlights, .chat-panel, .profile-hero, .profile-panel, .dashboard-welcome-card, .dashboard-usage, .agent-module-summary, .ticket-conversation-panel, .tab-shell, .metric-card, .overview-panel, .overview-note, .overview-kpi-card, .agent-builder-sidebar, .agent-builder-shell, .agent-checkout-shell) {
    border-radius: var(--stage-radius-xl);
    border: 1px solid var(--stage-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
        var(--stage-glow),
        var(--stage-panel);
    box-shadow: var(--stage-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

body.cinematic-shell :is(.nav-shell, .footer-shell, .glass-card, .page-intro, .auth-shell, .form-shell, .contact-highlights, .chat-panel, .profile-hero, .profile-panel, .dashboard-welcome-card, .dashboard-usage, .agent-module-summary, .ticket-conversation-panel, .tab-shell, .metric-card, .overview-panel, .overview-note, .overview-kpi-card):hover {
    border-color: var(--stage-border-strong);
    box-shadow: var(--stage-shadow-hover);
}

body.cinematic-shell :is(h1, h2, h3) {
    letter-spacing: -0.04em;
    text-wrap: balance;
}

body.cinematic-shell :is(p, li, small) {
    color: var(--stage-copy);
}

body.cinematic-shell .eyebrow {
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: rgba(8, 12, 26, 0.74);
    color: rgba(220, 231, 255, 0.9);
    letter-spacing: 0.16em;
}

body.cinematic-shell .button {
    min-height: 46px;
    border-radius: 999px;
    padding-inline: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.cinematic-shell .button-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(99, 102, 241, 0.96));
    border: 1px solid rgba(184, 167, 255, 0.38);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.24);
}

body.cinematic-shell .button-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

body.cinematic-shell .button-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

body.cinematic-shell .button:hover {
    transform: translateY(-1px);
}

body.cinematic-shell .nav-shell {
    padding: 0.95rem 1.15rem;
}

body.cinematic-shell .nav-shell-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
}

body.cinematic-shell .site-nav {
    justify-self: center;
}

body.cinematic-shell .site-nav-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

body.cinematic-shell :is(.site-nav a, .nav-link) {
    padding: 0.68rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: rgba(229, 239, 255, 0.82);
}

body.cinematic-shell :is(.site-nav a, .nav-link):hover,
body.cinematic-shell :is(.site-nav a, .nav-link).is-active,
body.cinematic-shell :is(.site-nav a, .nav-link)[aria-current='page'] {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

body.cinematic-shell .footer-shell {
    align-items: flex-start;
    padding: 1.45rem;
}

body.cinematic-shell .site-footer {
    padding-bottom: 3rem;
}

body[data-page='home'] .cinematic-home {
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

body[data-page='home'] .home-stage {
    padding: var(--stage-pad-lg);
    overflow: hidden;
    position: relative;
}

body[data-page='home'] .home-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.24), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(167, 139, 250, 0.14), transparent 24%),
        linear-gradient(125deg, transparent 48%, rgba(255, 255, 255, 0.04) 52%, transparent 64%);
    opacity: 0.9;
}

body[data-page='home'] .home-stage > * {
    position: relative;
    z-index: 1;
}

body[data-page='home'] .home-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

body[data-page='home'] .hero-copy {
    display: grid;
    gap: 1.15rem;
    max-width: 42rem;
}

body[data-page='home'] .hero-copy h1 {
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: 0.88;
    text-transform: uppercase;
    color: #ffffff;
}

body[data-page='home'] .hero-title-accent {
    display: block;
    background: linear-gradient(90deg, #c4b5fd 0%, #8b5cf6 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-page='home'] .eyebrow-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

body[data-page='home'] .hero-signal-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.38rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: rgba(4, 15, 28, 0.78);
    color: rgba(191, 236, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body[data-page='home'] .hero-lead {
    margin: 0;
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(219, 231, 255, 0.8);
}

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

body[data-page='home'] .hero-proof-card,
body[data-page='home'] .hero-floating-card,
body[data-page='home'] .feature-mini-list li,
body[data-page='home'] .functionality-pills span,
body[data-page='pricing'] .pricing-stage-signal,
body[data-page='pricing'] .pricing-proof-card,
body[data-page='contact'] .support-stage-meta span,
body.auth-page .auth-proof-item,
body[data-page='dashboard'] .workspace-stage-metric,
body[data-page='dashboard'] .workspace-stage-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page='home'] .hero-proof-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border-radius: var(--stage-radius-md);
}

body[data-page='home'] .hero-proof-card span,
body[data-page='dashboard'] .workspace-stage-metric span,
body[data-page='dashboard'] .workspace-stage-label,
body[data-page='pricing'] .pricing-stage-signal span,
body.auth-page .auth-proof-item span {
    color: var(--stage-copy-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body[data-page='home'] .hero-proof-card strong,
body[data-page='dashboard'] .workspace-stage-metric strong,
body[data-page='dashboard'] .workspace-stage-panel strong,
body[data-page='pricing'] .pricing-stage-signal strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.35;
}

body[data-page='home'] .hero-visual-stage {
    position: relative;
    min-height: 42rem;
    display: grid;
    place-items: center;
}

body[data-page='home'] .home-dashboard-preview {
    position: relative;
    width: min(100%, 42rem);
    margin-inline: auto;
    transform: perspective(1500px) rotateX(12deg) rotateY(-8deg);
    transform-origin: center;
}

body[data-page='home'] .dashboard-preview-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(5, 9, 20, 0.92);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 38px 100px rgba(2, 6, 18, 0.5);
}

body[data-page='home'] .hero-floating-card {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 0.45rem;
    width: min(16rem, 42vw);
    padding: 1rem;
    border-radius: var(--stage-radius-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    will-change: transform;
}

body[data-page='home'] .hero-floating-card strong {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
}

body[data-page='home'] .hero-floating-card p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(219, 231, 255, 0.72);
}

body[data-page='home'] .hero-floating-label {
    color: rgba(196, 181, 253, 0.94);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body[data-page='home'] .hero-floating-card.is-top-left {
    top: 6%;
    left: -3%;
}

body[data-page='home'] .hero-floating-card.is-top-right {
    top: 8%;
    right: -2%;
}

body[data-page='home'] .hero-floating-card.is-bottom-right {
    right: 1%;
    bottom: 10%;
}

body[data-page='home'] .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

body[data-page='home'] .stat-card {
    padding: 1rem 1.1rem;
    border-radius: var(--stage-radius-md);
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

body[data-page='home'] .stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.65rem;
}

body[data-page='home'] .section-heading {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

body[data-page='home'] .section-heading h2 {
    margin: 0.7rem 0 0.7rem;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    color: #ffffff;
}

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

body[data-page='home'] .feature-card {
    padding: 1.35rem;
    gap: 0.9rem;
}

body[data-page='home'] .feature-kicker {
    color: rgba(196, 181, 253, 0.95);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body[data-page='home'] .feature-card h3 {
    margin: 0;
    font-size: 1.22rem;
    color: #ffffff;
}

body[data-page='home'] .feature-card p {
    margin: 0;
}

body[data-page='home'] .feature-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

body[data-page='home'] .feature-mini-list li {
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    color: rgba(228, 236, 255, 0.82);
    font-size: 0.9rem;
}

body[data-page='home'] .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1rem;
}

body[data-page='home'] :is(.functionality-stage, .delivery-stage, .workspace-preview, .operational-module-card, .cta-card) {
    padding: var(--stage-pad-lg);
}

body[data-page='home'] .functionality-stage h2,
body[data-page='home'] .delivery-stage h2 {
    margin: 0.75rem 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

body[data-page='home'] .functionality-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

body[data-page='home'] .functionality-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: rgba(233, 241, 255, 0.84);
    font-size: 0.88rem;
}

body[data-page='home'] .timeline-stack {
    display: grid;
    gap: 0.95rem;
    margin-top: 1rem;
}

body[data-page='home'] .timeline-node {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
}

body[data-page='home'] .timeline-node-index {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.94rem;
}

body[data-page='home'] .timeline-node h3,
body[data-page='home'] .operational-module-card h3 {
    margin: 0 0 0.25rem;
    color: #ffffff;
}

body[data-page='home'] .demo-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 1rem;
}

body[data-page='home'] .workspace-preview .workspace-header,
body[data-page='home'] .workspace-preview .preview-thread,
body[data-page='home'] .operational-module-card .check-list {
    position: relative;
    z-index: 1;
}

body[data-page='home'] .operational-module-card .check-list {
    margin: 1rem 0 0;
}

body[data-page='home'] .cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
}

body[data-page='dashboard'] .workspace-stage {
    padding: var(--stage-pad-lg);
    overflow: hidden;
}

body[data-page='dashboard'] .workspace-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

body[data-page='dashboard'] .workspace-stage-copy {
    display: grid;
    gap: 0.95rem;
}

body[data-page='dashboard'] .workspace-stage-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 0.95;
}

body[data-page='dashboard'] .workspace-stage-copy p {
    margin: 0;
    max-width: 42rem;
}

body[data-page='dashboard'] .workspace-stage-actions,
body[data-page='dashboard'] .chat-conversion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body[data-page='dashboard'] .workspace-stage-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
}

body[data-page='dashboard'] .workspace-stage-metric,
body[data-page='dashboard'] .workspace-stage-panel {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: var(--stage-radius-md);
}

body[data-page='dashboard'] .workspace-stage-side {
    display: grid;
    gap: 0.75rem;
}

body[data-page='dashboard'] .workspace-stage-panel p {
    margin: 0;
    color: rgba(228, 236, 255, 0.72);
}

body[data-page='dashboard'] .workspace-stage-metric strong {
    font-size: 1.55rem;
}

body[data-page='dashboard'] .workspace-stage-panel strong {
    font-size: 1.16rem;
}

body[data-page='dashboard'] .dashboard-inbox-grid {
    gap: 1.15rem;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1.25fr) minmax(320px, 390px);
}

body[data-page='dashboard'] .dashboard-history-card,
body[data-page='dashboard'] .chat-panel,
body[data-page='dashboard'] .dashboard-welcome-card,
body[data-page='dashboard'] .dashboard-usage,
body[data-page='dashboard'] .profile-card,
body[data-page='dashboard'] .agent-module-summary {
    border-radius: var(--stage-radius-xl);
}

body[data-page='dashboard'] .history-item,
body[data-page='dashboard'] .dashboard-usage-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page='dashboard'] .chat-interface {
    gap: 1rem;
}

body[data-page='dashboard'] .chat-start-card {
    padding: 1rem 1.05rem;
    border-radius: var(--stage-radius-md);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.08)),
        rgba(255, 255, 255, 0.04);
}

body[data-page='dashboard'] .chat-start-card strong {
    color: #ffffff;
}

body[data-page='dashboard'] .chat-sample-prompts {
    margin-top: 0.25rem;
}

body[data-page='dashboard'] .chat-sample-prompt {
    min-height: 2.35rem;
    padding-inline: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(235, 241, 255, 0.88);
}

body[data-page='dashboard'] .chat-thread {
    border-radius: var(--stage-radius-md);
    padding: 0.5rem 0.15rem 0.25rem 0;
}

body[data-page='dashboard'] .chat-conversion-trigger {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: var(--stage-radius-md);
    border: 1px solid rgba(167, 139, 250, 0.2);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(167, 139, 250, 0.08)),
        rgba(255, 255, 255, 0.04);
}

body[data-page='pricing'] .pricing-v2-shell {
    width: min(100%, var(--stage-max-width));
    max-width: none;
    gap: 1.25rem;
}

body[data-page='pricing'] .pricing-v2-head h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.92;
    text-transform: uppercase;
}

body[data-page='pricing'] .pricing-stage-band,
body[data-page='pricing'] .pricing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body[data-page='pricing'] .pricing-stage-signal,
body[data-page='pricing'] .pricing-proof-card {
    padding: 1rem 1.1rem;
    border-radius: var(--stage-radius-md);
}

body[data-page='pricing'] .pricing-stage-signal p,
body[data-page='pricing'] .pricing-proof-card p {
    margin: 0.35rem 0 0;
}

body[data-page='pricing'] .pricing-proof-card strong {
    color: #ffffff;
    display: block;
}

body[data-page='pricing'] .pricing-v2-grid {
    gap: 1rem;
    margin-top: 0.2rem;
}

body[data-page='pricing'] .pricing-v2-card {
    border-radius: var(--stage-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        rgba(6, 10, 22, 0.9);
    box-shadow: var(--stage-shadow);
}

body[data-page='pricing'] .pricing-v2-card.is-popular {
    transform: translateY(-8px);
}

body[data-page='pricing'] .pricing-v2-card-inner {
    gap: 1.15rem;
    padding: 1.45rem;
}

body[data-page='contact'] .support-stage {
    align-items: stretch;
}

body[data-page='contact'] .support-stage .section-copy h1 {
    margin: 0.7rem 0 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 5.8vw, 4.4rem);
    line-height: 0.94;
}

body[data-page='contact'] .support-stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

body[data-page='contact'] .support-stage-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.46rem 0.84rem;
    border-radius: 999px;
    color: rgba(233, 241, 255, 0.84);
    font-size: 0.84rem;
}

body[data-page='contact'] .contact-highlights,
body[data-page='contact'] .form-shell,
body[data-page='contact'] .page-intro,
body[data-page='contact'] .ticket-conversation-panel {
    border-radius: var(--stage-radius-xl);
}

body[data-page='contact'] .ticket-console-grid {
    gap: 1rem;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

body[data-page='contact'] .ticket-summary-card {
    padding: 1rem;
}

body[data-page='contact'] .ticket-summary-card:hover,
body[data-page='contact'] .ticket-summary-card.is-active {
    border-color: rgba(167, 139, 250, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

body.auth-page .auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

body.auth-page .auth-copy,
body.auth-page .auth-shell {
    padding: var(--stage-pad-lg);
    border-radius: var(--stage-radius-xl);
}

body.auth-page .auth-copy {
    display: grid;
    align-content: start;
    gap: 1rem;
    border: 1px solid var(--stage-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 38%),
        rgba(6, 10, 22, 0.9);
    box-shadow: var(--stage-shadow);
}

body.auth-page .auth-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.92;
    text-transform: uppercase;
}

body.auth-page .auth-copy p {
    margin: 0;
    max-width: 40ch;
    color: rgba(222, 232, 252, 0.8);
}

body.auth-page .auth-proof-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

body.auth-page .auth-proof-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: var(--stage-radius-md);
}

body.auth-page .auth-proof-item span {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.18);
    color: #ffffff;
    letter-spacing: 0;
}

body.auth-page .auth-proof-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

body.auth-page .auth-proof-item p {
    max-width: none;
    font-size: 0.94rem;
    color: rgba(219, 231, 255, 0.72);
}

body.admin-page .app-page {
    gap: 1.15rem;
}

body.admin-page .page-intro {
    padding: var(--stage-pad-lg);
    border-radius: var(--stage-radius-xl);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(167, 139, 250, 0.08)),
        rgba(5, 9, 20, 0.94);
}

body.admin-page .metric-grid {
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-page .metric-card,
body.admin-page .overview-panel,
body.admin-page .overview-note,
body.admin-page .overview-kpi-card {
    padding: 1.1rem 1.15rem;
}

body.admin-page .tab-shell {
    padding: 1rem;
    border-radius: var(--stage-radius-xl);
}

body.admin-page .tab-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

body.admin-page .tab-button {
    border-radius: 999px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    color: rgba(229, 239, 255, 0.76);
}

body.admin-page .tab-button.is-active,
body.admin-page .tab-button:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.88));
    color: #ffffff;
}

body.admin-page .table-wrap {
    overflow: hidden;
    border-radius: var(--stage-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

body.admin-page .data-table thead th {
    background: rgba(255, 255, 255, 0.05);
}

body[data-page='profile'] .profile-page .profile-hero,
body[data-page='profile'] .profile-page .profile-panel,
body[data-page='workspace_agents'] :is(.page-intro, .agent-builder-sidebar, .agent-builder-wizard, .agent-builder-config, .agent-builder-deploy, .agent-builder-pricing) {
    border-radius: var(--stage-radius-xl);
}

body[data-page='workspace_agents'] .page-intro h1,
body[data-page='profile'] .profile-title-row h1 {
    line-height: 0.94;
}

@media (max-width: 1180px) {
    body[data-page='home'] .home-stage-grid,
    body[data-page='home'] .story-grid,
    body[data-page='home'] .demo-grid,
    body[data-page='dashboard'] .workspace-stage-grid,
    body.auth-page .auth-grid,
    body[data-page='contact'] .ticket-console-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='home'] .hero-visual-stage {
        min-height: 32rem;
    }

    body[data-page='dashboard'] .workspace-stage-metrics,
    body.admin-page .metric-grid,
    body[data-page='pricing'] .pricing-stage-band,
    body[data-page='pricing'] .pricing-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body[data-page='home'] .feature-grid,
    body[data-page='home'] .stat-strip,
    body[data-page='dashboard'] .workspace-stage-metrics,
    body.admin-page .metric-grid,
    body[data-page='pricing'] .pricing-stage-band,
    body[data-page='pricing'] .pricing-proof-grid {
        grid-template-columns: 1fr;
    }

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

    body[data-page='dashboard'] .dashboard-inbox-grid {
        grid-template-columns: 1fr;
    }

    body[data-page='pricing'] .pricing-v2-card.is-popular {
        transform: none;
    }
}

@media (max-width: 720px) {
    body.cinematic-shell {
        --stage-max-width: calc(100vw - 1.2rem);
        --stage-radius-xl: 26px;
        --stage-radius-lg: 22px;
        --stage-radius-md: 18px;
    }

    body.cinematic-shell .section {
        padding-block: 4rem;
    }

    body[data-page='home'] .hero-copy h1,
    body.auth-page .auth-copy h1,
    body[data-page='pricing'] .pricing-v2-head h1,
    body[data-page='contact'] .support-stage .section-copy h1,
    body[data-page='dashboard'] .workspace-stage-copy h1 {
        font-size: clamp(2.5rem, 14vw, 4.2rem);
    }

    body[data-page='home'] .hero-visual-stage {
        min-height: auto;
        padding-top: 1rem;
    }

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

    body[data-page='home'] .hero-floating-card {
        position: relative;
        width: 100%;
    }

    body[data-page='home'] .hero-floating-card.is-top-left,
    body[data-page='home'] .hero-floating-card.is-top-right,
    body[data-page='home'] .hero-floating-card.is-bottom-right {
        inset: auto;
    }

    body[data-page='home'] .cta-card,
    body[data-page='dashboard'] .chat-conversion-trigger {
        grid-template-columns: 1fr;
        display: grid;
    }

    body[data-page='dashboard'] .chat-conversion-actions,
    body[data-page='dashboard'] .workspace-stage-actions,
    body.auth-page .intro-actions {
        width: 100%;
        justify-content: stretch;
    }

    body[data-page='dashboard'] .chat-conversion-actions .button,
    body[data-page='dashboard'] .workspace-stage-actions .button,
    body.auth-page .intro-actions .button {
        width: 100%;
        justify-content: center;
    }

    body.admin-page .tab-bar {
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cinematic-shell [data-parallax] {
        transform: none !important;
    }
}
