:root {
    --ink-950: #0b0d12;
    --ink-900: #11131a;
    --ink-800: #1b1e27;
    --ink-700: #313541;
    --ink-600: #555b69;
    --ink-500: #747b89;
    --ink-400: #9aa0ac;
    --ink-300: #c5c9d1;
    --ink-200: #dfe2e8;
    --ink-150: #e9ebf0;
    --ink-100: #f1f2f6;
    --ink-50: #f7f8fa;

    --violet-700: #6346ed;
    --violet-600: #7357ff;
    --violet-500: #856cff;
    --violet-200: #d9d2ff;
    --violet-100: #eeeaff;
    --violet-50: #f7f5ff;

    --green-600: #17a66b;
    --green-100: #ddf8ec;
    --green-50: #effbf6;
    --orange-600: #e77817;
    --orange-100: #fff0dc;
    --blue-600: #3c78e8;
    --blue-100: #e6efff;

    --marketing-bg: #07100d;
    --marketing-surface: #0d1814;
    --marketing-line: rgba(255, 255, 255, 0.1);
    --marketing-text: #f6f8f7;
    --marketing-muted: #9eaaa4;

    --container: min(1180px, calc(100% - 40px));
    --shadow-sm: 0 8px 30px rgba(18, 22, 33, 0.07);
    --shadow-md: 0 24px 70px rgba(17, 22, 34, 0.11);
    --shadow-dark: 0 35px 100px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

svg {
    display: block;
}

code,
pre,
kbd {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

/* Shared brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.brand-word {
    font-size: 20px;
}

.brand-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(145deg, var(--violet-500), var(--violet-700));
    box-shadow: 0 12px 26px rgba(99, 70, 237, 0.27);
}

.brand-symbol svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.brand-symbol-small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.brand-symbol-small svg {
    width: 21px;
    height: 21px;
}

.brand-on-dark {
    color: var(--marketing-text);
}

/* Marketing page */

.marketing-body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--marketing-text);
    background:
        radial-gradient(circle at 50% -12%, rgba(115, 87, 255, 0.18), transparent 42rem),
        linear-gradient(180deg, #07100d 0%, #08110e 56%, #0a1310 100%);
}

.marketing-noise {
    position: fixed;
    z-index: -3;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

.marketing-glow {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.marketing-glow-one {
    top: 9rem;
    right: -12rem;
    width: 32rem;
    height: 32rem;
    background: rgba(89, 213, 142, 0.09);
}

.marketing-glow-two {
    top: 42rem;
    left: -14rem;
    width: 30rem;
    height: 30rem;
    background: rgba(115, 87, 255, 0.08);
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.marketing-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
}

.marketing-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--marketing-muted);
    font-size: 14px;
    font-weight: 680;
}

.marketing-nav > a {
    transition: color 180ms ease;
}

.marketing-nav > a:hover {
    color: var(--marketing-text);
}

.nav-dashboard-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--marketing-line);
    border-radius: 11px;
    color: var(--marketing-text) !important;
    background: rgba(255, 255, 255, 0.055);
    transition:
        transform 180ms ease,
        background 180ms ease !important;
}

.nav-dashboard-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
}

.nav-dashboard-link svg,
.primary-action svg,
.text-link svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-button {
    display: none;
    width: 43px;
    height: 43px;
    padding: 10px;
    border: 1px solid var(--marketing-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
}

.mobile-menu-button span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: white;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    align-items: center;
    gap: 66px;
    min-height: 690px;
    padding-block: 76px 96px;
}

.release-pill {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    padding: 4px 11px 4px 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: #c7d0cb;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 700;
}

.release-pill > span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #efeaff;
    background: rgba(115, 87, 255, 0.3);
}

