@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --brand-50: #ecfdf5;
    --brand-100: #d1fae5;
    --brand-200: #a7f3d0;
    --brand-300: #6ee7b7;
    --brand-400: #34d399;
    --brand-500: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-800: #065f46;
    --brand-900: #064e3b;

    --surface-50: #ffffff;
    --surface-100: #fafaf9;
    --surface-200: #f5f5f4;
    --surface-300: #e7e5e4;

    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-premium: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-premium-lg: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    --shadow-premium-xl: 0 1px 3px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(16,185,129,0.12);
    --shadow-glow-lg: 0 0 60px rgba(16,185,129,0.18);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--surface-100);
    color: var(--neutral-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

.text-balance { text-wrap: balance; }
code, pre, .font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── Scrollbar Premium ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-500); }

/* ── Animated Background Particles ── */
.bg-particles {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-particles .orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
    animation: floatOrb 20s ease-in-out infinite;
}
.bg-particles .orb:nth-child(1) { width: 500px; height: 500px; background: var(--brand-400); top: -10%; left: -5%; animation-delay: 0s; }
.bg-particles .orb:nth-child(2) { width: 400px; height: 400px; background: var(--brand-300); bottom: 10%; right: -8%; animation-delay: -7s; opacity: 0.25; }
.bg-particles .orb:nth-child(3) { width: 300px; height: 300px; background: #a7f3d0; top: 40%; left: 60%; animation-delay: -14s; opacity: 0.2; }
.bg-particles .orb:nth-child(4) { width: 350px; height: 350px; background: var(--brand-500); bottom: -5%; left: 20%; animation-delay: -5s; opacity: 0.15; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ── Noise texture overlay for premium feel ── */
.noise-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px 256px;
}

/* ── Glass morphism utilities ── */
.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.4);
}
.glass-dark {
    background: rgba(12,10,9,0.65);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── Sidebar Navigation (Glass Premium) ── */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    width: 280px;
    background: rgba(12,10,9,0.88);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border-right: 1px solid rgba(255,255,255,0.06);
    color: #e2e8f0;
    overflow-y: auto;
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, transparent 40%);
    pointer-events: none;
}
.sidebar-header {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.sidebar-header .logo-wrap {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    text-align: center;
}
.sidebar-header .logo-wrap img {
    height: 95px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(16,185,129,0.35));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.sidebar-header .logo-wrap:hover img {
    filter: drop-shadow(0 0 28px rgba(16,185,129,0.55));
    transform: scale(1.03);
}
.sidebar-header .logo-text {
    display: none;
}
.sidebar-header .version-tag {
    font-size: 0.7rem; color: var(--brand-400); font-weight: 700;
    letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.sidebar-header .version-tag::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500);
    box-shadow: 0 0 10px var(--brand-500); animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.sidebar-section {
    padding: 0 0.75rem; margin-bottom: 0.25rem;
}
.sidebar-section-title {
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.14em; color: rgba(255,255,255,0.28);
    padding: 1.1rem 0.6rem 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.04); margin-top: 0.25rem;
}
.sidebar a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.65rem; color: rgba(255,255,255,0.55);
    text-decoration: none; border-radius: var(--radius-md);
    font-size: 0.81rem; font-weight: 500;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.sidebar a::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--brand-500); border-radius: 0 2px 2px 0;
    transform: scaleY(0); transition: transform 0.3s ease;
}
.sidebar a:hover {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.95);
    transform: translateX(2px);
}
.sidebar a:hover::before { transform: scaleY(1); }
.sidebar a.active {
    background: rgba(16,185,129,0.12); color: var(--brand-300);
    font-weight: 600;
}
.sidebar a.active::before { transform: scaleY(1); }
.sidebar a .badge-star { font-size: 0.6rem; margin-left: auto; color: var(--brand-400); }

.sidebar-bottom {
    margin-top: auto; padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.68rem; color: rgba(255,255,255,0.22);
    text-align: center;
}
.sidebar-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.sidebar-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── Mobile sidebar toggle ── */
.sidebar-toggle {
    display: none;
    position: fixed; top: 1rem; left: 1rem; z-index: 60;
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: var(--neutral-900); color: #fff; border: none; cursor: pointer;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-premium-lg);
}

/* ── Main Content Area ── */
.main-content {
    margin-left: 280px; min-height: 100vh;
    position: relative; z-index: 2;
}

