@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e2ddd7;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --accent: #ff5600;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  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;
  height: 56px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  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;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 12px;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--ink-muted); padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: 80px 0 96px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* CARDS GRID */
.section {
  padding: 80px 0;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 40px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 20px;
  background: var(--surface-2);
}

.card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 12px;
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 20px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.card-link:hover { border-color: var(--ink); color: var(--ink); }

/* ARTICLE CONTENT */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.0px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}

.article-body {
  padding: 48px 0 80px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  max-width: 1100px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 20px 20px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.article-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.article-content a:hover { border-color: var(--ink); }

.article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--rounded-xl);
  margin-bottom: 40px;
  background: var(--surface-2);
}

.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.sidebar-box ul {
  list-style: none;
  margin: 0;
}

.sidebar-box li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-box li:last-child { border-bottom: none; }

.sidebar-box a {
  font-size: 14px;
  color: var(--ink-muted);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { color: var(--ink); }

/* INFO BOX */
.info-box {
  background: var(--surface-2);
  border-left: 3px solid var(--ink);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}

/* TABLE */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.content-table th {
  background: var(--surface-2);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.content-table td {
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}

.content-table tr:nth-child(even) td { background: var(--canvas); }

/* STEPS */
.steps-list {
  counter-reset: steps;
  list-style: none;
  margin: 24px 0;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--ink-muted);
}

.steps-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--inverse-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

/* CONTACT FORM */
.form-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.form-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.contact-form {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.btn-primary {
  background: var(--ink);
  color: var(--inverse-ink);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
  display: none;
}

.form-status.visible { display: block; }
.form-status.success { color: #2e7d32; }

/* ABOUT INFO BOXES */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.info-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.info-card-num {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-card-label {
  font-size: 14px;
  color: var(--ink-muted);
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 24px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-subtle);
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  border-radius: var(--rounded-xl);
  padding: 20px 28px;
  max-width: 640px;
  width: calc(100% - 48px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: var(--inverse-ink); border-bottom: 1px solid rgba(255,255,255,0.4); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--inverse-ink);
  color: var(--inverse-canvas);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--inverse-ink);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.cookie-banner.hidden { display: none; }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -1.0px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-updated {
  font-size: 13px;
  color: var(--ink-subtle);
}

.page-body {
  padding: 48px 0 80px;
  max-width: 760px;
}

.page-body h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.page-body ul, .page-body ol {
  margin: 12px 0 18px 20px;
}

.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }

.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.page-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-tertiary); }

/* TAG */
.tag {
  display: inline-block;
  background: var(--surface-2);
  border-radius: var(--rounded-xs);
  padding: 3px 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-2);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
  margin-top: 40px;
}

/* RELATED ARTICLES */
.related-section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.related-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 32px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 48px 0 64px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; gap: 16px; }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; }
  .info-grid { grid-template-columns: 1fr; }
  .article-hero-img { height: 220px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { letter-spacing: -0.5px; }
}