.release-pill svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 27px 0 24px;
    font-size: clamp(4rem, 6.4vw, 6.7rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero-copy h1 em {
    color: #a99aff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.hero-copy > p {
    max-width: 585px;
    margin: 0;
    color: var(--marketing-muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 180ms ease,
        opacity 180ms ease,
        box-shadow 180ms ease;
}

.primary-action {
    color: white;
    background: linear-gradient(135deg, #856cff, #6547ef);
    box-shadow: 0 16px 38px rgba(99, 70, 237, 0.27);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.primary-action:hover {
    box-shadow: 0 20px 44px rgba(99, 70, 237, 0.34);
}

.secondary-action {
    border: 1px solid var(--marketing-line);
    color: var(--marketing-text);
    background: rgba(255, 255, 255, 0.055);
}

.primary-action:disabled,
.secondary-action:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-left: -8px;
    border: 2px solid #07100d;
    border-radius: 50%;
    color: white;
    background: #26362e;
    font-size: 9px;
    font-weight: 850;
}

.avatar-stack span:first-child {
    margin-left: 0;
    background: #7a5ff1;
}

.avatar-stack span:nth-child(2) {
    background: #287f5b;
}

.avatar-stack span:nth-child(3) {
    background: #aa6132;
}

.avatar-stack span:last-child {
    color: #c8d0cc;
    background: #1a2620;
}

.proof-stars {
    color: #ffcd64;
    font-size: 10px;
    letter-spacing: 0.14em;
}

.hero-proof p {
    margin: 4px 0 0;
    color: var(--marketing-muted);
    font-size: 11px;
}

.hero-product {
    position: relative;
    min-width: 0;
}

.preview-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: #f8f8fb;
    box-shadow: var(--shadow-dark);
    transform: perspective(1200px) rotateY(-1.4deg) rotateX(0.8deg);
    transform-origin: center;
}

.preview-topbar {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 190px) auto;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 0 15px;
    border-bottom: 1px solid #e9eaf0;
    color: #686e7c;
    background: white;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #242832;
    font-size: 9px;
    font-weight: 850;
}

.preview-logo {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
}

.preview-search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 27px;
    padding: 0 9px;
    border: 1px solid #ececf1;
    border-radius: 7px;
    background: #fafafd;
    font-size: 7px;
}

.preview-search svg {
    width: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.preview-profile {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #26344a;
    font-size: 7px;
    font-weight: 800;
}

.preview-body {
    display: grid;
    grid-template-columns: 50px 1fr;
    min-height: 390px;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    border-right: 1px solid #e9eaf0;
    background: white;
}

.preview-sidebar span {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: #eef0f4;
}

.preview-sidebar span.active {
    background: #7860f3;
    box-shadow: 0 7px 14px rgba(120, 96, 243, 0.22);
}

.preview-content {
    min-width: 0;
    padding: 25px 24px 27px;
}

.preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.preview-heading small,
.preview-heading strong {
    display: block;
}

.preview-heading small {
    color: #9399a4;
    font-size: 6px;
    font-weight: 750;
    text-transform: uppercase;
}

.preview-heading strong {
    margin-top: 4px;
    color: #171a22;
    font-size: 16px;
    letter-spacing: -0.04em;
}

.preview-heading button {
    height: 27px;
    padding: 0 10px;
    border-radius: 7px;
    color: white;
    background: #7257ee;
    font-size: 7px;
    font-weight: 800;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 18px;
}

.preview-stats article {
    padding: 12px;
    border: 1px solid #e8e9ee;
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 20px rgba(18, 24, 36, 0.035);
}

.preview-stats span,
.preview-stats strong,
.preview-stats small {
    display: block;
}

.preview-stats span {
    color: #888f9c;
    font-size: 6px;
}

.preview-stats strong {
    margin: 10px 0 3px;
    color: #1c2029;
    font-size: 15px;
}

.preview-stats small {
    color: #24a36d;
    font-size: 6px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 9px;
    margin-top: 9px;
}

.preview-chart-card,
.preview-activity-card {
    min-width: 0;
    min-height: 188px;
    padding: 13px;
    border: 1px solid #e8e9ee;
    border-radius: 10px;
    background: white;
}

.mini-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1d2028;
    font-size: 7px;
}

.mini-card-title strong {
    font-size: 11px;
}

.mini-card-title small {
    color: #25a36d;
    font-size: 6px;
}

.preview-chart {
    width: 100%;
    height: 133px;
    margin-top: 11px;
    overflow: visible;
}