/* ── Top Nav ── */
.top-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 2.5rem; height: 64px;
    display: flex; align-items: center; gap: 1rem;
}
.top-nav .breadcrumb { font-size: 0.78rem; color: var(--neutral-500); font-weight: 500; }
.top-nav .breadcrumb a { color: var(--brand-600); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.top-nav .breadcrumb a:hover { color: var(--brand-800); }

/* ── Content Container ── */
.container { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2.5rem; }

/* ── Page Hero (Premium Gradient) ── */
.page-hero {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 40%, #059669 100%);
    border-radius: var(--radius-2xl); padding: 3rem 3.5rem;
    color: #fff; margin-bottom: 2.5rem;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-premium-xl), 0 0 60px rgba(16,185,129,0.15);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 120%, rgba(52,211,153,0.25), transparent 60%);
    pointer-events: none;
}
.page-hero::after {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,0.04); filter: blur(60px);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { transform: scale(1) translate(0,0); opacity: 0.04; }
    to { transform: scale(1.1) translate(-20px, 20px); opacity: 0.07; }
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.page-hero p { font-size: 1.05rem; opacity: 0.9; margin-top: 0.75rem; max-width: 720px; position: relative; z-index: 1; font-weight: 400; line-height: 1.6; }
.page-hero .hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; position: relative; z-index: 1; }
.page-hero .hero-stat { text-align: center; }
.page-hero .hero-stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.page-hero .hero-stat .label { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 0.2rem; }

/* ── Stats Row (Glass Cards) ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; margin: 2rem 0; }
.stat-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.5rem 1rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.6);
    text-align: center; transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.stat-card:hover { box-shadow: var(--shadow-premium-lg); transform: translateY(-3px); border-color: rgba(16,185,129,0.15); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--brand-600); letter-spacing: -0.03em; }
.stat-card .label { font-size: 0.72rem; color: var(--neutral-500); font-weight: 600; margin-top: 0.35rem; letter-spacing: 0.02em; }

/* ── Section Headers ── */
.section-header {
    margin: 3rem 0 1.5rem;
    display: flex; align-items: baseline; gap: 1rem;
}
.section-header h2 {
    font-size: 1.6rem; font-weight: 800; color: var(--neutral-900);
    letter-spacing: -0.025em;
}
.section-header .underline {
    width: 48px; height: 4px; background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
    border-radius: 4px; margin-top: 0.6rem;
    position: relative;
}
.section-header .underline::after {
    content: ''; position: absolute; right: -8px; top: 0; bottom: 0; width: 8px;
    background: var(--brand-400); border-radius: 4px; opacity: 0.4;
}

/* ── Feature Cards Grid (Premium Glass) ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}
.feature-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.6rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.7);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow-premium-lg);
    border-color: rgba(16,185,129,0.12);
    transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .card-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(16,185,129,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .card-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 20px rgba(16,185,129,0.15);
}
.feature-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.82rem; color: var(--neutral-500); line-height: 1.6; }
.feature-card .card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.feature-card .tag {
    font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem;
    border-radius: 999px; background: var(--brand-50); color: var(--brand-700);
    letter-spacing: 0.02em; border: 1px solid rgba(16,185,129,0.1);
    transition: all 0.2s ease;
}
.feature-card:hover .tag { background: var(--brand-100); }

/* ── Module Cards (Link Cards) ── */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.1rem; }
.module-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.6rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.7);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.module-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.module-card:hover { box-shadow: var(--shadow-premium-lg); border-color: rgba(16,185,129,0.15); transform: translateY(-4px); }
.module-card:hover::before { transform: scaleX(1); }
.module-card .mc-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(16,185,129,0.08);
    transition: transform 0.3s ease;
}
.module-card:hover .mc-icon { transform: scale(1.1) rotate(-3deg); }
.module-card h3 { font-size: 1rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 0.3rem; }
.module-card p { font-size: 0.8rem; color: var(--neutral-500); flex: 1; line-height: 1.55; }
.module-card .mc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.85rem; }

