@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.4; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-hamburger svg { width: 24px; height: 24px; }
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 8px 0; }
  .nav-mobile.open a { display: block; padding: 12px 24px; font-size: 14px; font-weight: 500; color: var(--muted); }
  .nav-mobile.open a:hover { color: var(--ink); background: var(--canvas-soft); }
}

/* HERO */
.hero { padding: 80px 0; background: var(--canvas); }
.hero-badge { display: inline-block; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--rounded-pill); margin-bottom: 24px; }
.hero h1 { font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 820px; margin-bottom: 20px; }
.hero-sub { font-size: 16px; color: var(--body); line-height: 1.5; max-width: 560px; margin-bottom: 40px; }
@media (max-width: 1024px) { .hero h1 { font-size: 56px; letter-spacing: -1.5px; } }
@media (max-width: 640px) { .hero h1 { font-size: 32px; letter-spacing: -0.5px; } .hero { padding: 48px 0; } }

/* SECTIONS */
.section { padding: 80px 0; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.section-title { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--body); line-height: 1.5; max-width: 560px; margin-bottom: 48px; }
@media (max-width: 640px) { .section { padding: 48px 0; } .section-title { font-size: 26px; } }

/* CARDS */
.cards-grid { display: grid; gap: 16px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--rounded-md); margin-bottom: 20px; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.card-body { font-size: 14px; color: var(--body); line-height: 1.5; }
.card a.card-link { display: block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--primary); }
.card a.card-link:hover { color: var(--primary-active); }

/* ARTICLE CARDS */
.article-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-card-title { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.article-card-excerpt { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.article-card-link { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--primary); }
.article-card-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; }
.article-header h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.5px; color: var(--ink); line-height: 1.15; max-width: 800px; margin-bottom: 20px; }
@media (max-width: 640px) { .article-header h1 { font-size: 28px; letter-spacing: -0.5px; } .article-header { padding: 40px 0 24px; } }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--rounded-lg); margin-bottom: 48px; }
.article-content { max-width: 760px; }
.article-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.article-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { color: var(--primary-active); }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 16px 20px; margin: 32px 0; background: var(--canvas-soft); border-radius: 0 var(--rounded-md) var(--rounded-md) 0; }
.article-content blockquote p { color: var(--ink); font-size: 17px; font-style: italic; margin: 0; }
.article-content .info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin: 32px 0; }
.article-content .info-box h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* FORM */
.form-section { background: var(--canvas-soft); border-radius: var(--rounded-xl); padding: 48px; border: 1px solid var(--hairline); }
@media (max-width: 640px) { .form-section { padding: 24px; } }
.form-title { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 8px; }
.form-sub { font-size: 14px; color: var(--body); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-group input, .form-group textarea { background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 12px 16px; font-size: 16px; font-family: inherit; height: 44px; outline: none; transition: border-color 0.15s; }
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-soft); }
.btn-primary { background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--rounded-md); border: none; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { display: none; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px 24px; margin-top: 20px; color: var(--success); font-size: 15px; font-weight: 500; }
.form-success.show { display: block; }

/* STATS / INFO ROW */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }
.stat-item { background: var(--surface-card); padding: 28px 24px; }
.stat-value { font-size: 32px; font-weight: 400; color: var(--ink); letter-spacing: -1px; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* HERO IMAGE */
.hero-img-wrap { margin-top: 48px; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.hero-img-wrap img { width: 100%; max-height: 420px; object-fit: cover; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--hairline-strong); }

/* RELATED */
.related-section { padding: 60px 0; background: var(--canvas-soft); border-top: 1px solid var(--hairline); }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-brand-name span { color: var(--primary); }
.footer-desc { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 280px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 560px; background: var(--ink); color: var(--canvas); border-radius: var(--rounded-lg); padding: 20px 24px; z-index: 9999; display: none; box-shadow: 0 4px 24px rgba(38,37,30,0.18); }
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 14px; line-height: 1.5; margin-bottom: 16px; color: var(--canvas-soft); }
.cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 500; padding: 8px 16px; height: 36px; border-radius: var(--rounded-md); border: none; cursor: pointer; }
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject { background: transparent; color: var(--canvas); font-size: 13px; font-weight: 500; padding: 8px 16px; height: 36px; border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.25); cursor: pointer; }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); }

/* PAGE HEADER */
.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); margin-bottom: 60px; }
.page-header h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; }
@media (max-width: 640px) { .page-header h1 { font-size: 28px; } .page-header { padding: 40px 0 24px; margin-bottom: 40px; } }

/* PROSE (privacy/terms) */
.prose h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin: 36px 0 14px; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.prose p { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose .updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }

/* DISCLAIMER */
.disclaimer { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--rounded-md); padding: 14px 18px; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 32px 0; }

/* TAG */
.tag { display: inline-block; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--rounded-pill); }

/* BAND */
.band-light { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.data-table td { font-size: 14px; color: var(--body); padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

/* UTILITY */
.mt-0 { margin-top: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