.preview-chart-grid {
    fill: none;
    stroke: #eff0f4;
    stroke-width: 1;
}

.preview-chart-fill {
    fill: url(#hero-chart-fill);
}

.preview-chart-line {
    fill: none;
    stroke: #765bf0;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.preview-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f1f4;
}

.preview-activity:last-child {
    border-bottom: 0;
}

.preview-activity > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.preview-activity > span.green {
    background: #2bb477;
}

.preview-activity > span.violet {
    background: #755bf1;
}

.preview-activity > span.orange {
    background: #ee923f;
}

.preview-activity strong,
.preview-activity small {
    display: block;
}

.preview-activity strong {
    color: #292d36;
    font-size: 6.5px;
}

.preview-activity small {
    margin-top: 3px;
    color: #a0a5af;
    font-size: 5.5px;
}

.floating-status {
    position: absolute;
    right: -17px;
    bottom: -22px;
    display: flex;
    min-width: 238px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(16, 27, 22, 0.96);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.floating-status-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #67dda1;
    background: rgba(50, 191, 124, 0.13);
}

.floating-status-icon svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-status strong,
.floating-status small {
    display: block;
}

.floating-status strong {
    font-size: 12px;
}

.floating-status small {
    margin-top: 4px;
    color: var(--marketing-muted);
    font-size: 9px;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 92px;
    border-top: 1px solid var(--marketing-line);
    border-bottom: 1px solid var(--marketing-line);
    color: #6f7b75;
    text-align: center;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.product-section {
    padding-block: 130px;
}

.section-intro {
    max-width: 750px;
    margin-bottom: 50px;
}

.section-kicker {
    display: inline-block;
    color: #a99aff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-intro h2,
.workflow-copy h2,
.performance-card h2,
.final-cta h2 {
    margin: 16px 0 18px;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.065em;
}

.section-intro p,
.workflow-copy > p,
.performance-card > div > p {
    max-width: 650px;
    margin: 0;
    color: var(--marketing-muted);
    font-size: 17px;
    line-height: 1.75;
}

.feature-bento {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
}

.bento-card {
    overflow: hidden;
    min-height: 350px;
    padding: 34px;
    border: 1px solid var(--marketing-line);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.bento-large {
    grid-row: span 2;
    min-height: 716px;
}

.feature-number {
    color: #6d7b74;
    font-size: 11px;
    font-weight: 850;
}

.bento-card h3 {
    max-width: 500px;
    margin: 20px 0 14px;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.bento-card > p,
.bento-copy p {
    max-width: 490px;
    margin: 0;
    color: var(--marketing-muted);
    line-height: 1.7;
}

.analytics-visual {
    margin-top: 55px;
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(4, 10, 7, 0.52);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analytics-header small,
.analytics-header strong {
    display: block;
}

.analytics-header small {
    color: var(--marketing-muted);
    font-size: 10px;
}

.analytics-header strong {
    margin-top: 6px;
    font-size: 29px;
    letter-spacing: -0.04em;
}

.analytics-header > span {
    padding: 7px 9px;
    border-radius: 999px;
    color: #6fe0a8;
    background: rgba(49, 187, 122, 0.12);
    font-size: 9px;
    font-weight: 800;
}

.analytics-bars {
    display: flex;
    height: 255px;
    align-items: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 100% 25%;
}

.analytics-bars i {
    height: var(--bar);
    flex: 1;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #8c74ff, #5f43dd);
    box-shadow: 0 14px 24px rgba(95, 67, 221, 0.17);
}

.analytics-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    color: #718078;
    font-size: 9px;
}

.status-demo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 60px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.status-demo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background:
        radial-gradient(circle, #67dda1 0 22%, transparent 24%),
        rgba(49, 187, 122, 0.11);
}

.status-demo strong,
.status-demo small {
    display: block;
}

.status-demo strong {
    font-size: 12px;
}

.status-demo small {
    margin-top: 4px;
    color: var(--marketing-muted);
    font-size: 9px;
}

.status-demo-pill {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: #70dfa9;
    background: rgba(49,187,122,.11);
    font-size: 8px;
    font-weight: 850;
}

.bento-dark {
    background: linear-gradient(145deg, rgba(115, 87, 255, 0.12), rgba(255,255,255,.025));
}

.code-sample {
    display: grid;
    gap: 9px;
    margin-top: 38px;
}

.code-sample span {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    color: #c8d0cc;
    background: rgba(3,8,5,.28);
    font: 10px "SFMono-Regular", Consolas, monospace;
}

.code-sample i {
    min-width: 34px;
    color: #aa9aff;
    font-style: normal;
    font-weight: 900;
}

.workflow-section {
    padding-block: 130px;
    border-top: 1px solid var(--marketing-line);
    border-bottom: 1px solid var(--marketing-line);
    background: rgba(255, 255, 255, 0.018);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 110px;
}

.workflow-copy {
    position: sticky;
    top: 48px;
}

.workflow-copy h2 {
    max-width: 560px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.workflow-steps {
    counter-reset: workflow;
}

.workflow-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 22px;
    padding: 34px 0;
    border-bottom: 1px solid var(--marketing-line);
}

.workflow-step:first-child {
    padding-top: 0;
}

.workflow-step > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(169, 154, 255, 0.18);
    border-radius: 12px;
    color: #aa9aff;
    background: rgba(115, 87, 255, 0.07);
    font-size: 10px;
    font-weight: 850;
}

.workflow-step h3 {
    margin: 3px 0 10px;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.workflow-step p {
    margin: 0;
    color: var(--marketing-muted);
    line-height: 1.7;
}

.performance-section {
    padding-block: 130px;
}

.performance-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
    padding: 55px;
    border: 1px solid var(--marketing-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 10%, rgba(115,87,255,.17), transparent 20rem),
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.performance-metrics article {
    min-width: 0;
    padding: 23px 18px;
    border: 1px solid var(--marketing-line);
    border-radius: 16px;
    background: rgba(4,10,7,.28);
}

.performance-metrics strong,
.performance-metrics span {
    display: block;
}

.performance-metrics strong {
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    letter-spacing: -0.06em;
}

.performance-metrics span {
    margin-top: 8px;
    color: var(--marketing-muted);
    font-size: 10px;
    line-height: 1.45;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 110px;
    padding: 54px;
    border-radius: 28px;
    color: #121419;
    background: #f2f0ff;
}

.final-cta .section-kicker {
    color: var(--violet-700);
}

.final-cta h2 {
    max-width: 780px;
    margin-bottom: 0;
}

.primary-action-light {
    flex: 0 0 auto;
}

.marketing-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
    min-height: 120px;
    border-top: 1px solid var(--marketing-line);
    color: #748079;
    font-size: 11px;
}

/* Dashboard */

.dashboard-body {
    color: var(--ink-900);
    background: #f6f7fa;
}

.dashboard-app {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 22px 16px 16px;
    border-right: 1px solid var(--ink-150);
    background: white;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.workspace-switcher {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 11px;
    border: 1px solid var(--ink-150);
    border-radius: 12px;
    background: var(--ink-50);
}

.workspace-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    color: white;
    background: #212632;
    font-size: 9px;
    font-weight: 850;
}

.workspace-switcher strong,
.workspace-switcher small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher strong {
    font-size: 11px;
}

.workspace-switcher small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 8px;
}

.workspace-switcher > svg {
    width: 15px;
    fill: none;
    stroke: var(--ink-500);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-navigation {
    display: grid;
    gap: 3px;
    margin-top: 26px;
}

.nav-label {
    margin: 0 10px 7px;
    color: var(--ink-400);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.nav-label-second {
    margin-top: 22px;
}

.sidebar-navigation a {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border-radius: 9px;
    color: var(--ink-600);
    font-size: 12px;
    font-weight: 690;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.sidebar-navigation a:hover {
    color: var(--ink-900);
    background: var(--ink-50);
}

.sidebar-navigation a.active {
    color: var(--violet-700);
    background: var(--violet-50);
}

.sidebar-navigation svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-count {
    display: grid;
    min-width: 21px;
    height: 20px;
    place-items: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 7px;
    color: var(--ink-500);
    background: var(--ink-100);
    font-size: 8px;
}

.sidebar-upgrade {
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--violet-200);
    border-radius: 14px;
    background:
        radial-gradient(circle at 90% 0, rgba(115,87,255,.12), transparent 8rem),
        var(--violet-50);
}

.upgrade-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    color: var(--violet-700);
    background: var(--violet-100);
}

.upgrade-icon svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-upgrade strong {
    display: block;
    margin-top: 12px;
    font-size: 11px;
}

.sidebar-upgrade p {
    margin: 5px 0 11px;
    color: var(--ink-500);
    font-size: 9px;
    line-height: 1.5;
}

.sidebar-upgrade button {
    width: 100%;
    min-height: 31px;
    border-radius: 8px;
    color: white;
    background: var(--violet-700);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.sidebar-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 8px 0;
    border-top: 1px solid var(--ink-150);
}

.profile-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, #38445b, #1c2330);
    font-size: 9px;
    font-weight: 850;
}

.sidebar-profile strong,
.sidebar-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile strong {
    font-size: 10px;
}

.sidebar-profile small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 8px;
}

.sidebar-profile button {
    color: var(--ink-500);
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--ink-150);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    color: var(--ink-700);
    background: white;
}

.sidebar-toggle svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.dashboard-search {
    display: flex;
    width: min(360px, 42vw);
    height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    background: var(--ink-50);
}

.dashboard-search svg {
    width: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--ink-400);
    stroke-width: 1.7;
}

