@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;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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;
  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.3px;
}

.nav-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);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--canvas);
}

.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: 900px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  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;
  text-decoration: none;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }

.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: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.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-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-strong);
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.11px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.article-card-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-page { padding: 48px 0 80px; }

.article-header { margin-bottom: 48px; }

.article-header .section-label { margin-bottom: 12px; }

.article-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
  letter-spacing: 0.08px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--primary-active); }

.article-content blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p { margin: 0; font-size: 14px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--canvas-soft);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* FORM */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.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;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  height: 44px;
}

.form-group textarea { height: 120px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message.success {
  background: #ecf9f5;
  color: var(--semantic-success);
  border: 1px solid #c0e8da;
  display: block;
}

.form-message.loading {
  background: var(--canvas-soft);
  color: var(--muted);
  border: 1px solid var(--hairline);
  display: block;
}

/* 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: 240px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom 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: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(38,37,30,0.15);
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--canvas);
}

.cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  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: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(247,247,244,0.3);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--muted-soft);
}

/* PAGE CONTENT */
.page-content { padding: 64px 0 80px; }

.page-content h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 32px;
  line-height: 1.2;
}

.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: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 720px;
  letter-spacing: 0.08px;
}

.page-content ul, .page-content ol {
  margin: 0 0 18px 24px;
  max-width: 720px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 28px; }
  .article-title { font-size: 32px; letter-spacing: -0.8px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cookie-banner { bottom: 16px; left: 16px; right: 16px; }
}
