@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

: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 { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-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.2px;
  white-space: nowrap;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  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); text-decoration: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero {
  padding: 80px 0 80px;
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* SECTIONS */
section { padding: 80px 0; }

.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;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

.card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.card-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  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;
}

.feature-icon svg { width: 20px; height: 20px; color: var(--ink); }

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* SPLIT SECTION */
.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-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.split-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.split-content h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.split-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.split-list {
  list-style: none;
  margin-top: 16px;
}

.split-list li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.split-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ARTICLE LAYOUT */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-header .section-label { margin-bottom: 12px; }

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.84px;
  margin-bottom: 16px;
  max-width: 720px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  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: 20px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.article-content .article-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
  object-fit: cover;
  max-height: 420px;
}

.article-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-box ul { list-style: none; }

.sidebar-box ul li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.sidebar-box ul li:last-child { border-bottom: none; }

.sidebar-box ul li a { color: var(--body); font-size: 14px; }
.sidebar-box ul li a:hover { color: var(--primary); text-decoration: none; }

/* FORM */
.form-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.form-section h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin-bottom: 8px;
}

.form-section > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 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;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea { height: auto; min-height: 100px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group input.error,
.form-group textarea.error { border-color: var(--semantic-error); }

.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.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(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.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(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
}

.btn-secondary:hover { border-color: var(--ink); }

.form-success {
  background: #ecf8f4;
  border: 1px solid #a8d9c8;
  border-radius: var(--rounded-md);
  padding: 16px;
  font-size: 14px;
  color: var(--semantic-success);
  display: none;
  margin-top: 16px;
}

/* FOOTER */
.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: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }

.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-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a { font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
  transition: opacity 0.3s, transform 0.3s;
}

#cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

#cookie-banner p {
  font-size: 14px;
  color: #d0cfca;
  line-height: 1.5;
  flex: 1;
}

#cookie-banner a { color: var(--canvas); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn-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;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-reject {
  background: transparent;
  color: #d0cfca;
  border: 1px solid #5a5852;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-reject:hover { border-color: #807d72; }

/* BREADCRUMBS */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb span { color: var(--ink); }

/* PAGE HEADER (about/privacy/terms) */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.84px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
}

.page-content {
  max-width: 720px;
  padding-bottom: 80px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.22px;
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.updated-date {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

/* RELATED ARTICLES */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* INTRO BAND */
.intro-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}

.intro-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.intro-stat h3 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.64px;
  margin-bottom: 6px;
}

.intro-stat p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 32px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .intro-band .container { grid-template-columns: 1fr; gap: 24px; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
  }
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; letter-spacing: -0.64px; }
  .section-title { font-size: 28px; }
  .form-section { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; }
  .article-header h1 { font-size: 30px; }
  .page-header h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
