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

:root {
    --bg-primary: #0f172a;
    --bg-surface: #1e293b;
    --bg-elevated: #334155;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation */
.nav {
    margin-bottom: 2rem;
}

.nav-back {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-back:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-elevated);
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Highlights */
.highlights {
    margin-bottom: 3rem;
}

.highlight-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.highlight-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-label {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Section Titles */
.section-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.section-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* Value Prop Section */
.value-prop {
    margin-bottom: 3rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.value-card {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1.25rem;
}

.value-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Proof Section */
.proof {
    margin-bottom: 3rem;
}

.tool-grid {
    display: grid;
    gap: 1rem;
}

/* Featured tool cards with images */
.tool-card.tool-featured {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.tool-thumbnail {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.tool-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Regular tool cards (no image) */
.tool-card {
    display: block;
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.tool-content {
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tool-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
}

.tool-badge {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tool-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tool-relevance {
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.tool-relevance strong {
    color: var(--text-muted);
}

.tools-cta {
    margin-top: 1.5rem;
}

.tools-cta a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
}

.tools-cta a:hover {
    text-decoration: underline;
}

/* Background Section */
.background {
    margin-bottom: 3rem;
}

.background-content {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.background-content p {
    margin-bottom: 1rem;
}

.background-content p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cta .section-title {
    margin-bottom: 0.75rem;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9375rem;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-elevated);
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-elevated);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .highlight-grid {
        gap: 1.5rem;
    }

    .highlight-number {
        font-size: 1.75rem;
    }

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

    .tool-card.tool-featured {
        grid-template-columns: 1fr;
    }

    .tool-thumbnail {
        max-width: 280px;
    }

    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cta {
        padding: 1.5rem;
    }
}
