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

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

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-size: 16px;
  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;
  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.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.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: 4px;
}

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

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.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: var(--rounded-pill);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* 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: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

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

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

/* CARDS */
.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;
}

.card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.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-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.card-link:hover { opacity: 0.75; color: var(--primary); }

/* FEATURE CARDS (2-up) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

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

.article-header .section-label { margin-bottom: 16px; }

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

.article-meta {
  font-size: 13px;
  color: var(--muted);
}

.article-body {
  max-width: 760px;
}

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

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

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

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

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

.article-body .article-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-body .article-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-body .article-img figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-bottom: 80px;
}

.article-sidebar {
  padding-top: 0;
}

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

.sidebar-widget-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links li a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

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

/* FORM */
.form-section {
  padding: 80px 0;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.contact-form-wrap {
  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;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  height: 44px;
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea {
  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: 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 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  height: 40px;
  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-confirmation {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--semantic-success);
  font-weight: 500;
}

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

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--canvas);
}

.cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  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(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

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

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

.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand-name span { color: var(--primary); }

.footer-tagline {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 240px;
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

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

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

.page-header h1 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  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: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.11px;
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  margin: 0 0 18px 24px;
}

.page-content li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 5px;
}

.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 20px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav a {
  font-size: 16px;
  color: var(--body);
  font-weight: 500;
}

/* SCHEMA / INFO BOX */
.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
}

.info-box-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-box p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* SPINNER */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-img { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .article-header h1 { font-size: 28px; letter-spacing: -0.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
