:root {
    /* Clean Light Theme Palette */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-hover: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1d4ed8;

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Spacing & Layout */
    --container-width: 1100px;
    /* Tighter container for reading */
    --header-height: 70px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;

    /* Shadows - Subtle & Diffused */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Animation */
    --transition-base: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display-text {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    /* Black button like Apple/Vercel */
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--border-strong);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* Feature Grid */
.features-section {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* App Showcase */
.app-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-mockup-wrapper {
    position: relative;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-mockup-img {
    width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Responsive */
/* Responsive & Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    /* Reduced padding */
    z-index: 1001;
    margin-left: auto;
    /* Push to right */
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap */
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.is-active {
    display: flex;
    animation: slideDown 0.2s ease-out forwards;
}

.mobile-nav-link {
    font-size: 1rem;
    /* Smaller font */
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 0;
    /* Vertical padding only */
    border-bottom: 1px solid var(--border-subtle);
    /* Separator line */
    transition: color 0.2s;
    text-align: left;
    /* Left align */
    width: 100%;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: none;
    /* Remove blocky background */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .display-text {
        font-size: 2.25rem;
        /* Slightly smaller for narrow screens */
    }

    .header-inner {
        padding: 0 16px;
        /* Ensure padding on small screens */
    }

    .logo-link {
        font-size: 1rem;
        /* Scale down logo text */
        gap: 8px;
    }

    .logo-link img {
        height: 24px !important;
        /* Force smaller logo icon */
    }

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

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

    .header-right {
        display: none !important;
        /* Force hide desktop nav */
    }

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

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

    .filter-scroll {
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        padding: 100px 0 50px;
    }

    .article-shell {
        padding: 24px 16px 60px;
        margin-top: 60px;
    }

    .article-content {
        padding: 20px;
        /* Reduced padding */
    }

    /* Footer Mobile Adjustments */
    .clarity-site-footer__inner {
        padding: 0 16px;
    }

    .clarity-site-footer__badges {
        flex-direction: column;
        align-items: center;
    }

    .clarity-site-footer__badge {
        width: 100%;
        max-width: 280px;
    }

    .clarity-site-footer__links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Article Card */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid transparent;
    height: 100%;
}

.article-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.article-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-surface-hover);
    overflow: hidden;
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}

.page-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.page-link.is-active {
    background: var(--text-primary);
    color: white;
}

/* Filter Pills */
.filter-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    margin-bottom: 40px;
    scrollbar-width: none;
    justify-content: center;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

.filter-pill:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.filter-pill.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}