/* ── Accent variants ── */
.feature-card.accent-blue .card-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.feature-card.accent-amber .card-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.feature-card.accent-purple .card-icon { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: #7c3aed; }
.feature-card.accent-rose .card-icon { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #e11d48; }
.feature-card.accent-cyan .card-icon { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0891b2; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; border-radius: var(--radius-lg); overflow: hidden; }
.data-table thead th {
    background: linear-gradient(180deg, var(--neutral-100), var(--neutral-50));
    padding: 0.8rem 1.1rem;
    font-size: 0.68rem; font-weight: 800; color: var(--neutral-600);
    text-transform: uppercase; letter-spacing: 0.08em; text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}
.data-table tbody td {
    padding: 0.75rem 1.1rem; font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: rgba(255,255,255,0.6);
    transition: background 0.2s;
}
.data-table tbody tr:hover td { background: rgba(16,185,129,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }
.data-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.data-table thead th:last-child { border-top-right-radius: var(--radius-lg); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.badge-warning { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.badge-info { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.badge-neutral { background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200)); color: var(--neutral-600); }

/* ── CTA Section (Premium Dark) ── */
.cta-section {
    background: linear-gradient(135deg, var(--neutral-900) 0%, #171717 50%, var(--neutral-950) 100%);
    border-radius: var(--radius-2xl);
    padding: 3.5rem; text-align: center; color: #fff;
    position: relative; overflow: hidden; margin: 3rem 0;
    box-shadow: var(--shadow-premium-xl);
    border: 1px solid rgba(255,255,255,0.04);
}
.cta-section::before {
    content: ''; position: absolute; width: 500px; height: 500px;
    border-radius: 50%; filter: blur(120px);
    background: var(--brand-500); opacity: 0.12;
    top: -120px; right: -80px;
    animation: ctaOrb1 10s ease-in-out infinite alternate;
}
.cta-section::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    border-radius: 50%; filter: blur(100px);
    background: var(--brand-400); opacity: 0.08;
    bottom: -100px; left: -60px;
    animation: ctaOrb2 12s ease-in-out infinite alternate;
}
@keyframes ctaOrb1 { from { transform: translate(0,0); } to { transform: translate(-30px, 20px); } }
@keyframes ctaOrb2 { from { transform: translate(0,0); } to { transform: translate(20px, -30px); } }
.cta-section h2 { font-size: 1.9rem; font-weight: 800; position: relative; z-index: 1; letter-spacing: -0.02em; }
.cta-section p { color: rgba(255,255,255,0.55); margin: 0.9rem 0 1.75rem; position: relative; z-index: 1; font-size: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff; font-weight: 700;
    padding: 0.95rem 2.75rem; border-radius: var(--radius-xl); text-decoration: none;
    box-shadow: 0 4px 24px rgba(16,185,129,0.25), 0 0 40px rgba(16,185,129,0.1);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.1);
}
.cta-button:hover {
    background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16,185,129,0.35), 0 0 50px rgba(16,185,129,0.15);
}

/* ── Workflow Steps ── */
.workflow { display: flex; gap: 0; margin: 1.5rem 0; }
.workflow-step { flex: 1; text-align: center; padding: 1.5rem 1rem; position: relative; }
.workflow-step:not(:last-child)::after {
    content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 2px; background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
    border-radius: 2px;
}
.workflow-step .step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; margin-bottom: 0.6rem;
    box-shadow: 0 4px 16px rgba(16,185,129,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workflow-step:hover .step-num { transform: scale(1.1); box-shadow: 0 6px 20px rgba(16,185,129,0.3); }
.workflow-step h4 { font-size: 0.85rem; font-weight: 700; color: var(--neutral-800); }
.workflow-step p { font-size: 0.75rem; color: var(--neutral-500); margin-top: 0.3rem; }

/* ── Screenshots / Media Placeholders ── */
.media-showcase {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(16px);
    border-radius: var(--radius-2xl); padding: 1.5rem;
    box-shadow: var(--shadow-premium-lg); border: 1px solid rgba(255,255,255,0.7);
    margin: 1.5rem 0; overflow: hidden;
}
.media-showcase .showcase-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.media-showcase .showcase-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.media-showcase .showcase-header .dot.red { background: #ff5f57; }
.media-showcase .showcase-header .dot.yel { background: #febc2e; }
.media-showcase .showcase-header .dot.grn { background: #28c840; }
.media-showcase .showcase-header .url-bar {
    flex: 1; background: rgba(0,0,0,0.04); border-radius: 6px; padding: 0.25rem 0.75rem;
    font-size: 0.7rem; color: var(--neutral-400); font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(0,0,0,0.04);
}
.media-showcase img, .media-showcase video, .media-showcase iframe {
    width: 100%; border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    display: block;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--neutral-900), #1a1a1a);
    border-radius: var(--radius-xl); padding: 3rem 2rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; color: rgba(255,255,255,0.6); min-height: 240px;
    position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
}
.video-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.08), transparent 70%);
}
.video-placeholder .play-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(16,185,129,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; z-index: 1; cursor: pointer;
}
.video-placeholder .play-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(16,185,129,0.4);
}
.video-placeholder span { font-size: 0.8rem; font-weight: 600; position: relative; z-index: 1; letter-spacing: 0.03em; }

/* ── Legacy Content Cards (from repaired modules) ── */
.container > h1 {
    font-size: 2rem; font-weight: 800; color: var(--neutral-900);
    letter-spacing: -0.02em; margin-bottom: 0.5rem; margin-top: 0.5rem;
}
.container > .subtitle {
    color: var(--neutral-500); font-size: 1rem; margin-bottom: 2rem;
    max-width: 720px; line-height: 1.6;
}
.container > h2 {
    font-size: 1.4rem; font-weight: 700; color: var(--neutral-900);
    margin: 2.5rem 0 1.25rem; letter-spacing: -0.01em;
    position: relative; padding-bottom: 0.75rem;
}
.container > h2::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
    border-radius: 4px;
}