.dashboard-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink-800);
    background: transparent;
    font-size: 11px;
}

.dashboard-search input::placeholder {
    color: var(--ink-400);
}

.dashboard-search kbd {
    padding: 3px 5px;
    border: 1px solid var(--ink-200);
    border-radius: 5px;
    color: var(--ink-400);
    background: white;
    box-shadow: 0 1px 0 var(--ink-200);
    font-size: 7px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-button {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    color: var(--ink-600);
    background: white;
    cursor: pointer;
}

.icon-button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border: 1.5px solid white;
    border-radius: 50%;
    background: #f15b6c;
}

.topbar-primary-button,
.primary-dashboard-button,
.secondary-dashboard-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.topbar-primary-button,
.primary-dashboard-button {
    color: white;
    background: var(--violet-700);
    box-shadow: 0 8px 19px rgba(99,70,237,.14);
}

.topbar-primary-button svg,
.secondary-dashboard-button svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.secondary-dashboard-button {
    border: 1px solid var(--ink-150);
    color: var(--ink-700);
    background: white;
}

.topbar-primary-button:disabled,
.primary-dashboard-button:disabled,
.secondary-dashboard-button:disabled {
    cursor: wait;
    opacity: .66;
}

.dashboard-page {
    max-width: 1440px;
    margin-inline: auto;
    padding: 34px 30px 22px;
}

