: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 {
  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;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.top-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: 28px;
  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-links a.active {
  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;
}

.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-band {
  padding: 80px 0;
  background: var(--canvas);
}

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

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.badge-pill {
  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;
}

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

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

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

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

.section-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 640px;
}

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

/* ───── CARDS ───── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

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

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

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.article-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

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

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
}

.article-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
}

/* ───── STEPS ───── */
.steps-list {
  list-style: none;
  counter-reset: steps;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.steps-list li:last-child {
  border-bottom: none;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

/* ───── IMAGE + TEXT ───── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

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

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

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

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

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

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

.article-body {
  padding: 48px 0 80px;
}

.article-body .prose {
  max-width: 720px;
}

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

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

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

.prose ul, .prose ol {
  margin: 0 0 20px 24px;
}

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

.prose figure {
  margin: 36px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.prose figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.prose figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.prose a {
  color: var(--primary);
  border-bottom: 1px solid rgba(245, 78, 0, 0.3);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose blockquote {
  border-left: 3px solid var(--ink);
  padding: 16px 20px;
  margin: 32px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.prose blockquote p {
  color: var(--body-strong);
  font-style: italic;
  margin: 0;
}

.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ───── CONTACT FORM ───── */
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 620px;
}

.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: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  height: 44px;
}

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

.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 18px;
  font-size: 14px;
  font-weight: 500;
  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-success {
  display: none;
  background: #edfaf4;
  border: 1px solid #a3d9c0;
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--semantic-success);
  margin-top: 16px;
}

/* ───── 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: 40px;
  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;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

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

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

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

/* ───── COOKIE BANNER ───── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  width: calc(100% - 48px);
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.18);
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

#cookie-banner a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

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

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

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

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

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

.page-content {
  padding: 56px 0 80px;
}

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

.page-content ul {
  margin: 0 0 18px 24px;
  max-width: 720px;
}

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

/* ───── BREADCRUMB ───── */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted-soft);
}

.breadcrumb a {
  color: var(--body);
}

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

/* ───── TABLE ───── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 14px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}

.data-table td strong {
  color: var(--ink);
  font-weight: 600;
}

/* ───── RELATED ARTICLES ───── */
.related-section {
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 36px; letter-spacing: -0.9px; }
  .hero-band .hero-sub { font-size: 16px; }
  .hero-image img { height: 260px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section.reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.6px; }
  .prose figure img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .contact-form-wrap { padding: 24px; }
  .page-header h1 { font-size: 34px; }
}

@media (max-width: 480px) {
  .hero-band h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
}