/* Old feature-grid → premium grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem; margin: 1.5rem 0;
}
.feature-grid .feature-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.6rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.7);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.feature-grid .feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.feature-grid .feature-card:hover {
    box-shadow: var(--shadow-premium-lg);
    border-color: rgba(16,185,129,0.12);
    transform: translateY(-4px);
}
.feature-grid .feature-card:hover::before { transform: scaleX(1); }
.feature-grid .feature-card h4 {
    font-size: 0.95rem; font-weight: 700; color: var(--neutral-900);
    margin-bottom: 0.5rem;
}
.feature-grid .feature-card p {
    font-size: 0.82rem; color: var(--neutral-500); line-height: 1.6;
}

/* Old .card → premium card */
.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.6rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.7);
    margin: 1.5rem 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
    box-shadow: var(--shadow-premium-lg);
    border-color: rgba(16,185,129,0.12);
}
.card p { font-size: 0.85rem; color: var(--neutral-500); line-height: 1.6; margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.card p strong { color: var(--neutral-800); font-weight: 700; }

/* Old tables inside cards → premium tables */
.card table, .container table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 1rem 0; border-radius: var(--radius-lg); overflow: hidden;
}
.card table thead th, .container table thead th {
    background: linear-gradient(180deg, var(--neutral-100), var(--neutral-50));
    padding: 0.8rem 1.1rem;
    font-size: 0.68rem; font-weight: 800; color: var(--neutral-600);
    text-transform: uppercase; letter-spacing: 0.08em; text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}
.card table tbody td, .container table tbody td {
    padding: 0.75rem 1.1rem; font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: rgba(255,255,255,0.6);
    transition: background 0.2s;
}
.card table tbody tr:hover td, .container table tbody tr:hover td { background: rgba(16,185,129,0.04); }
.card table tbody tr:last-child td { border-bottom: none; }

/* Old badges */
.badge {
    display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
    border-radius: 999px; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.02em; margin: 0.1rem;
}
.badge-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.badge-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.badge-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }

/* Old stats-row → premium stat cards */
.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 1rem; margin: 1.5rem 0;
}
.stats-row .stat-box {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl); padding: 1.25rem;
    box-shadow: var(--shadow-premium); border: 1px solid rgba(255,255,255,0.7);
    text-align: center; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.stats-row .stat-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.stats-row .stat-box:hover { box-shadow: var(--shadow-premium-lg); transform: translateY(-3px); }
.stats-row .stat-box:hover::before { transform: scaleX(1); }
.stats-row .stat-box .num {
    font-size: 1.8rem; font-weight: 800; color: var(--brand-600); letter-spacing: -0.02em;
}
.stats-row .stat-box .label {
    font-size: 0.72rem; color: var(--neutral-500); font-weight: 600; margin-top: 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .container { padding: 1.5rem; }
    .page-hero { padding: 2rem; }
    .page-hero h1 { font-size: 1.7rem; }
    .features-grid, .module-grid { grid-template-columns: 1fr; }
    .workflow { flex-direction: column; gap: 1rem; }
    .workflow-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    .page-hero { padding: 1.5rem; border-radius: var(--radius-lg); }
    .page-hero h1 { font-size: 1.4rem; }
    .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
    .section-header h2 { font-size: 1.25rem; }
    .cta-section { padding: 2rem 1.5rem; }
    .cta-section h2 { font-size: 1.4rem; }
}

/* ── Animations ── */
[data-animate] { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
[data-animate].visible { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* Shimmer loading effect for images */
.shimmer {
    background: linear-gradient(90deg, var(--surface-200) 25%, var(--surface-100) 50%, var(--surface-200) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow text */
.text-glow {
    text-shadow: 0 0 20px rgba(16,185,129,0.3), 0 0 40px rgba(16,185,129,0.15);
}

/* Subtle grid pattern for sections */
.grid-pattern {
    background-image: radial-gradient(circle, rgba(16,185,129,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