.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-eyebrow,
.panel-eyebrow {
    color: var(--ink-400);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-welcome h1 {
    margin: 8px 0 7px;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.dashboard-welcome p {
    margin: 0;
    color: var(--ink-500);
    font-size: 12px;
}

.welcome-actions {
    display: flex;
    gap: 8px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-top: 28px;
}

.dashboard-stat-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ink-150);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
}

.stat-icon svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-icon-violet {
    color: var(--violet-700);
    background: var(--violet-100);
}

.stat-icon-blue {
    color: var(--blue-600);
    background: var(--blue-100);
}

.stat-icon-orange {
    color: var(--orange-600);
    background: var(--orange-100);
}

.stat-icon-green {
    color: var(--green-600);
    background: var(--green-100);
}

.stat-change {
    padding: 5px 7px;
    border-radius: 999px;
    color: var(--green-600);
    background: var(--green-50);
    font-size: 8px;
    font-weight: 800;
}

.stat-change.neutral {
    color: var(--ink-500);
    background: var(--ink-100);
}

.stat-label,
.stat-value {
    display: block;
}

.stat-label {
    margin-top: 25px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 670;
}

.stat-value {
    margin-top: 5px;
    font-size: 27px;
    letter-spacing: -0.045em;
}

.skeleton-card .stat-value,
.skeleton-card .stat-change {
    color: transparent;
    background:
        linear-gradient(90deg, #f0f1f4 20%, #e6e8ed 50%, #f0f1f4 80%);
    background-size: 240% 100%;
    animation: skeleton 1.5s infinite linear;
}

.skeleton-card .stat-value {
    width: 70px;
    border-radius: 6px;
}

@keyframes skeleton {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.dashboard-grid {
    display: grid;
    gap: 13px;
    margin-top: 13px;
}

.dashboard-grid-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
}

.panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--ink-150);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-header h2 {
    margin: 6px 0 0;
    font-size: 17px;
    letter-spacing: -0.035em;
}

