@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;
  --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;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; }

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; }

/* TOP NAV */
.top-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; position: sticky; top: 0; z-index: 100; }
.top-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.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(--ink); transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-cta { font-size: 14px; font-weight: 500; color: var(--canvas); background: var(--ink); padding: 10px 18px; border-radius: var(--rounded-md); transition: background 0.15s; }
.nav-cta:hover { background: var(--primary); color: var(--on-primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* HERO */
.hero { padding: 80px 0; }
.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); padding: 4px 10px; border-radius: var(--rounded-pill); 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.5; }
.hero-image { margin-top: 60px; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }

/* SECTIONS */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline-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.5; margin-bottom: 48px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.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-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); background: var(--surface-strong); padding: 4px 10px; border-radius: var(--rounded-pill); display: inline-block; margin-bottom: 12px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-body { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }
.card-date { font-size: 13px; color: var(--muted); }
.card-link { font-size: 14px; font-weight: 500; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; }
.card-link:hover { color: var(--primary-active); }

/* FEATURE CARDS */
.feature-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; }
.feature-icon { width: 40px; height: 40px; background: var(--surface-strong); border-radius: var(--rounded-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 18px; }
.feature-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-body { font-size: 14px; color: var(--body); line-height: 1.5; }

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-category { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.article-title { font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: -1.2px; color: var(--ink); max-width: 800px; margin-bottom: 20px; }
.article-meta { font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.article-hero-img { margin: 40px 0; border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.article-hero-img img { width: 100%; height: 460px; object-fit: cover; }
.article-content { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.article-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); line-height: 1.25; margin: 40px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-active); }
.article-infobox { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px 28px; margin: 32px 0; }
.article-infobox .infobox-title { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-infobox ul { padding-left: 18px; }
.article-infobox li { font-size: 15px; color: var(--body); margin-bottom: 6px; line-height: 1.5; }
.code-block { font-family: 'JetBrains Mono', monospace; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px; font-size: 13px; color: var(--ink); line-height: 1.5; margin: 24px 0; overflow-x: auto; }

/* BREADCRUMBS */
.breadcrumbs { padding: 20px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--hairline-strong); }

/* CONTACT FORM */
.form-section { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 40px; max-width: 600px; }
.form-title { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 8px; }
.form-sub { font-size: 14px; color: var(--body); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--body-strong); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 12px 16px; height: 44px; font-size: 16px; font-family: inherit; color: var(--ink); transition: border-color 0.15s, background 0.15s; outline: none; }
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); background: var(--surface-card); }
.form-group input.error, .form-group textarea.error { border-color: var(--semantic-error); }
.form-error-msg { font-size: 12px; color: var(--semantic-error); margin-top: 4px; display: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--rounded-md); border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s; font-family: inherit; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { background: var(--muted-soft); cursor: not-allowed; }
.form-success { display: none; background: #e8f5f0; border: 1px solid #9dd0bb; border-radius: var(--rounded-md); padding: 16px 20px; font-size: 15px; color: var(--semantic-success); margin-top: 16px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; z-index: 999; display: none; border-top: 1px solid rgba(255,255,255,0.1); }
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.cookie-text { font-size: 14px; color: #c9c6be; flex: 1; min-width: 260px; line-height: 1.5; }
.cookie-text a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject { background: transparent; color: #c9c6be; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.2); cursor: pointer; font-family: inherit; transition: border-color 0.15s, color 0.15s; }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); color: var(--canvas); }

/* FOOTER */
.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 .nav-logo { font-size: 16px; margin-bottom: 12px; display: block; }
.footer-desc { 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(--primary); }
.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-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-legal a:hover { color: var(--primary); }

/* ABOUT PAGE */
.page-header { padding: 60px 0 48px; }
.page-title { font-size: 48px; font-weight: 400; letter-spacing: -1.2px; color: var(--ink); line-height: 1.15; margin-bottom: 20px; }
.page-sub { font-size: 18px; color: var(--body); max-width: 600px; line-height: 1.6; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin: 60px 0; }
.about-img { border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 16px; }
.about-text p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }

/* PRIVACY / TERMS */
.legal-content { max-width: 800px; padding: 40px 0 80px; }
.legal-content h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.legal-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.last-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }

/* DIVIDER */
hr.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* RELATED ARTICLES */
.related { padding: 60px 0; border-top: 1px solid var(--hairline-soft); }
.related-title { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 32px; }

/* MOBILE NAV */
.mobile-nav { display: none; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 0 24px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; font-size: 16px; font-weight: 500; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
.mobile-nav a:hover { color: var(--primary); }

/* LOADING SPINNER */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* DISCLAIMER */
.disclaimer { background: var(--surface-strong); border-radius: var(--rounded-md); padding: 14px 18px; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 32px 0; }
.disclaimer a { color: var(--muted); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
  .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-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 36px; letter-spacing: -0.9px; }
  .section-title { font-size: 28px; }
  .article-title { font-size: 32px; }
  .page-title { font-size: 34px; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .hero-image img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-section { padding: 24px; }
}
