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

:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-elevated: #1a2332;
    --text: #e2e8f0;
    --text-muted: #8892a4;
    --text-dim: #5a6478;
    --accent: #38bdf8;
    --accent-dim: rgba(56, 189, 248, 0.12);
    --accent-glow: rgba(56, 189, 248, 0.25);
    --border: #1e293b;
    --border-light: #2a3548;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.nav-cta:hover { opacity: 0.9 !important; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-cta-note {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    opacity: 1;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
    padding: 6rem 2rem;
}

.section-dark {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
}

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

.section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ===== Problem Grid ===== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--border-light); }

.problem-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

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

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--accent); }

.feature-tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

/* ===== Audience Grid ===== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.audience-item {
    padding: 2rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    border-radius: 0 12px 12px 0;
}

.audience-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.audience-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== CTA Section ===== */
.section-cta {
    text-align: center;
    padding: 5rem 2rem;
}
.section-cta .section-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-right a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1080px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

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

/* ===== Blog Styles (shared) ===== */
.blog-header {
    padding: 8rem 2rem 3rem;
    max-width: 1080px;
    margin: 0 auto;
}

.blog-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.blog-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.blog-list {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.blog-post-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}
.blog-post-card:hover { border-color: var(--accent); opacity: 1; }

.blog-post-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: var(--mono);
    margin-bottom: 0.75rem;
}

.blog-post-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Blog Article ===== */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.article-meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.article h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.article p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article ul, .article ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article strong { color: var(--text); }

.article blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-dim);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article code {
    font-family: var(--mono);
    background: var(--bg-card);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
}

.article-back {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}
.article-back:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-inner { padding: 0 1.25rem; }
    .hero { padding: 7rem 1.25rem 4rem; }
    .section { padding: 4rem 1.25rem; }
    .hero h1 { font-size: 2.2rem; }
    .problem-grid, .feature-grid, .audience-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .nav-links { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
}
