@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #181d26;
  --primary-active: #0d1218;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
  --max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:active { color: #1a3866; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xxl);
}

/* TOP NAV */
.top-nav {
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--spacing-xl);
}
.nav-brand {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-brand span { color: var(--signature-coral); }
.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
}
.nav-links a:hover { color: var(--link); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* HERO BAND */
.hero-band {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}
.hero-band h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: var(--spacing-lg);
}
.hero-band p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: var(--spacing-xl);
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .15s;
}

.btn-legal {
  display: inline-flex;
  align-items: center;
  background: var(--link);
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* SIGNATURE CARDS */
.signature-coral {
  background: var(--signature-coral);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.signature-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--spacing-lg); }
.signature-coral p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--spacing-xl); }

.signature-forest {
  background: var(--signature-forest);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.signature-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--spacing-lg); }
.signature-forest p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--spacing-xl); }

.signature-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.signature-dark h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--spacing-lg); }
.signature-dark p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: var(--spacing-xl); }

.cream-callout {
  background: var(--signature-cream);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
}
.cream-callout h3 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--spacing-sm); }
.cream-callout p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* SECTIONS */
.section { padding: var(--spacing-section) 0; }
.section-soft { background: var(--surface-soft); }
.section-strong { background: var(--surface-strong); }

.section-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.12px;
  color: var(--ink);
  margin-bottom: var(--spacing-xl);
}
.section-intro {
  font-size: 14px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

/* ARTICLE CARDS GRID */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.article-card {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-card-body { padding: var(--spacing-md); }
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--spacing-xs);
}
.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); }
.article-card-meta { font-size: 13px; color: var(--muted); }

/* DEMO GRID CARDS */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.demo-card {
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
  overflow: hidden;
}
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-cream { background: var(--signature-cream); }
.demo-card img { width: 100%; border-radius: var(--rounded-sm); margin-bottom: var(--spacing-sm); aspect-ratio: 4/3; object-fit: cover; }
.demo-card-label { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.demo-card-sub { font-size: 13px; color: var(--body); margin-top: 4px; }

/* CTA BAND LIGHT */
.cta-band-light {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}
.cta-band-light h2 { font-size: 32px; font-weight: 400; color: var(--ink); }

/* ARTICLE PAGE */
.article-header { padding: var(--spacing-section) 0 var(--spacing-xl); }
.article-header h1 { font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; max-width: 800px; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: var(--spacing-md); }
.article-body { max-width: 800px; }
.article-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--spacing-xl) 0 var(--spacing-md); }
.article-body h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--spacing-lg) 0 var(--spacing-sm); }
.article-body p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-md); }
.article-body ul, .article-body ol { padding-left: var(--spacing-xl); margin-bottom: var(--spacing-md); }
.article-body li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-xs); }
.article-body a { color: var(--link); }
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin: var(--spacing-xl) 0;
}
.article-img-caption { font-size: 13px; color: var(--muted); margin-top: calc(-1 * var(--spacing-md)); margin-bottom: var(--spacing-xl); }

/* BREADCRUMBS */
.breadcrumb { font-size: 13px; color: var(--muted); padding: var(--spacing-md) 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* FORM */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: var(--spacing-md); }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-xs); }
.form-group input, .form-group textarea {
  width: 100%;
  height: 44px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--hairline);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #458fff;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-success { display: none; color: #006400; font-size: 14px; margin-top: var(--spacing-sm); }

/* DIVIDER */
.divider { height: 1px; background: var(--hairline); margin: var(--spacing-xl) 0; }

/* PAGE CONTENT */
.page-header { padding: var(--spacing-section) 0 var(--spacing-xl); }
.page-header h1 { font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; margin-top: var(--spacing-md); line-height: 1.6; }
.page-body { max-width: 800px; padding-bottom: var(--spacing-section); }
.page-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--spacing-xl) 0 var(--spacing-md); }
.page-body h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--spacing-lg) 0 var(--spacing-sm); }
.page-body p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-md); }
.page-body ul, .page-body ol { padding-left: var(--spacing-xl); margin-bottom: var(--spacing-md); }
.page-body li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-xs); }
.page-body a { color: var(--link); }

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-section) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}
.footer-brand { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-sm); }
.footer-brand span { color: var(--signature-coral); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-col-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-sm); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--spacing-xs); }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--link); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.footer-legal { font-size: 13px; color: var(--muted); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; color: rgba(255,255,255,0.85); flex: 1; min-width: 260px; }
.cookie-banner a { color: #7aa7f5; }
.cookie-banner-actions { display: flex; gap: var(--spacing-sm); flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 13px;
  color: var(--muted);
  margin: var(--spacing-xl) 0;
  line-height: 1.6;
}

/* RELATED ARTICLES */
.related-section { padding: var(--spacing-section) 0; background: var(--surface-soft); }
.related-section .section-title { margin-bottom: var(--spacing-xl); }

/* STATS BAND */
.stats-band { padding: var(--spacing-section) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.stat-card { padding: var(--spacing-xl); background: var(--surface-soft); border-radius: var(--rounded-md); }
.stat-number { font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1; margin-bottom: var(--spacing-xs); }
.stat-label { font-size: 14px; color: var(--body); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-light { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-md); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--spacing-md); gap: var(--spacing-sm); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-band h1 { font-size: 28px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .signature-coral, .signature-forest, .signature-dark { padding: var(--spacing-xl); }
  .signature-coral h2, .signature-forest h2, .signature-dark h2 { font-size: 24px; }
  .article-header h1, .page-header h1 { font-size: 28px; }
  .section-title { font-size: 20px; }
}
