:root {
    /* Linear Design System - Background Surfaces */
    --bg-primary: #08090a;
    --bg-panel: #0f1011;
    --bg-surface: rgba(255,255,255,0.02);
    --bg-surface-hover: rgba(255,255,255,0.04);
    --bg-elevated: rgba(255,255,255,0.05);
    --bg-secondary: #191a1b;
    
    /* Linear Color System - Text */
    --text-primary: #f7f8f8;
    --text-secondary: #8a8f98;
    --text-tertiary: #6e7681;
    --text-muted: #62666d;
    
    /* Linear Brand Accent */
    --accent-indigo: #5e6ad2;
    --accent-violet: #7170ff;
    --accent-hover: #828fff;
    --accent-muted: rgba(94,106,210,0.15);
    
    /* Status Colors */
    --green: #10b981;
    --green-muted: rgba(16,185,129,0.15);
    --yellow: #eab308;
    --red: #ef4444;
    
    /* Border System - Semi-transparent white */
    --border-subtle: rgba(255,255,255,0.05);
    --border-standard: rgba(255,255,255,0.08);
    --border-prominent: rgba(255,255,255,0.12);
    --border-solid: #23252a;
    
    /* Depth & Elevation */
    --shadow-border: rgba(0,0,0,0.2) 0px 0px 0px 1px;
    --shadow-elevated: rgba(0,0,0,0.4) 0px 2px 4px;
    --shadow-dialog: rgba(0,0,0,0) 0px 8px 2px, rgba(0,0,0,0.01) 0px 5px 2px, rgba(0,0,0,0.04) 0px 3px 2px, rgba(0,0,0,0.07) 0px 1px 1px, rgba(0,0,0,0.08) 0px 0px 1px;
    
    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
    font-feature-settings: "cv01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,9,10,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.logo-text {
    font-weight: 510;
    font-size: 15px;
    letter-spacing: -0.165px;
    color: var(--text-secondary);
}

.logo-text span {
    color: var(--text-primary);
    font-weight: 590;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 510;
    letter-spacing: -0.13px;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

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

.nav-cta {
    background: var(--accent-indigo);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 510;
    text-decoration: none;
    transition: background var(--transition-fast);
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

/* ============ HERO ============ */
.hero {
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(94,106,210,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-indigo) 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 510;
    color: var(--text-secondary);
    letter-spacing: -0.13px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16,185,129,0.4);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 510;
    line-height: 1.0;
    letter-spacing: -1.408px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-indigo) 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.60;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    letter-spacing: -0.165px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    display: block;
    font-size: 32px;
    font-weight: 510;
    line-height: 1.0;
    letter-spacing: -0.704px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hero-stats .stat-label {
    font-size: 13px;
    font-weight: 510;
    color: var(--text-muted);
    letter-spacing: -0.13px;
}

/* ============ SECTION LABEL ============ */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.section-label-line {
    flex: 1;
    height: 1px;
    background: var(--border-standard);
}

.section-label-text {
    font-size: 11px;
    font-weight: 510;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============ FILTERS ============ */
.filters {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 510;
    letter-spacing: -0.13px;
    margin-right: 4px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 510;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    letter-spacing: -0.13px;
}

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

.filter-btn.active {
    background: var(--bg-elevated);
    border-color: var(--border-standard);
    color: var(--text-primary);
}

/* ============ TOOLS GRID ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-prominent);
    transform: translateY(-2px);
}

.tool-card.hidden {
    display: none;
}

/* Card top accent line */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tool-card:hover::after {
    opacity: 0.6;
}

/* Tool Header */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 510;
    border: 1px solid var(--border-subtle);
    letter-spacing: -0.13px;
}

.tool-rating .star {
    color: var(--yellow);
    font-size: 12px;
}

/* Tool Content */
.tool-name {
    font-size: 20px;
    font-weight: 590;
    margin-bottom: 6px;
    letter-spacing: -0.24px;
    color: var(--text-primary);
}

.tool-tagline {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.60;
    letter-spacing: -0.165px;
}

/* Badges */
.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-small {
    padding: 3px 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 510;
    color: var(--text-secondary);
    letter-spacing: -0.13px;
}

.badge-category {
    background: var(--accent-muted);
    border-color: rgba(94,106,210,0.25);
    color: var(--accent-violet);
}

.badge-free {
    background: var(--green-muted);
    border-color: rgba(16,185,129,0.25);
    color: var(--green);
}

/* Price */
.tool-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.price-value {
    font-size: 24px;
    font-weight: 510;
    letter-spacing: -0.288px;
}

.price-value.free {
    color: var(--green);
}

.price-value.paid {
    color: var(--text-primary);
}

.price-unit {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 510;
    letter-spacing: -0.13px;
}

/* Features */
.tool-features {
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-features h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 510;
}

.tool-features ul {
    list-style: none;
}

.tool-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.13px;
    line-height: 1.50;
}

