/* ============================================
   CSS CUSTOM PROPERTIES (THEME SYSTEM)
   ============================================ */
:root {
    /* Light theme (default) */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fb;
    --color-bg-tertiary: #eef1f6;
    --color-bg-elevated: #ffffff;
    --color-bg-code: #f1f3f7;

    --color-text-primary: #1a1a2e;
    --color-text-secondary: #4a4a6a;
    --color-text-tertiary: #7a7a9a;
    --color-text-inverse: #ffffff;

    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-accent-light: #dbeafe;
    --color-accent-glow: rgba(59, 130, 246, 0.25);

    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;

    --color-border: #e2e5ec;
    --color-border-hover: #c8ccd6;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

    --max-width: 1200px;
    --header-height: 72px;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --color-bg-primary: #0f1117;
    --color-bg-secondary: #161822;
    --color-bg-tertiary: #1e2030;
    --color-bg-elevated: #1a1c2e;
    --color-bg-code: #1a1c2e;

    --color-text-primary: #e8eaf0;
    --color-text-secondary: #a0a4b8;
    --color-text-tertiary: #6b7089;
    --color-text-inverse: #0f1117;

    --color-accent: #60a5fa;
    --color-accent-hover: #93bbfd;
    --color-accent-light: rgba(96, 165, 250, 0.12);
    --color-accent-glow: rgba(96, 165, 250, 0.2);

    --color-success: #34d399;
    --color-success-light: rgba(52, 211, 153, 0.12);
    --color-warning: #fbbf24;
    --color-warning-light: rgba(251, 191, 36, 0.12);

    --color-border: #2a2d3e;
    --color-border-hover: #3a3d52;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::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: var(--font-sans);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Inline logo icons (used in headings and tables on downloads pages) */
img[src*="#logo"] {
    width: 48px;
    height: auto;
    display: inline;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--color-bg-primary) 85%, transparent);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-primary);
    text-decoration: none;
}

.logo svg {
    width: 36px;
    height: 36px;
}

.logo span {
    background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-main a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-main a:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.nav-main a.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px var(--color-accent-glow);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-accent-glow);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-white {
    background: white;
    color: var(--color-accent);
    font-weight: 700;
}

.btn-white:hover {
    background: #f0f0f0;
    color: var(--color-accent);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: white;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 80px 24px 100px;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-accent), #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Screenshot Area */
.hero-visual {
    position: relative;
}

.screenshot-frame {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.screenshot-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.titlebar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.titlebar-dot.red { background: #ff5f57; }
.titlebar-dot.yellow { background: #ffbd2e; }
.titlebar-dot.green { background: #28ca42; }

.screenshot-body {
    padding: 24px;
    min-height: 320px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    background: var(--color-bg-code);
    overflow-x: auto;
}

.code-keyword { color: #c678dd; }
.code-type { color: #e5c07b; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }
.code-function { color: #61afef; }
.code-number { color: #d19a66; }
.code-operator { color: #56b6c2; }

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
#features {
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #8b5cf6);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.feature-tag {
    padding: 3px 10px;
    background: var(--color-bg-tertiary);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* ============================================
   DOWNLOADS SECTION
   ============================================ */
#downloads {
    background: var(--color-bg-secondary);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.download-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

.download-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md);
}

.download-card.featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
    position: relative;
}

.download-card.featured::after {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-primary);
}

.download-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.download-card .version {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    margin-bottom: 20px;
}

.download-card .btn {
    width: 100%;
    justify-content: center;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.download-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   NEWS SECTION
   ============================================ */
#news {
    background: var(--color-bg-primary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    padding: 24px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.news-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.news-item-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.news-item-header h3 a {
    color: var(--color-text-primary);
    transition: color var(--transition);
}

.news-item-header h3 a:hover {
    color: var(--color-accent);
}

.news-item-date {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-item-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.news-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-content h3 a {
    color: var(--color-text-primary);
}

.news-content h3 a:hover {
    color: var(--color-accent);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.news-content .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-content .read-more svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.news-content .read-more:hover svg {
    transform: translateX(3px);
}

/* ============================================
   COMPATIBILITY / TECH STACK
   ============================================ */
#tech-stack {
    background: var(--color-bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-list li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: 4px 0;
}

.tech-list li::before {
    content: '\2009\2009\2009›';
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 6px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
}

.footer-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--color-bg-tertiary);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.main-content {
    min-height: calc(100vh - var(--header-height));
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-page {
    padding: 48px 24px;
}

.post-header {
    margin-bottom: 32px;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-meta {
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
}

.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.post-body h2, .post-body h3, .post-body h4 {
    color: var(--color-text-primary);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.post-body p {
    margin-bottom: 1em;
}

.post-body ul, .post-body ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.post-body code {
    background: var(--color-bg-code);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-body img {
    border-radius: var(--radius-sm);
    margin: 1em 0;
}

.post-body pre {
    background: var(--color-bg-code);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    line-height: 1.7;
}

.post-body pre code {
    padding: 0;
    background: none;
}

/* Tables */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    display: block;
}

.post-body thead {
    background: var(--color-bg-tertiary);
}

.post-body th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.post-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    vertical-align: top;
}

.post-body tbody tr:hover {
    background: var(--color-bg-secondary);
}

.post-body tbody tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.post-body blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0.5em;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-main {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-primary);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
    }

    .nav-main.mobile-open {
        display: flex;
    }

    .nav-main a {
        padding: 12px 16px;
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 48px 24px 64px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 48px 24px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
    }

    .news-date {
        display: flex;
        gap: 8px;
        align-items: baseline;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .header-inner {
        padding: 0 16px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-in.animate-hidden {
        opacity: 0;
        transform: translateY(20px);
    }

    .fade-in.animate-hidden.fade-visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in:nth-child(2).fade-visible { transition-delay: 0.1s; }
    .fade-in:nth-child(3).fade-visible { transition-delay: 0.2s; }
    .fade-in:nth-child(4).fade-visible { transition-delay: 0.3s; }
    .fade-in:nth-child(5).fade-visible { transition-delay: 0.4s; }
    .fade-in:nth-child(6).fade-visible { transition-delay: 0.5s; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--color-accent);
    color: white;
}
