/* simulai.tech — Dashboard Analytics Dark
   Palette: #0D1B2A #1B2838 #2EC4B6 #E8F1F2 #7B8FA1 #FF6B35 #162032 #FFFFFF
   Fonts: Space Grotesk 600/700, Inter 400/500, JetBrains Mono 400
   Steel Mist: #7B8FA1 */

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

body {
    background: #0D1B2A;
    color: #7B8FA1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */

.headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.01em;
    color: #E8F1F2;
    margin-bottom: 0.25rem;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: #E8F1F2;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #7B8FA1;
    margin-bottom: 2rem;
}

/* ---- Hero Zone ---- */

.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 2rem 2.5rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: #7B8FA1;
}

.search-bar {
    position: relative;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: #162032;
    border: 1px solid #1B2838;
    border-radius: 8px;
    color: #E8F1F2;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input::placeholder {
    color: #7B8FA1;
    opacity: 0.6;
}

.search-input:focus {
    border-color: #2EC4B6;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.12);
}

.latest-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.latest-badge {
    background: #2EC4B6;
    color: #0D1B2A;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.latest-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2EC4B6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-title:hover {
    color: #FFFFFF;
}

/* ---- Featured Article ---- */

.featured {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease 0.15s forwards;
}

.article-card {
    background: #1B2838;
    border: 1px solid #162032;
    border-left: 3px solid #2EC4B6;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-card {
    padding: 2rem 2.25rem;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #E8F1F2;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-card .article-title {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.article-separator {
    color: #162032;
    font-size: 0.75rem;
}

.article-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2EC4B6;
}

.article-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #7B8FA1;
}

.article-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #7B8FA1;
}

.article-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #7B8FA1;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2EC4B6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-link:hover {
    color: #FFFFFF;
}

/* ---- Article Grid ---- */

.articles {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.article-grid .article-card {
    display: flex;
    flex-direction: column;
}

.article-snippet {
    font-size: 0.85rem;
    color: #7B8FA1;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #162032;
}

/* Category Tags */

.cat-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-tutorial {
    background: rgba(46, 196, 182, 0.1);
    color: #2EC4B6;
}

.category-benchmark {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.category-deepdive {
    background: rgba(46, 196, 182, 0.15);
    color: #2EC4B6;
}

/* ---- Benchmark Dashboard ---- */

.benchmarks {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease 0.45s forwards;
}

.bench-panel {
    background: #1B2838;
    border: 1px solid #162032;
    border-radius: 8px;
    padding: 2rem;
}

.bench-row {
    padding: 0.75rem 0;
}

.bench-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bench-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #E8F1F2;
}

.bench-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #7B8FA1;
}

.bench-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #7B8FA1;
    width: 72px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: #162032;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2EC4B6 var(--score), #1B2838 var(--score));
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.warn {
    background: linear-gradient(90deg, #FF6B35 var(--score), #1B2838 var(--score));
}

.bar-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #E8F1F2;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

.bar-score.warn-text {
    color: #FF6B35;
}

.bench-divider {
    height: 1px;
    background: #162032;
    margin: 0.5rem 0;
}

/* ---- Footer ---- */

.footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #162032;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease 0.6s forwards;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #E8F1F2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #7B8FA1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2EC4B6;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 320px;
}

.newsletter-input {
    flex: 1;
    background: #162032;
    border: 1px solid #1B2838;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #E8F1F2;
    padding: 0.6rem 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.25s ease;
}

.newsletter-input::placeholder {
    color: #7B8FA1;
    opacity: 0.5;
}

.newsletter-input:focus {
    border-color: #2EC4B6;
}

.newsletter-btn {
    background: #2EC4B6;
    color: #0D1B2A;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #FFFFFF;
}

.newsletter-btn.subscribed {
    background: #162032;
    color: #2EC4B6;
    cursor: default;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #2EC4B6;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 0.25rem;
}

.rss-link:hover {
    color: #FFFFFF;
}

.rss-icon {
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #162032;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #7B8FA1;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #7B8FA1;
    opacity: 0.6;
}

/* ---- Animations ---- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barGrow {
    from {
        width: 0;
    }
    to {
        width: var(--score);
    }
}

/* ---- Search filter highlight ---- */

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

.article-card.match {
    border-left-color: #FFFFFF;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3.5rem 1.25rem 2rem;
    }

    .featured,
    .articles,
    .benchmarks,
    .footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