.panel-header select {
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--ink-150);
    border-radius: 8px;
    outline: 0;
    color: var(--ink-600);
    background: var(--ink-50);
    font-size: 9px;
}

.traffic-summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 24px;
}

.traffic-summary strong {
    font-size: 27px;
    letter-spacing: -0.045em;
}

.traffic-summary span {
    color: var(--green-600);
    font-size: 9px;
    font-weight: 850;
}

.traffic-summary small {
    color: var(--ink-400);
    font-size: 8px;
}

.chart-wrap {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 9px;
    margin-top: 13px;
}

.chart-y-axis {
    display: flex;
    height: 250px;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 10px;
    color: var(--ink-400);
    text-align: right;
    font-size: 7px;
}

.chart-stage {
    min-width: 0;
}

#traffic-chart {
    width: 100%;
    height: 250px;
    overflow: visible;
}

.chart-grid-lines path {
    fill: none;
    stroke: #eceef2;
    stroke-width: 1;
}

.traffic-area {
    fill: url(#dashboard-chart-fill);
}

.traffic-line {
    fill: none;
    stroke: var(--violet-600);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.traffic-point-halo {
    fill: white;
    stroke: rgba(115,87,255,.15);
    stroke-width: 8;
    vector-effect: non-scaling-stroke;
}

.traffic-point {
    fill: white;
    stroke: var(--violet-600);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-x-axis {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: -3px;
    color: var(--ink-400);
    text-align: center;
    font-size: 7px;
}

.panel-link-button {
    padding: 0;
    color: var(--violet-700);
    background: transparent;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.activity-feed {
    margin-top: 16px;
}

.activity-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ink-100);
}

.activity-feed-item:last-child {
    border-bottom: 0;
}

.activity-feed-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
}

.activity-feed-icon svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.activity-success {
    color: var(--green-600);
    background: var(--green-100);
}

.activity-domain {
    color: var(--blue-600);
    background: var(--blue-100);
}

.activity-build {
    color: var(--orange-600);
    background: var(--orange-100);
}

.activity-member {
    color: var(--violet-700);
    background: var(--violet-100);
}

.activity-feed-item strong,
.activity-feed-item p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-feed-item strong {
    font-size: 10px;
}

.activity-feed-item p {
    margin: 4px 0 0;
    color: var(--ink-500);
    font-size: 8px;
}

.activity-feed-item time {
    color: var(--ink-400);
    font-size: 7px;
    white-space: nowrap;
}

.panel-loading,
.panel-error {
    padding: 30px 0;
    color: var(--ink-400);
    text-align: center;
    font-size: 10px;
}

.panel-error {
    color: #cf4456;
}

.projects-panel {
    margin-top: 13px;
    padding-bottom: 5px;
}

.projects-header {
    align-items: center;
    padding-bottom: 16px;
}

.projects-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-filter-button {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--ink-150);
    border-radius: 8px;
    color: var(--ink-600);
    background: white;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
}

.table-filter-button svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.projects-table-wrap {
    overflow-x: auto;
    margin-inline: -20px;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.projects-table th,
.projects-table td {
    padding: 13px 20px;
    border-top: 1px solid var(--ink-100);
    text-align: left;
    font-size: 9px;
}

.projects-table th {
    color: var(--ink-400);
    background: var(--ink-50);
    font-size: 8px;
    font-weight: 800;
}

.projects-table td {
    color: var(--ink-600);
}

.project-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 850;
}

