@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;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --font-body: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-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;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

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

.hero {
  padding: 80px 0 80px;
  border-bottom: 1px solid var(--hairline);
}

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

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
}

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

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

.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;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

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

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-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-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

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

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

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.article-card-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.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(--radius-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(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { background: var(--canvas-soft); color: var(--ink); }

.form-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
}

.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(--radius-md);
  padding: 12px 16px;
  height: 44px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea { height: 110px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--success);
  background: #eaf7f2;
  border: 1px solid #b6e8d5;
}

.form-message.visible { display: block; }

.form-loading {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.form-loading.visible { display: block; }

.article-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-hero h1 {
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 780px;
}

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

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

.article-content {
  max-width: 720px;
}

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

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

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

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.article-content li { margin-bottom: 6px; }

.article-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
}

.article-content a:hover { color: var(--primary); border-color: var(--primary); }

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

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

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

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

.info-box p {
  font-size: 15px;
  color: var(--body);
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 28px 0;
}

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

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

.data-table tr:last-child td { border-bottom: none; }

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

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

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

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

.page-content {
  max-width: 720px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}

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

.page-content ul {
  margin: 0 0 18px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.page-content li { margin-bottom: 5px; }

.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-body {
  font-size: 14px;
  color: var(--body);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.15s;
}

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

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  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); border-bottom: 1px solid rgba(247,247,244,0.4); }
.cookie-banner.hidden { display: none; }

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

.cookie-actions .btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  height: 36px;
  padding: 8px 14px;
}

.cookie-actions .btn-secondary {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(247,247,244,0.35);
  height: 36px;
  padding: 8px 14px;
}

.cookie-actions .btn-secondary:hover { background: rgba(247,247,244,0.08); color: var(--canvas); }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px 24px; gap: 16px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: sticky; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .article-hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 32px; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-block { padding: 24px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .hero-image img { height: 220px; }
}
