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

/* ─── TOKENS ─── */
:root {
  --black: #0d0d0d;
  --white: #f8f7f3;
  --accent: #d45c2f;
  --accent2: #4a6cf7;
  --gray: #6b6b6b;
  --light-gray: #e8e6e0;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--black); font-family: var(--font-body); font-weight: 300; overflow-x: hidden; }

/* ─── NAV ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 24px 48px; transition: background 0.3s; }
nav.scrolled { background: rgba(248,247,243,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--light-gray); }
.nav-logo { text-decoration: none; display: flex; align-items: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.75rem; color: white; letter-spacing: -0.02em; transition: color 0.3s; }
nav.scrolled .nav-logo { color: var(--black); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; letter-spacing: 0.02em; transition: color 0.3s, opacity 0.2s; }
.nav-links a:hover { color: rgba(255,255,255,1); }
.nav-links a.active { color: white; }
nav.scrolled .nav-links a { color: var(--black); opacity: 0.7; }
nav.scrolled .nav-links a:hover { opacity: 1; color: var(--black); }
nav.scrolled .nav-links a.active { opacity: 1; color: var(--accent); }
.nav-cta { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: white !important; padding: 10px 22px; border-radius: 100px; font-weight: 500 !important; opacity: 1 !important; font-size: 0.875rem; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: rgba(255,255,255,0.3) !important; transform: translateY(-1px); }
nav.scrolled .nav-cta { background: var(--black) !important; color: var(--white) !important; border-color: transparent; }
nav.scrolled .nav-cta:hover { background: var(--accent) !important; }

/* ─── SECTION SHARED ─── */
section { padding: 120px 48px; }
.section-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.section-headline { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── BUTTONS ─── */
.btn-ghost { color: var(--black); padding: 16px 0; font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid var(--black); transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ─── FOOTER ─── */
footer { background: var(--black); border-top: 1px solid #1a1a1a; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: -0.02em; }
footer p { font-size: 0.8rem; color: #555; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.8rem; color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── BLOG ARTICLE SHARED ─── */
.article-hero { background: var(--black); padding: 160px 48px 80px; }
.article-hero-inner { max-width: 800px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: #666; text-decoration: none; font-size: 0.85rem; margin-bottom: 40px; transition: color 0.2s; }
.article-back:hover { color: var(--white); }
.article-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: rgba(212,92,47,0.15); padding: 5px 14px; border-radius: 100px; margin-bottom: 24px; }
.article-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--white); margin-bottom: 24px; }
.article-hero-desc { font-size: 1.15rem; color: #888; line-height: 1.65; margin-bottom: 40px; max-width: 680px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: #666; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid #222; }
.article-meta-author { display: flex; align-items: center; gap: 10px; }
.article-meta-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: white; flex-shrink: 0; }
.article-meta-name { color: var(--white); font-weight: 500; }
.article-meta-sep { color: #333; }

.article-body { padding: 80px 48px 100px; }
.article-body-inner { max-width: 720px; margin: 0 auto; }
.article-body-inner p { font-size: 1.08rem; line-height: 1.8; color: #333; margin-bottom: 28px; }
.article-body-inner h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--black); margin-top: 60px; margin-bottom: 20px; }
.article-body-inner h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--black); margin-top: 40px; margin-bottom: 16px; }
.article-body-inner ul, .article-body-inner ol { padding-left: 24px; margin-bottom: 28px; }
.article-body-inner li { font-size: 1.05rem; line-height: 1.75; color: #333; margin-bottom: 10px; }
.article-body-inner strong { font-weight: 600; color: var(--black); }
.article-body-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body-inner a:hover { color: var(--black); }
.article-body-inner code { font-family: monospace; font-size: 0.88em; background: var(--light-gray); padding: 2px 6px; border-radius: 4px; color: var(--black); }

.callout { background: rgba(212,92,47,0.07); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 36px 0; }
.callout p { margin-bottom: 0 !important; color: var(--black); }
.callout strong { color: var(--accent); }

.checklist { list-style: none !important; padding: 0 !important; margin-bottom: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; line-height: 1.7; color: #333; margin-bottom: 12px; }
.checklist li::before { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 3px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }

.author-bio { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--light-gray); display: flex; align-items: flex-start; gap: 24px; }
.author-bio-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--white); flex-shrink: 0; }
.author-bio-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-bio-role { font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; }
.author-bio-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; margin-bottom: 0 !important; }

.article-cta { background: var(--black); color: var(--white); text-align: center; padding: 100px 48px; }
.article-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 24px; }
.article-cta h2 em { font-style: normal; color: var(--accent); }
.article-cta p { font-size: 1rem; color: #888; max-width: 440px; margin: 0 auto 40px; line-height: 1.6; }
.article-cta .btn-primary { background: var(--white); color: var(--black); padding: 16px 36px; border-radius: 100px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.2s; }
.article-cta .btn-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  footer { flex-direction: column; text-align: center; }
  .article-hero { padding: 120px 24px 60px; }
  .article-body { padding: 60px 24px 80px; }
  .article-cta { padding: 80px 24px; }
}