.project-icon-1 {
    color: var(--violet-700);
    background: var(--violet-100);
}

.project-icon-2 {
    color: var(--blue-600);
    background: var(--blue-100);
}

.project-icon-3 {
    color: var(--orange-600);
    background: var(--orange-100);
}

.project-icon-4 {
    color: var(--green-600);
    background: var(--green-100);
}

.project-cell strong,
.project-cell small {
    display: block;
}

.project-cell strong {
    color: var(--ink-800);
    font-size: 10px;
}

.project-cell small {
    margin-top: 4px;
    color: var(--ink-400);
    font-size: 8px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 750;
}

.project-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.project-status-live {
    color: var(--green-600);
    background: var(--green-50);
}

.project-status-live i {
    background: var(--green-600);
}

.project-status-building {
    color: var(--orange-600);
    background: #fff8ee;
}

.project-status-building i {
    background: var(--orange-600);
}

.region-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.region-cell i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4c7fdc;
    box-shadow: 0 0 0 3px #edf3ff;
}

.row-menu-button {
    padding: 7px;
    color: var(--ink-400);
    background: transparent;
    cursor: pointer;
}

.table-loading,
.table-error {
    padding: 34px !important;
    color: var(--ink-400) !important;
    text-align: center !important;
}

.table-error {
    color: #cf4456 !important;
}

.backend-test-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    margin-top: 13px;
    padding: 27px;
}

.backend-test-copy h2 {
    margin: 7px 0 10px;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.backend-test-copy > p {
    max-width: 460px;
    margin: 0;
    color: var(--ink-500);
    font-size: 10px;
    line-height: 1.7;
}

.backend-test-copy code {
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--violet-700);
    background: var(--violet-50);
    font-size: 9px;
}

.backend-health {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.health-light {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25ad73;
    box-shadow: 0 0 0 5px #eaf8f1;
}

.backend-health strong,
.backend-health small {
    display: block;
}

.backend-health strong {
    font-size: 10px;
}

.backend-health small {
    margin-top: 3px;
    color: var(--ink-400);
    font-size: 8px;
}

.backend-test-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-500);
    font-size: 9px;
    font-weight: 750;
}

.backend-input-row {
    display: flex;
    gap: 8px;
}

.backend-input-row input {
    min-width: 0;
    height: 40px;
    flex: 1;
    padding: 0 12px;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    outline: 0;
    color: var(--ink-800);
    background: var(--ink-50);
    font-size: 10px;
}

.backend-input-row input:focus {
    border-color: #a99aff;
    box-shadow: 0 0 0 3px var(--violet-50);
}

.backend-input-row button {
    min-width: 105px;
    border-radius: 9px;
    color: white;
    background: var(--violet-700);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.backend-input-row button:disabled {
    cursor: wait;
    opacity: .66;
}

.backend-test-form pre {
    min-height: 128px;
    margin: 10px 0 0;
    padding: 13px;
    overflow: auto;
    border: 1px solid #272d38;
    border-radius: 10px;
    color: #cbd3cd;
    background: #11171a;
    font-size: 8px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 2px 3px;
    color: var(--ink-400);
    font-size: 8px;
}

/* Errors and toast */

.error-body {
    min-height: 100vh;
    color: white;
    background:
        radial-gradient(circle at 50% 20%, rgba(115,87,255,.19), transparent 30rem),
        var(--marketing-bg);
}

.error-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    text-align: center;
}

.error-number {
    margin-top: 50px;
    color: rgba(169,154,255,.3);
    font-size: clamp(7rem, 23vw, 15rem);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.09em;
}

.error-page h1 {
    max-width: 720px;
    margin: 20px 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -.06em;
}

.error-page p {
    margin: 0 0 28px;
    color: var(--marketing-muted);
}

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: min(380px, calc(100% - 44px));
    padding: 14px 17px;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
    color: var(--ink-800);
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
    font-size: 11px;
    font-weight: 700;
}

