@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 {
  --primary: #f54e00;
  --primary-active: #d04200;
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --font-main: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: var(--font-main); font-size: 16px; line-height: 1.5; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

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

.site-header { background: var(--canvas); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-family: var(--font-main); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.2px; }
.site-logo span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); line-height: 1.4; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

.hero-band { padding: 80px 0; }
.hero-band h1 { font-family: var(--font-main); font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 800px; margin-bottom: 24px; }
.hero-band .hero-sub { font-size: 16px; color: var(--body); max-width: 560px; margin-bottom: 40px; }
.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; border-radius: 9999px; padding: 4px 10px; margin-bottom: 20px; }

.hero-image { margin-top: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card); }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }

section { padding: 80px 0; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-family: var(--font-main); 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); max-width: 560px; }
.section-head { margin-bottom: 48px; }

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

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--body); line-height: 1.5; }
.feature-card .card-icon { font-size: 24px; margin-bottom: 12px; }

.article-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s; }
.article-card:hover { border-color: var(--hairline-strong); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-body .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-card-body h3 { font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 10px; }
.article-card-body p { font-size: 14px; color: var(--body); margin-bottom: 20px; flex: 1; }
.article-card-body .read-link { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--hairline-strong); padding-bottom: 2px; display: inline-block; transition: color 0.15s, border-color 0.15s; }
.article-card-body .read-link:hover { color: var(--primary); border-color: var(--primary); }

.stats-band { background: var(--surface-card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 40px 32px; border-right: 1px solid var(--hairline); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-num { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 4px; }
.stat-item .stat-label { font-size: 14px; color: var(--body); }

.btn-primary { background: var(--primary); color: var(--on-primary); font-family: var(--font-main); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: 8px; border: none; cursor: pointer; display: inline-flex; align-items: center; transition: background 0.15s; text-decoration: none; line-height: 1; }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary { background: var(--surface-card); color: var(--ink); font-family: var(--font-main); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: 8px; border: 1px solid var(--hairline-strong); cursor: pointer; display: inline-flex; align-items: center; transition: border-color 0.15s; text-decoration: none; line-height: 1; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--canvas); font-family: var(--font-main); font-size: 14px; font-weight: 500; padding: 12px 20px; height: 44px; border-radius: 8px; border: none; cursor: pointer; display: inline-flex; align-items: center; transition: opacity 0.15s; text-decoration: none; line-height: 1; }
.btn-dark:hover { opacity: 0.85; color: var(--canvas); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 12px 16px; font-family: var(--font-main); font-size: 14px; height: 44px; transition: border-color 0.15s; outline: none; }
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-group .field-error { font-size: 12px; color: var(--error); margin-top: 4px; }

.form-success { background: #f0faf6; border: 1px solid var(--success); border-radius: 8px; padding: 16px 20px; color: var(--success); font-size: 14px; display: none; }
.form-success.visible { display: block; }

.contact-section { background: var(--surface-card); border-radius: 12px; border: 1px solid var(--hairline); padding: 48px; max-width: 640px; }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 999; font-size: 14px; }
.cookie-banner p { flex: 1; line-height: 1.5; }
.cookie-banner p a { color: var(--canvas); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn-accept { background: var(--primary); color: var(--on-primary); border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font-main); }
.cookie-banner .btn-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font-main); }

.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 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--body); margin-top: 12px; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col ul li 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; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

.article-header { padding: 60px 0 40px; }
.article-header .article-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.article-header h1 { font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: -1.44px; color: var(--ink); max-width: 760px; margin-bottom: 20px; }
.article-header .article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; align-items: center; }
.article-header .article-meta span { display: flex; align-items: center; gap: 4px; }

.article-image { border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 48px; }
.article-image img { width: 100%; height: 400px; object-fit: cover; }

.article-body { max-width: 760px; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 8px; }
.article-body a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); transition: color 0.15s, border-color 0.15s; }
.article-body a:hover { color: var(--primary); border-color: var(--primary); }
.article-body .info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-left: 3px solid var(--primary); border-radius: 8px; padding: 20px 24px; margin: 32px 0; }
.article-body .info-box p { margin: 0; font-size: 14px; }

.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); margin-bottom: 48px; }
.page-header h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.44px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); }
.page-content { max-width: 760px; padding-bottom: 80px; }
.page-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content li { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }

.two-col-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

.about-intro { font-size: 22px; font-weight: 400; line-height: 1.5; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 32px; }

.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--muted-soft); }

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

.table-wrapper { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--surface-card); color: var(--ink); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--hairline); }
td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); color: var(--body); vertical-align: top; }
tr:last-child td { border-bottom: none; }

.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--hairline); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--hairline); }
  .two-col-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-band h1 { font-size: 36px; letter-spacing: -1px; }
  .section-title { font-size: 28px; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-header h1 { font-size: 32px; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner .cookie-actions { align-self: flex-end; }
  .contact-section { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-band { padding: 48px 0; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid var(--hairline); }
  .stat-item:first-child { border-top: none; }
}
