@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ══════════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════════ */
:root {
    --bg:           #f9fafb;
    --surface:      #ffffff;
    --surface2:     #f1f5f9;
    --border:       #e2e8f0;
    --border-light: #f0f4f8;
    --primary:      #4285F4;
    --primary-d:    #2563EB;
    --primary-glow: rgba(66,133,244,0.15);
    --primary-light:#eff6ff;
    --accent:       #8b5cf6;
    --green:        #10B981;
    --yellow:       #F59E0B;
    --red:          #EF4444;
    --text:         #0f172a;
    --text-2:       #1e293b;
    --text-muted:   #64748b;
    --text-dim:     #94a3b8;
    --nav-h:        64px;
    --sb-w:         288px;
    --sb-w-closed:  0px;
    --radius:       16px;
    --radius-sm:    10px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:       0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 40px rgba(0,0,0,0.10);
    --font:         'Sora', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'DM Mono', monospace;
    --transition:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════
   READ PROGRESS BAR
══════════════════════════════════════════════════════ */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%; z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════════════ */
.top-nav {
    height: var(--nav-h);
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; gap: 16px; z-index: 300;
}

.nav-left  { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger / sidebar toggle */
.sidebar-toggle {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px; border: none;
    background: transparent; cursor: pointer; padding: 6px;
    border-radius: 8px; transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--surface2); }
.sidebar-toggle span {
    display: block; height: 2px; background: var(--text-2);
    border-radius: 2px; transition: all 0.3s var(--transition);
    transform-origin: center;
}
.sidebar-closed .sidebar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-closed .sidebar-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sidebar-closed .sidebar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font);
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    text-decoration: none; letter-spacing: -0.3px;
}
.brand img { width: 30px; border-radius: 8px; }
.brand-tag {
    background: var(--primary-light); color: var(--primary);
    font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
    border-radius: 99px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Search in nav */
.nav-center { flex: 1; max-width: 480px; margin: 0 auto; }
.search-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 0 14px; height: 38px;
    cursor: pointer; transition: all 0.2s;
}
.search-wrap:focus-within, .search-wrap:hover {
    border-color: var(--primary); background: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-wrap i { color: var(--text-dim); font-size: 0.85rem; flex-shrink: 0; }
.search-wrap input {
    border: none; outline: none; background: transparent;
    font-size: 0.9rem; color: var(--text); font-family: var(--font-body);
    flex: 1; cursor: pointer;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap kbd {
    background: white; border: 1px solid var(--border); border-radius: 5px;
    padding: 1px 6px; font-size: 0.72rem; color: var(--text-dim);
    font-family: var(--font-mono); flex-shrink: 0;
}

.nav-btn {
    font-size: 0.85rem; font-weight: 600; padding: 7px 16px;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: all 0.2s; display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.nav-btn.outline {
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border);
}
.nav-btn.outline:hover { background: var(--surface2); border-color: #cbd5e1; }
.nav-btn.filled {
    background: var(--primary); color: white; border: none;
    box-shadow: 0 2px 8px rgba(66,133,244,0.3);
}
.nav-btn.filled:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════
   DOCS LAYOUT
══════════════════════════════════════════════════════ */
.docs-layout {
    display: flex;
    margin-top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
}

/* ══════════════════════════════════════════════════════
   SIDEBAR — with curly edge + toggle animation
══════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sb-w);
    position: fixed; top: var(--nav-h); bottom: 0; left: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
    transition: width 0.35s var(--ease), transform 0.35s var(--ease);
    z-index: 200;
    display: flex; flex-direction: column;
}

/* Decorative curly SVG edge on sidebar right side */
.sidebar::after {
    content: '';
    position: absolute; top: 0; right: -1px; width: 20px; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 400' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q10 50 0 100 Q10 150 0 200 Q10 250 0 300 Q10 350 0 400 L20 400 L20 0 Z' fill='white'/%3E%3C/svg%3E") no-repeat;
    background-size: 20px 100%;
    pointer-events: none; z-index: 1;
    filter: drop-shadow(2px 0 4px rgba(0,0,0,0.04));
}

.sidebar.collapsed {
    width: 0;
    transform: translateX(-100%);
}
.sidebar.collapsed::after { display: none; }

.sidebar-inner {
    width: var(--sb-w);
    height: 100%;
    overflow-y: auto;
    padding: 28px 0 32px;
    display: flex; flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* Sidebar nav groups */
.sidebar-nav { flex: 1; padding: 0 16px; }
.nav-group { margin-bottom: 28px; }
.nav-group-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-dim);
    padding: 0 12px; margin-bottom: 6px;
}
.nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 12px; border-radius: 10px;
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    color: var(--text-muted); transition: all 0.18s;
    white-space: nowrap;
}
.nav-link i { font-size: 0.8rem; width: 16px; text-align: center; opacity: 0.7; }
.nav-link:hover { background: var(--surface2); color: var(--text-2); }
.nav-link:hover i { opacity: 1; }
.nav-link.active {
    background: var(--primary-light); color: var(--primary); font-weight: 600;
}
.nav-link.active i { opacity: 1; color: var(--primary); }

/* Sidebar footer */
.sidebar-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.sidebar-footer-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
    text-decoration: none; transition: color 0.15s;
}
.sidebar-footer-link:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════ */
.content {
    flex: 1;
    margin-left: var(--sb-w);
    transition: margin-left 0.35s var(--ease);
    min-width: 0;
}
.content.full-width { margin-left: 0; }
.content-inner {
    max-width: 820px;
    padding: 64px 64px 120px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   SCROLL SECTIONS — page-swipe entrance animation
══════════════════════════════════════════════════════ */
.scroll-section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════ */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--primary);
    background: var(--primary-light); padding: 4px 12px;
    border-radius: 99px; margin-bottom: 16px;
}

