@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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.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); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 20px;
  gap: 16px;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 4px 0;
}

.nav-mobile.open { display: flex; }

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-image {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

/* SECTIONS */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  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: 20px;
}

.article-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--primary); }

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ARTICLE PAGE */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-featured-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  margin: 40px 0;
  border: 1px solid var(--hairline);
}

.article-content {
  padding: 40px 0 80px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
  list-style: disc;
}

.article-body ol li { list-style: decimal; }

.article-body strong { color: var(--ink); font-weight: 600; }

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p { margin-bottom: 0; font-size: 15px; color: var(--body-strong); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-strong);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* IMAGE CAPTION */
.img-wrap { margin: 28px 0; }
.img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* RELATED ARTICLES */
.related-section {
  padding: 60px 0;
  border-top: 1px solid var(--hairline);
}

/* CONTACT FORM */
.form-section {
  padding: 80px 0;
}

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 600px;
}

.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 {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  transition: border-color 0.15s;
  outline: none;
}

.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.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.field-error {
  font-size: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); }

.form-success {
  background: var(--surface-card);
  border: 1px solid var(--semantic-success);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  color: var(--semantic-success);
  font-size: 15px;
  display: none;
  margin-top: 16px;
}

/* PAGE HEADER */
.page-header {
  padding: 60px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 17px;
  color: var(--body);
  max-width: 540px;
  line-height: 1.6;
}

.page-content {
  padding: 60px 0 80px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 18px;
}

.page-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
  list-style: disc;
}

/* ABOUT TWO-COLUMN */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-image {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 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: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover { color: var(--ink); }

/* 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: 999;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: #c8c6be;
  flex: 1;
}

.cookie-banner p a { color: var(--canvas); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-accept:hover { background: var(--primary-active); }

.cookie-reject {
  background: transparent;
  color: #c8c6be;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cookie-reject:hover { border-color: rgba(255,255,255,0.5); }

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 24px 0;
}

/* TWO-COLUMN LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--hairline-soft);
  margin: 40px 0;
}

/* TAG */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
}

/* STAT ROW */
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 40px 0;
}

.stat-item { flex: 1; min-width: 160px; }

.stat-item .stat-value {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero p { font-size: 16px; }
  .hero { padding: 48px 0; }

  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }

  .cards-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .article-header h1 { font-size: 30px; }
  .page-header h1 { font-size: 30px; }

  .cookie-banner { flex-direction: column; bottom: 0; left: 0; right: 0; border-radius: var(--rounded-lg) var(--rounded-lg) 0 0; }
  .cookie-actions { width: 100%; }

  .form-card { padding: 24px; }

  .stat-row { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
}
