@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;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --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: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; font-weight: 400; }

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; height: 64px; display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 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; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.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-top: 1px solid var(--hairline); padding: 16px 24px; }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--ink); }

/* HERO */
.hero { padding: 80px 0; }
.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 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; margin-bottom: 40px; line-height: 1.6; }
.hero-img { margin-top: 48px; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); max-height: 480px; object-fit: cover; width: 100%; }

/* 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; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--body); max-width: 600px; line-height: 1.6; margin-bottom: 48px; }

/* CARDS */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--rounded-md); margin-bottom: 20px; }
.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: 22px; font-weight: 400; line-height: 1.3; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--body); line-height: 1.6; }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--primary); }

/* ARTICLE CARD */
.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-body .card-label { margin-bottom: 8px; }
.article-card-body h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.6; }
.article-card-body .card-link { margin-top: 20px; }

/* FEATURE ROW */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.feature-text p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.feature-img { border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.feature-img img { width: 100%; height: 360px; object-fit: cover; }

/* ARTICLE PAGE */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 60px 0; }
.article-main h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.5px; color: var(--ink); line-height: 1.15; margin-bottom: 24px; }
.article-main .meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-main .hero-img { margin-bottom: 40px; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; line-height: 1.25; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body blockquote { border-left: 3px solid var(--hairline-strong); padding: 16px 24px; margin: 24px 0; background: var(--canvas-soft); border-radius: 0 var(--rounded-md) var(--rounded-md) 0; }
.article-body blockquote p { color: var(--muted); font-style: italic; margin: 0; }
.article-aside { position: sticky; top: 80px; align-self: start; }
.toc-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.toc-card h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc-card a { font-size: 14px; color: var(--body); line-height: 1.5; transition: color 0.15s; }
.toc-card a:hover { color: var(--primary); }

/* FORM */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 24px; }
.contact-detail { font-size: 14px; color: var(--body); margin-bottom: 8px; }
.contact-detail strong { color: var(--ink); }
.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: 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: 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); }
.btn-primary { display: inline-block; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; border: none; border-radius: var(--rounded-md); padding: 10px 18px; height: 40px; cursor: pointer; line-height: 1; transition: background 0.15s; font-family: inherit; }
.btn-primary:hover, .btn-primary:active { background: var(--primary-active); }
.form-status { margin-top: 16px; font-size: 14px; padding: 12px 16px; border-radius: var(--rounded-md); display: none; }
.form-status.success { background: #edf7f4; color: var(--success); display: block; }
.form-status.loading { background: var(--canvas-soft); color: var(--muted); display: block; }

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

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted-soft); }

/* 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: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.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 { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--hairline); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 14px; color: var(--muted); }

/* COOKIE */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; z-index: 999; display: none; }
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-text { font-size: 14px; color: var(--canvas); line-height: 1.5; flex: 1; }
.cookie-text a { color: var(--canvas); text-decoration: underline; }
.cookie-btns { display: flex; gap: 12px; 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: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.btn-cookie-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--rounded-md); padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }

/* PAGE HERO */
.page-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 48px; font-weight: 400; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 16px; line-height: 1.15; }
.page-hero p { font-size: 16px; color: var(--body); max-width: 600px; line-height: 1.6; }

/* SCHEMA TABLE */
.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.info-table th { text-align: left; padding: 10px 16px; background: var(--canvas-soft); color: var(--ink); font-weight: 600; border: 1px solid var(--hairline); }
.info-table td { padding: 10px 16px; border: 1px solid var(--hairline); color: var(--body); }

/* BADGE */
.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 10px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .article-main h1 { font-size: 32px; }
  .page-hero h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 30px; }
}
