/* ============================================
   NexaSeed — Design System
   Sober, minimal, technology showcase
   ============================================ */

:root {
    --navy: #1E3A5F;
    --navy-light: #2A4F7F;
    --red: #C41E3A;
    --red-hover: #A0182F;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --fg: #1a1a1a;
    --fg-secondary: #4a4a4a;
    --fg-muted: #717171;
    --border: rgba(30, 58, 95, 0.12);
    --border-strong: rgba(30, 58, 95, 0.25);
    --surface: #f8f8f8;
    --content-width: 680px;
    --page-width: 1080px;
}

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

/* Base */
html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.7;
}

/* Layout */
.container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.narrow {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--fg-secondary);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Header */
.site-header {
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 18px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-size: 0.88rem;
    font-weight: 450;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--navy);
}

nav a.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-weight: 500;
    color: var(--navy);
}

nav a.nav-github:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-logo {
    display: block;
    width: 240px;
    height: auto;
    margin: 0 auto 2rem;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    position: relative;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--fg-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: var(--navy-light);
    color: var(--white);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
}

/* Divider */
.divider {
    width: 40px;
    height: 3px;
    background: var(--red);
    margin: 4rem auto;
    border-radius: 2px;
}

/* Stats */
.stats {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--fg-muted);
    margin-top: 0.3rem;
}

.stat-context {
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 0.15rem;
    font-style: italic;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

/* Principles list */
.principles {
    list-style: none;
    margin: 1.5rem 0;
}

.principles li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.principles li:last-child {
    border-bottom: none;
}

.principle-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    min-width: 1.5rem;
}

.principle-title {
    font-weight: 600;
    color: var(--navy);
}

.principle-text {
    color: var(--fg-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Comparison table */
.comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;
}

.comparison th {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--fg-secondary);
}

.comparison tr:last-child td {
    border-bottom: none;
}

.comparison .highlight-row td {
    color: var(--navy);
    font-weight: 600;
}

/* Blog list */
.blog-list {
    list-style: none;
    margin: 1.5rem 0;
}

.blog-item {
    border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.2rem 0;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-link:hover .blog-title {
    color: var(--red);
}

.blog-title {
    font-weight: 500;
    color: var(--navy);
    transition: color 0.2s;
}

.blog-date {
    font-size: 0.82rem;
    color: var(--fg-muted);
    white-space: nowrap;
    margin-left: 2rem;
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--fg-muted);
}

.footer-ip {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--fg-muted);
}

.footer-links {
    margin-top: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
}

.footer-links a {
    color: var(--fg-muted);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .blog-link {
        flex-direction: column;
        gap: 0.3rem;
    }

    .blog-date {
        margin-left: 0;
    }

    .comparison {
        font-size: 0.8rem;
    }

    .comparison th,
    .comparison td {
        padding: 0.5rem;
    }
}

/* Font loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&display=swap');
}
