@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 { font-size: 16px; scroll-behavior: smooth; }

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

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; }

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 40px;
}

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

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-card); }

.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;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

/* ARTICLE CARDS */
.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: 220px;
  object-fit: cover;
}

.article-card-body { padding: 24px; }

.article-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.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-title a { color: inherit; }
.article-card-title a:hover { color: var(--primary); }

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 820px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 4px; }

.article-body { padding: 64px 0; }

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 8px;
}

.article-content a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.article-content a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.article-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 32px;
}

.data-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
}

.data-box h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.data-box table { width: 100%; border-collapse: collapse; }
.data-box td, .data-box th {
  font-size: 14px;
  color: var(--body);
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  text-align: left;
}
.data-box th { font-weight: 600; color: var(--ink); }

.ref-list { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.ref-list h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.ref-list ol { padding-left: 20px; }
.ref-list li { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.ref-list a { color: var(--body); }

/* FORM */
.contact-form {
  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);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group input.error, .form-group textarea.error { border-color: var(--semantic-error); }

.form-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  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 {
  background: #e8f5f0;
  border: 1px solid #b8dfd3;
  border-radius: var(--rounded-md);
  padding: 16px;
  font-size: 14px;
  color: var(--semantic-success);
  display: none;
  margin-top: 16px;
}

/* PAGES */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }

.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header p { font-size: 16px; color: var(--body); max-width: 560px; }

.page-body { padding: 64px 0; }

.page-content { max-width: 720px; }

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.page-content ul { padding-left: 24px; margin-bottom: 20px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }

/* 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 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 14px; color: var(--muted); }

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 14px; color: var(--muted); }
.footer-bottom-links a:hover { color: var(--body); }

/* DISCLAIMER */
.disclaimer-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin: 32px 0;
}

.disclaimer-box p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* 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: 1000;
  display: none;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.18);
}

#cookie-banner p { font-size: 14px; color: var(--canvas-soft); line-height: 1.5; margin-bottom: 16px; }
#cookie-banner a { color: var(--canvas); border-bottom: 1px solid rgba(247,247,244,0.4); }

.cookie-btns { display: flex; gap: 8px; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

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

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--body); }
.breadcrumb-sep { color: var(--muted-soft); }

/* DIVIDER */
.divider { height: 1px; background: var(--hairline); margin: 0; }

/* UPDATED DATE */
.updated-date {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 24px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.4px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .section-title { font-size: 28px; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-header h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
