/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f13;
    --bg-card: #1a1a22;
    --text: #e4e4e7;
    --text-muted: #8b8b9e;
    --accent: #6d5df5;
    --accent-hover: #8b7df7;
    --border: #2a2a35;
    --radius: 12px;
    --max-width: 720px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

/* === NAV === */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(15,15,19,0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* === HERO === */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #6d5df5, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.byline {
    font-size: 0.95rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* === FEATURES === */
.features {
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-card .icon { font-size: 2rem; display: block; margin-bottom: 12px; }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === ARTICLES === */
.latest-articles {
    padding: 60px 0;
}

.latest-articles h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.article-preview:hover { border-color: var(--accent); }

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(109, 93, 245, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.article-preview h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-preview h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-preview h3 a:hover { color: var(--accent); }

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-preview p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === NEWSLETTER === */
.newsletter {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.newsletter h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.7;
}

/* === FOOTER === */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 0 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }  /* Hamburger for later */
}