.page-title {
    font-family: var(--font);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.15;
    color: var(--text); margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    font-size: 1.2rem; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 40px; max-width: 600px;
}

h2 {
    font-family: var(--font);
    font-size: 1.9rem; font-weight: 700; letter-spacing: -0.5px;
    color: var(--text); margin-bottom: 20px; margin-top: 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
    display: flex; align-items: center; gap: 10px;
}

h3 {
    font-family: var(--font);
    font-size: 1.15rem; font-weight: 700; color: var(--text-2);
    margin: 32px 0 12px;
}

p { font-size: 1rem; color: #334155; margin-bottom: 18px; line-height: 1.75; }
ul, ol { padding-left: 22px; margin-bottom: 18px; }
li { font-size: 1rem; color: #334155; margin-bottom: 8px; line-height: 1.7; }
li::marker { color: var(--primary); font-weight: 700; }
strong { color: var(--text); }

a.inline-link {
    color: var(--primary); text-decoration: none; font-weight: 500;
    border-bottom: 1px dashed rgba(66,133,244,0.4);
    transition: border-color 0.15s;
}
a.inline-link:hover { border-bottom-color: var(--primary); }

code {
    background: var(--surface2); color: #d946ef;
    padding: 2px 7px; border-radius: 5px;
    font-family: var(--font-mono); font-size: 0.88em;
    border: 1px solid var(--border);
}
kbd {
    background: var(--surface2); border: 1px solid var(--border);
    border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px;
    font-family: var(--font-mono); font-size: 0.82em; color: var(--text-2);
}

/* ══════════════════════════════════════════════════════
   CALLOUTS
══════════════════════════════════════════════════════ */
.callout {
    display: flex; gap: 14px; padding: 16px 20px;
    border-radius: 12px; margin: 20px 0 28px;
    font-size: 0.95rem; line-height: 1.6;
    border-left: 4px solid;
}
.callout i { margin-top: 2px; flex-shrink: 0; font-size: 1rem; }
.callout.info    { background: #eff6ff; border-color: var(--primary); color: #1e40af; }
.callout.info i  { color: var(--primary); }
.callout.warning { background: #fffbeb; border-color: var(--yellow); color: #92400e; }
.callout.warning i { color: var(--yellow); }
.callout.danger  { background: #fef2f2; border-color: var(--red); color: #991b1b; }
.callout.danger i { color: var(--red); }
.callout.tip     { background: #f0fdf4; border-color: var(--green); color: #065f46; }
.callout.tip i   { color: var(--green); }
.callout strong  { color: inherit; }

/* ══════════════════════════════════════════════════════
   HERO FEATURE GRID
══════════════════════════════════════════════════════ */
.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin: 36px 0;
}
.hero-feat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    transition: transform 0.25s var(--transition), box-shadow 0.25s;
}
.hero-feat:hover {
    transform: translateY(-4px); box-shadow: var(--shadow);
    border-color: rgba(66,133,244,0.2);
}
.hero-feat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: color-mix(in srgb, var(--c) 12%, white);
    color: var(--c); display: flex; align-items: center;
    justify-content: center; font-size: 1.15rem; margin-bottom: 14px;
}
.hero-feat h3 { font-size: 1rem; margin: 0 0 8px; color: var(--text); }
.hero-feat p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   STEPS LIST
══════════════════════════════════════════════════════ */
.steps-list { display: flex; flex-direction: column; gap: 0; margin: 24px 0; position: relative; }
.steps-list::before {
    content: ''; position: absolute; left: 19px; top: 40px;
    bottom: 40px; width: 2px;
    background: linear-gradient(to bottom, var(--primary-glow), transparent);
}
.steps-list.compact::before { display: none; }

.step {
    display: flex; gap: 20px; padding: 20px 0;
    animation: none;
}
.step-num {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    box-shadow: 0 0 0 4px var(--primary-light);
    position: relative; z-index: 1;
}
.step-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.step-icon.private { background: #f1f5f9; color: #64748b; }
.step-icon.view    { background: #eff6ff; color: var(--primary); }
.step-icon.edit    { background: #f0fdf4; color: var(--green); }

.step-body { flex: 1; padding-top: 4px; }
.step-body h3 { margin: 0 0 6px; font-size: 1rem; }
.step-body p  { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   OPTION CARDS
══════════════════════════════════════════════════════ */
.option-cards { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.option-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 20px;
}
.option-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.option-card strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.option-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   EDITOR LAYOUT DIAGRAM
══════════════════════════════════════════════════════ */
.layout-diagram {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    margin: 20px 0 28px; font-size: 0.82rem;
    font-family: var(--font-mono); box-shadow: var(--shadow-sm);
}
.ld-row { display: flex; }
.ld-cell { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ld-cell.wide { flex: 1; text-align: center; }
.ld-cell.center { flex: 2; text-align: center; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.ld-cell.side { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; }
.ld-row.header .ld-cell { background: #f8fafc; color: var(--text-muted); }
.ld-row.body .ld-cell.page { background: white; border-right: 1px solid var(--border); color: var(--text); font-weight: 600; }
.ld-row.body .ld-cell.ai { background: #eff6ff; color: var(--primary); }
.ld-row.footer-bar .ld-cell { background: #f8fafc; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   SHORTCUT GRID
══════════════════════════════════════════════════════ */
.shortcut-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px; margin: 16px 0;
}
.shortcut {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 14px;
    font-size: 0.85rem;
}
.shortcut kbd { margin: 0; }
.shortcut span { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   TAG LIST (formatting)
══════════════════════════════════════════════════════ */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.tag-item {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 12px;
    font-size: 0.82rem; font-weight: 600; color: var(--text-2);
}

/* ══════════════════════════════════════════════════════
   FONT SHOWCASE
══════════════════════════════════════════════════════ */
.font-showcase { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.font-item {
    padding: 14px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 1.1rem; color: var(--text-2);
}

/* ══════════════════════════════════════════════════════
   STATUS LIST
══════════════════════════════════════════════════════ */
.status-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 24px; }
.status-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px;
    font-size: 0.95rem; color: var(--text-2);
}
.status-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    animation: pulse-dot 2s ease infinite;
}
.status-dot.saving { background: #F59E0B; }
.status-dot.saved  { background: var(--green); }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.85); }
}

/* ══════════════════════════════════════════════════════
   FEATURE TABLE
══════════════════════════════════════════════════════ */
.feature-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.feature-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.feature-table thead tr { background: var(--surface2); }
.feature-table th { padding: 12px 18px; font-weight: 700; color: var(--text-2); text-align: left; border-bottom: 1px solid var(--border); }
.feature-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-light); color: var(--text-muted); }
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: var(--bg); }
.badge-inline { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; }
.badge-inline.owner  { background: #fef3c7; color: #92400e; }
.badge-inline.editor { background: #dbeafe; color: #1e40af; }
.badge-inline.viewer { background: #f1f5f9; color: #64748b; }

/* ══════════════════════════════════════════════════════
   AI HIGHLIGHT CARD
══════════════════════════════════════════════════════ */
.ai-highlight-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius);
    padding: 28px; margin: 24px 0 32px;
}
.ai-glow {
    position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ai-card-inner { display: flex; align-items: flex-start; gap: 18px; position: relative; }
.ai-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139,92,246,0.3);
}
.ai-card-inner h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.ai-card-inner p  { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   AI TASK LIST
══════════════════════════════════════════════════════ */
.ai-task-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.ai-task {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-task:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.ai-task-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.ai-task-icon.check    { background: #f0fdf4; color: var(--green); }
.ai-task-icon.compress { background: #eff6ff; color: var(--primary); }
.ai-task-icon.continue { background: #faf5ff; color: var(--accent); }
.ai-task-icon.rewrite  { background: #fffbeb; color: var(--yellow); }
.ai-task h3 { margin: 0 0 6px; font-size: 1rem; }
.ai-task p  { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   PROMPT EXAMPLES
══════════════════════════════════════════════════════ */
.prompt-examples { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; }
.prompt-pill {
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: 8px; padding: 11px 16px;
    font-size: 0.88rem; color: var(--text-2);
    font-family: var(--font-mono); font-style: italic;
    transition: background 0.15s, border-color 0.15s;
}
.prompt-pill:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════════════════
   ECOSYSTEM GRID
══════════════════════════════════════════════════════ */
.ecosystem-grid { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.eco-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 20px;
    transition: box-shadow 0.2s;
}
.eco-card.active-eco { border-color: var(--primary); background: var(--primary-light); }
.eco-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: color-mix(in srgb, var(--c) 12%, white);
    color: var(--c); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.eco-card strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.eco-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.eco-tag { display: inline-flex; padding: 1px 8px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; margin-left: 6px; }
.eco-tag.current { background: var(--primary); color: white; }

/* ══════════════════════════════════════════════════════
   PRICING CARDS
══════════════════════════════════════════════════════ */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 28px 0; }
.pricing-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden;
}
.pricing-card.active-plan { border-color: var(--primary); border-width: 2px; }
.pricing-card.active-plan::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.pricing-card.future-plan { opacity: 0.65; border-style: dashed; }
.plan-tag {
    display: inline-block; padding: 4px 12px; border-radius: 99px;
    font-size: 0.75rem; font-weight: 700; margin-bottom: 16px;
}
.plan-tag.current { background: var(--primary-light); color: var(--primary); }
.plan-tag.future  { background: var(--surface2); color: var(--text-muted); }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.plan-price { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 12px; }
.plan-price span { font-size: 2.4rem; font-weight: 800; color: var(--text); font-family: var(--font); }
.plan-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.plan-features li i { color: var(--green); font-size: 0.9rem; }
.future-feats li i { color: var(--text-dim); }

/* ══════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
    padding: 18px 20px; font-weight: 600; font-size: 0.97rem;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-2); transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; color: var(--text-dim); font-size: 1.3rem;
    font-weight: 300; transition: transform 0.25s var(--transition);
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--primary); }
.faq-item summary:hover { background: var(--bg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 16px 20px; font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ══════════════════════════════════════════════════════
   CHANGELOG
══════════════════════════════════════════════════════ */
.changelog-list { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.changelog-entry {
    display: flex; gap: 28px; padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-date {
    flex-shrink: 0; width: 120px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.05em;
    padding-top: 4px;
}
.changelog-version {
    display: inline-block; background: var(--primary-light); color: var(--primary);
    font-size: 0.75rem; font-weight: 700; padding: 2px 10px;
    border-radius: 99px; margin-bottom: 10px;
}
.changelog-body ul { padding-left: 0; list-style: none; }
.changelog-body li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.content-footer {
    border-top: 1px solid var(--border); padding-top: 40px;
    text-align: center; color: var(--text-dim);
}
.footer-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 12px;
    font-family: var(--font); font-weight: 700; color: var(--text-2);
}
.content-footer p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════════════════════ */
.search-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,23,42,0.5); backdrop-filter: blur(8px);
    display: none; align-items: flex-start; justify-content: center;
    padding-top: 80px; animation: fadeInOverlay 0.2s ease;
}
.search-overlay.open { display: flex; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
    background: white; width: 90%; max-width: 560px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    animation: slideDownModal 0.25s var(--transition);
}
@keyframes slideDownModal { from { transform: translateY(-16px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.search-modal-inner {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.search-modal-icon { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.search-modal-inner input {
    flex: 1; border: none; outline: none; font-size: 1rem;
    font-family: var(--font-body); color: var(--text);
}
.search-modal-inner input::placeholder { color: var(--text-dim); }
.search-close-key { flex-shrink: 0; cursor: pointer; }
.search-results { padding: 8px; max-height: 420px; overflow-y: auto; }
.search-result-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    transition: background 0.15s; text-decoration: none;
}
.search-result-item:hover { background: var(--bg); }
.search-result-section { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.search-result-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.search-result-preview { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.search-result-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }
.search-empty { padding: 40px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* Sidebar mobile overlay */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 150;
    background: rgba(15,23,42,0.4); backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ══════════════════════════════════════════════════════
   SCROLL ANIMATION — entrance on observe
══════════════════════════════════════════════════════ */
@keyframes sectionEntrance {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .content-inner { padding: 48px 40px 100px; }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.collapsed { transform: translateX(-100%); }
    .content { margin-left: 0 !important; }
    .sidebar-overlay.active { display: block; }
    .nav-center { display: none; }
    .content-inner { padding: 32px 24px 80px; }
    .hero-feature-grid { grid-template-columns: 1fr 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .top-nav { padding: 0 16px; gap: 10px; }
    .nav-right .nav-btn.outline { display: none; }
    .content-inner { padding: 24px 16px 60px; }
    .hero-feature-grid { grid-template-columns: 1fr; }
    .shortcut-grid { grid-template-columns: 1fr 1fr; }
    .changelog-entry { flex-direction: column; gap: 8px; }
    .changelog-date { width: auto; }
    h2 { font-size: 1.5rem; }
}