@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
    --bg: #000000;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --red: #FF3B30;
    --red-hover: #FF453A;
    --white: #FFFFFF;
    --gray-1: #F5F5F7;
    --gray-2: #A1A1A6;
    --gray-3: #6E6E73;
    --gray-4: #48484A;
    --border: #2C2C2E;
    --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--font); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(0,0,0,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.nav__logo-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--red); color: #fff; font-size: 15px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--gray-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__cta { padding: 8px 20px; border-radius: 999px; background: var(--red); color: #fff !important; font-weight: 600 !important; }
.nav__cta:hover { background: var(--red-hover); }
.nav__burger { display: none; color: var(--gray-2); font-size: 24px; cursor: pointer; user-select: none; }

.blog-main { min-height: 70vh; padding: 132px 0 88px; }
.blog-hero { padding-bottom: 42px; border-bottom: 1px solid var(--border); margin-bottom: 38px; }
.blog-tag, .article-tag { display: inline-flex; padding: 6px 14px; border: 1px solid rgba(255,59,48,.2); border-radius: 999px; background: rgba(255,59,48,.1); color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.blog-hero h1 { margin: 18px 0 12px; font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -1.8px; }
.blog-hero h1 span { color: var(--red); }
.blog-hero p { max-width: 650px; margin: 0; color: var(--gray-2); font-size: 18px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { min-height: 310px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); transition: transform .25s, border-color .25s, background .25s; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(255,59,48,.42); background: var(--bg-card-hover); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: var(--gray-3); font-size: 13px; }
.article-card h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.25; letter-spacing: -.45px; }
.article-card p { margin: 0 0 22px; color: var(--gray-2); font-size: 15px; line-height: 1.7; }
.article-card__link { margin-top: auto; color: var(--red); font-size: 15px; font-weight: 650; }
.empty-state { padding: 44px; border: 1px dashed var(--border); border-radius: 18px; color: var(--gray-2); text-align: center; }

.article-page { padding: 116px 0 84px; }
.article-wrap { width: min(800px, calc(100% - 40px)); margin: 0 auto; }
.breadcrumbs { margin-bottom: 24px; color: var(--gray-3); font-size: 13px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 8px; color: var(--gray-4); }
.article-header { padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.article-header h1 { margin: 16px 0 14px; font-size: clamp(31px, 5vw, 48px); line-height: 1.12; letter-spacing: -1.25px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--gray-3); font-size: 14px; }
.article-lead { margin: 0 0 25px; color: var(--gray-1); font-size: 19px; line-height: 1.72; letter-spacing: -.15px; }
.article-content { color: var(--gray-2); font-size: 16px; line-height: 1.82; }
.article-content h2 { margin: 48px 0 16px; color: #fff; font-size: 28px; line-height: 1.25; letter-spacing: -.5px; }
.article-content h3 { margin: 30px 0 12px; color: #fff; font-size: 22px; line-height: 1.35; }
.article-content p { margin: 0 0 16px; }
.article-content a { color: var(--red); }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding: 0; list-style: none; }
.article-content li { position: relative; margin-bottom: 9px; padding-left: 24px; }
.article-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--red); }
.article-content ol { counter-reset: article-counter; }
.article-content ol li { counter-increment: article-counter; padding-left: 34px; }
.article-content ol li::before { content: counter(article-counter); position: absolute; top: 3px; left: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.article-cta { margin-top: 50px; padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); text-align: center; }
.article-cta h2 { margin: 0 0 10px; font-size: 26px; }
.article-cta h2 span { color: var(--red); }
.article-cta p { margin: 0 0 24px; color: var(--gray-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 650; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--red-hover); }
.back-link { display: inline-block; margin-top: 28px; color: var(--gray-3); font-size: 14px; }
.back-link:hover { color: var(--red); }

.site-footer { border-top: 1px solid var(--border); padding: 42px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; color: var(--gray-3); font-size: 13px; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--red); }

@media (max-width: 968px) {
    .nav__links { display: none; }
    .nav__burger { display: block; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .container { width: min(100% - 32px, 1100px); }
    .article-grid { grid-template-columns: 1fr; }
    .article-card { min-height: 0; }
    .article-page { padding-top: 102px; }
    .article-wrap { width: min(100% - 32px, 800px); }
    .article-header h1 { font-size: 31px; }
    .article-lead { font-size: 18px; }
    .article-cta { padding: 28px 20px; }
    .btn { width: 100%; }
    .footer__inner { flex-direction: column; }
}