.tool-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}

.tool-features .con::before {
    content: '•';
    color: var(--text-muted);
}

.tool-features .con {
    opacity: 0.6;
}

/* Footer buttons */
.tool-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 510;
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.13px;
}

.btn-primary {
    background: var(--accent-indigo);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

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

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

/* ============ METHODOLOGY ============ */
.methodology {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.methodology h2 {
    font-size: 32px;
    font-weight: 510;
    line-height: 1.13;
    letter-spacing: -0.704px;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-primary);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.method-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
}

.method-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-prominent);
    transform: translateY(-2px);
}

.method-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}

.method-card h3 {
    font-size: 15px;
    font-weight: 590;
    margin-bottom: 8px;
    letter-spacing: -0.165px;
    color: var(--text-primary);
}

.method-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.50;
    letter-spacing: -0.13px;
}

/* ============ CTA ============ */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(94,106,210,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 510;
    line-height: 1.13;
    letter-spacing: -0.704px;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.60;
    max-width: 480px;
    margin: 0 auto 28px;
    letter-spacing: -0.13px;
    position: relative;
}

.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-indigo);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 510;
    font-size: 14px;
    letter-spacing: -0.13px;
    transition: background var(--transition-fast);
    position: relative;
}

.cta-button:hover {
    background: var(--accent-hover);
}

/* ============ FOOTER ============ */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 510;
    color: var(--text-secondary);
    letter-spacing: -0.165px;
}

.footer-brand span {
    color: var(--text-primary);
    font-weight: 590;
}

footer p {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: -0.13px;
    line-height: 1.50;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(12px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.tool-card {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

.tool-card:nth-child(1) { animation-delay: 0s; }
.tool-card:nth-child(2) { animation-delay: 0.04s; }
.tool-card:nth-child(3) { animation-delay: 0.08s; }
.tool-card:nth-child(4) { animation-delay: 0.12s; }
.tool-card:nth-child(5) { animation-delay: 0.16s; }
.tool-card:nth-child(6) { animation-delay: 0.20s; }
.tool-card:nth-child(7) { animation-delay: 0.24s; }
.tool-card:nth-child(8) { animation-delay: 0.28s; }
.tool-card:nth-child(9) { animation-delay: 0.32s; }
.tool-card:nth-child(10) { animation-delay: 0.36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar {
        height: 56px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero h1 {
        letter-spacing: -0.8px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .hero-stats .stat-value {
        font-size: 24px;
        letter-spacing: -0.288px;
    }
    
    .tools-grid { 
        grid-template-columns: 1fr; 
    }
    
    .filters { 
        flex-direction: column; 
        gap: 14px; 
    }
    
    .methodology h2 {
        font-size: 24px;
        letter-spacing: -0.288px;
    }
    
    .method-grid { 
        grid-template-columns: 1fr; 
    }
    
    .cta-section h2 {
        font-size: 24px;
        letter-spacing: -0.288px;
    }
}

/* Scrollbar - Linear style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-prominent);
}
