:root {
    --bg: #0b1021;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-alt: rgba(29, 37, 63, 0.7);
    --accent: #6366f1;
    --accent-light: rgba(99, 102, 241, 0.18);
    --text: #f5f7ff;
    --text-muted: rgba(245, 247, 255, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 80px rgba(3, 8, 20, 0.4);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #181f3c, var(--bg) 45%, #06070e 100%);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

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

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1640px, 95vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    background: linear-gradient(120deg, rgba(12, 15, 31, 0.85), rgba(12, 15, 31, 0.2));
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.nav-links .cta-link {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.hero {
    padding: 6.5rem 0 5rem;
    overflow: visible;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    align-items: flex-start;
    text-align: left;
}

.hero-copy .lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    max-width: none;
    padding-top: 0.4rem;
}

.hero-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    color: var(--text-muted);
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
    background: rgba(13, 18, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(14px);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.2);
    color: #cbd5ff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: #cbd5ff;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    z-index: 0;
    --embed-width: 1400;
    --embed-height: 820;
}

.hero-visual::after {
    content: none;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
    }

    .hero-visual {
        margin-left: auto;
        justify-self: stretch;
        max-width: none;
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
}

.btn.secondary {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn.github {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f1f5ff;
    background: rgba(12, 16, 35, 0.4);
    gap: 0.5rem;
}

.btn.github:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.header-login-mobile {
    display: none;
}

.browser-frame {
    width: min(100%, 1100px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.browser-bar,
.dot,
.browser-body {
    display: none;
}

.hero-embed {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: #0b1021;
}

.embed-scale {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: var(--embed-height-px, calc(var(--embed-height) * 1px));
    overflow: hidden;
    border-radius: 14px;
    min-height: 240px;
}

.embed-scale-inner {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(var(--embed-width) * 1px);
    height: calc(var(--embed-height) * 1px);
    transform: translateX(-50%) scale(var(--embed-scale, 1));
    transform-origin: top center;
}
.editor-shell {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    border-radius: 26px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: linear-gradient(180deg, rgba(246, 246, 252, 0.92) 0%, #ffffff 12%, #ffffff 100%);
    box-shadow: 0 30px 70px rgba(6, 10, 20, 0.35);
    color: #252a33;
    font-family: 'Inter', system-ui, sans-serif;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(18, 20, 28, 0.06);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.sidebar-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: #f2f3f6;
}

.sidebar-trigger::before {
    content: '';
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: rgba(37, 42, 51, 0.65);
    box-shadow: 0 6px 0 rgba(37, 42, 51, 0.55), 0 -6px 0 rgba(37, 42, 51, 0.55);
}

.doc-meta {
    min-width: 0;
}

.doc-label {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(131, 141, 161, 0.9);
}

.doc-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #252a33;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: #f2f3f6;
    color: #596272;
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(89, 98, 114, 0.65);
}

.search-icon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -4px;
    width: 6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(89, 98, 114, 0.65);
    transform: rotate(40deg);
    transform-origin: center;
}

.search-placeholder {
    white-space: nowrap;
}

.search-key {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(89, 98, 114, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: rgba(255, 255, 255, 0.65);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.view-toggle-group {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: rgba(242, 243, 246, 0.9);
}

.view-toggle {
    border: none;
    background: transparent;
    color: rgba(89, 98, 114, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.view-toggle.active {
    background: #ffffff;
    color: #6e63d6;
    box-shadow: 0 8px 16px rgba(110, 99, 214, 0.2);
}

.presence-group {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.presence-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(235, 239, 248, 0.95);
    color: #252a33;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 20, 36, 0.18);
}

.presence-avatar + .presence-avatar {
    margin-left: -0.6rem;
}

.presence-avatar.accent {
    background: linear-gradient(135deg, #6e63d6, #8f86e8);
    color: #fff;
}

.presence-avatar.ghost {
    background: rgba(242, 243, 246, 0.7);
    color: rgba(37, 42, 51, 0.55);
}

.header-btn {
    border: 1px solid rgba(18, 20, 28, 0.08);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.52rem 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #252a33;
    box-shadow: 0 10px 20px rgba(15, 20, 36, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 20, 36, 0.12);
}

.header-btn.share {
    background: linear-gradient(135deg, #6e63d6, #8f86e8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(110, 99, 214, 0.35);
}

.header-btn.icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.theme-icon {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd06f, #f6a437);
    box-shadow: inset -2px -2px 0 rgba(255, 227, 170, 0.6);
}

.theme-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 2px;
    height: 6px;
    background: rgba(246, 164, 55, 0.9);
    border-radius: 999px;
    transform: translateX(-50%);
    box-shadow: 0 18px 0 rgba(246, 164, 55, 0.5), -6px 6px 0 rgba(246, 164, 55, 0.5), 6px 6px 0 rgba(246, 164, 55, 0.5);
}

.editor-main {
    display: flex;
    gap: 1.1rem;
    padding: 0 1.25rem 1.25rem;
}

.editor-sidebar {
    width: 248px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    box-shadow: 0 18px 36px rgba(12, 18, 30, 0.14);
    padding: 1.1rem 1rem;
}

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

.sidebar-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(131, 141, 161, 0.85);
}

.sidebar-title {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #252a33;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-btn {
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #6e63d6, #8f86e8);
    color: #fff;
    box-shadow: 0 12px 24px rgba(110, 99, 214, 0.25);
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: rgba(242, 243, 246, 0.85);
    position: relative;
}

.icon-btn::before,
.icon-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 2px;
    background: rgba(89, 98, 114, 0.7);
    border-radius: 999px;
    transform: translateX(-50%);
}

.icon-btn::before {
    top: 14px;
}

.icon-btn::after {
    top: 19px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-section + .sidebar-section {
    margin-top: 0.9rem;
}

.sidebar-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(131, 141, 161, 0.8);
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    color: rgba(89, 98, 114, 0.9);
    background: transparent;
}

.sidebar-item.expanded {
    background: rgba(110, 99, 214, 0.08);
    color: #4a3db3;
}

.sidebar-item.active {
    background: rgba(110, 99, 214, 0.12);
    color: #3d2f9c;
    font-weight: 600;
}

.sidebar-icon {
    width: 16px;
    height: 12px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #dfe3f1 0%, #cbd1e4 100%);
    position: relative;
}

.sidebar-icon.folder::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 4px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #c7cde6 0%, #b9bfdc 100%);
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(89, 98, 114, 0.4);
}

.sidebar-item.active .sidebar-dot {
    background: #6e63d6;
}

.sidebar-card.sidebar-footer {
    padding: 0.9rem 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e63d6, #8f86e8);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-meta {
    min-width: 0;
}

.sidebar-user-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-user-mail {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(89, 98, 114, 0.7);
}

.editor-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(12, 18, 30, 0.16);
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.status-pill {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.status-pill.success {
    background: rgba(63, 143, 107, 0.12);
    color: #3f8f6b;
}

.canvas-status {
    font-size: 0.85rem;
    color: rgba(89, 98, 114, 0.9);
}

.canvas-actions {
    margin-left: auto;
    display: flex;
    gap: 0.45rem;
}

.canvas-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    color: rgba(89, 98, 114, 0.75);
    background: rgba(242, 243, 246, 0.9);
    border: 1px solid rgba(18, 20, 28, 0.06);
}

.canvas-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    min-height: 220px;
}

.editor-pane {
    background: rgba(248, 249, 252, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(18, 20, 28, 0.06);
    padding: 0.9rem 0.9rem;
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.84rem;
    display: grid;
    gap: 0.35rem;
}

.monaco-line {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0.85rem;
    align-items: baseline;
}

.line-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: rgba(89, 98, 114, 0.45);
}

.token-heading {
    color: #252a33;
    font-weight: 600;
}

.token-heading.subtle {
    color: #4a3db3;
}

.token-text {
    color: rgba(37, 42, 51, 0.85);
}

.token-code {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.4rem;
    border-radius: 6px;
    background: rgba(110, 99, 214, 0.12);
    color: #4a3db3;
    font-size: 0.76rem;
}

.token-channel {
    color: #2f8cd3;
    font-weight: 600;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: rgba(63, 143, 107, 0.15);
    color: #2f805f;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.cursor-hint {
    grid-column: 2;
    font-size: 0.75rem;
    color: rgba(110, 99, 214, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cursor-hint::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8f86e8;
    box-shadow: 0 0 0 4px rgba(143, 134, 232, 0.25);
}

.preview-pane {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(18, 20, 28, 0.06);
    padding: 1rem 1.1rem;
    overflow: hidden;
}

.preview-prose {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    color: #252a33;
    font-size: 0.92rem;
    line-height: 1.6;
}

.preview-prose h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #252a33;
}

.preview-prose h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3d2f9c;
}

.preview-prose ul,
.preview-prose ol {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(37, 42, 51, 0.85);
    display: grid;
    gap: 0.4rem;
}

.preview-prose code {
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(110, 99, 214, 0.12);
    border-radius: 6px;
    padding: 0.12rem 0.35rem;
    font-size: 0.8rem;
}

.preview-prose strong {
    color: #252a33;
}

.canvas-right {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidecard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(18, 20, 28, 0.08);
    padding: 0.95rem 1.1rem;
    box-shadow: 0 16px 32px rgba(12, 18, 30, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #252a33;
    font-size: 0.84rem;
}

.sidecard h6 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(131, 141, 161, 0.85);
}

.sidecard p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidecard ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.4rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4fd67c;
    box-shadow: 0 0 0 4px rgba(79, 214, 124, 0.18);
}

.status-dot.review {
    background: #f1aa42;
    box-shadow: 0 0 0 4px rgba(241, 170, 66, 0.22);
}

@media (max-width: 1200px) {
    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.6rem;
    }

    .header-search {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .editor-main {
        flex-direction: column;
    }

    .editor-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1 1 260px;
    }

    .editor-content {
        flex-direction: column;
    }

    .canvas-right {
        width: 100%;
        flex-direction: row;
        gap: 0.75rem;
    }

    .sidecard {
        flex: 1;
    }
}

@media (max-width: 820px) {
    .header-left {
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .search-box {
        width: 100%;
        justify-content: space-between;
    }

    .canvas-inner {
        grid-template-columns: 1fr;
    }

    .canvas-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .canvas-right {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        padding: 1.2rem;
        order: 2;
    }

    .hero-content {
        order: 1;
        max-width: 100%;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-highlights li {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-sub {
        text-align: center;
    }

    .hero-embed {
        min-height: clamp(380px, 70vw, 620px);
    }
}

.code-block {
    background: rgba(10, 14, 33, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #d1dcff;
    font-size: 0.95rem;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.presence {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.presence li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    background: rgba(11, 16, 35, 0.65);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--text-muted);
    margin: 0.5rem auto 0;
    max-width: 560px;
}

.feature-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 20, 43, 0.82) 0%, rgba(9, 13, 31, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 2rem;
    min-height: 220px;
    box-shadow: 0 18px 48px rgba(6, 10, 26, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(37, 99, 235, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 28px 60px rgba(6, 10, 26, 0.35);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
}

.shaded {
    background: rgba(10, 13, 26, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.workflow-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.steps li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
}

.steps h4 {
    margin: 0 0 0.6rem;
}

.steps p {
    color: var(--text-muted);
}

.plugin-showcase {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plugin-showcase article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    min-height: 200px;
}

.start-grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.start-card {
    background: linear-gradient(180deg, rgba(13, 18, 38, 0.78) 0%, rgba(8, 12, 28, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    box-shadow: 0 20px 48px rgba(6, 10, 26, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.start-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
}

.start-grid ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.75rem;
}

.start-grid li::marker {
    color: var(--accent);
}
.start-card .btn {
    align-self: flex-start;
}

.cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.2));
}

.cta-inner {
    text-align: center;
    background: rgba(10, 13, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.cta-actions {
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: rgba(6, 9, 19, 0.9);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-inner nav {
    display: flex;
    gap: 1.5rem;
}

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .header-login-mobile {
        display: inline-flex;
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-highlights li {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 0.55rem;
    }

    .cta-inner {
        padding: 2.4rem 1.6rem;
    }
}