.toast[data-type="error"] {
    color: #a93242;
    border-color: #f2c8ce;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 650ms ease,
        transform 650ms cubic-bezier(.2,.7,.2,1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 80px;
    }

    .hero-copy {
        max-width: 780px;
    }

    .hero-product {
        max-width: 790px;
    }

    .feature-bento {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-row: auto;
        min-height: 680px;
    }

    .workflow-grid {
        gap: 65px;
    }

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

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid-main {
        grid-template-columns: 1fr;
    }

    .activity-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }
}

@media (max-width: 900px) {
    .dashboard-app {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-102%);
        width: 248px;
        box-shadow: 26px 0 70px rgba(20,24,34,.16);
        transition: transform 210ms ease;
    }

    .app-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-backdrop::after {
        position: fixed;
        z-index: 25;
        inset: 0;
        content: "";
        background: rgba(17,20,28,.28);
        backdrop-filter: blur(2px);
    }

    .sidebar-toggle {
        display: grid;
    }

    .dashboard-topbar {
        padding-inline: 20px;
    }

    .dashboard-page {
        padding-inline: 20px;
    }

    .backend-test-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100% - 28px, 1180px);
    }

    .marketing-header {
        min-height: 74px;
    }

    .mobile-menu-button {
        display: block;
    }

    .marketing-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--marketing-line);
        border-radius: 14px;
        background: rgba(8,17,14,.98);
        box-shadow: var(--shadow-dark);
        backdrop-filter: blur(18px);
    }

    .marketing-nav-open {
        display: grid;
    }

    .marketing-nav > a {
        padding: 12px;
        border-radius: 9px;
    }

    .nav-dashboard-link {
        justify-content: center;
    }

    .hero-section {
        gap: 48px;
        padding-block: 60px 80px;
    }

    .hero-copy h1 {
        font-size: clamp(3.8rem, 17vw, 5.7rem);
    }

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-actions > * {
        width: 100%;
    }

    .preview-shell {
        transform: none;
    }

    .floating-status {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 24px);
        margin: -19px auto 0;
    }

    .logo-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
        padding-block: 28px;
    }

    .logo-strip span:last-child {
        grid-column: 1 / -1;
    }

    .product-section,
    .workflow-section,
    .performance-section {
        padding-block: 90px;
    }

    .bento-card {
        padding: 25px;
    }

    .bento-large {
        min-height: auto;
    }

    .analytics-visual {
        margin-top: 40px;
        padding: 20px;
    }

    .analytics-bars {
        height: 210px;
        gap: 7px;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .workflow-copy {
        position: static;
    }

    .performance-card {
        padding: 34px 25px;
    }

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

    .final-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 35px 25px;
    }

    .primary-action-light {
        width: 100%;
    }

    .marketing-footer {
        grid-template-columns: 1fr;
        padding-block: 38px;
    }

    .dashboard-search {
        width: min(48vw, 300px);
    }

    .dashboard-search kbd {
        display: none;
    }

    .topbar-primary-button {
        width: 38px;
        padding: 0;
        font-size: 0;
    }

    .topbar-primary-button svg {
        width: 17px;
    }

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

    .welcome-actions {
        width: 100%;
    }

    .welcome-actions button {
        flex: 1;
    }

    .activity-feed {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .preview-topbar {
        grid-template-columns: 1fr auto;
    }

    .preview-search {
        display: none;
    }

    .preview-body {
        grid-template-columns: 36px 1fr;
    }

    .preview-sidebar {
        gap: 12px;
    }

    .preview-sidebar span {
        width: 14px;
        height: 14px;
    }

    .preview-content {
        padding: 20px 14px;
    }

    .preview-stats {
        grid-template-columns: 1fr 1fr;
    }

    .preview-stats article:last-child {
        grid-column: 1 / -1;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-activity-card {
        display: none;
    }

    .dashboard-topbar {
        padding-inline: 13px;
    }

    .dashboard-page {
        padding: 25px 13px 18px;
    }

    .dashboard-search {
        width: 52vw;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .projects-actions .panel-link-button {
        display: none;
    }

    .backend-input-row {
        flex-direction: column;
    }

    .backend-input-row button {
        min-height: 40px;
    }

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

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