@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&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;
  --section: 96px;
  --max-w: 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.6; color: var(--body); background: var(--canvas); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; display: flex; align-items: center; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--link); text-decoration: none; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }
.nav-mobile { display: none; position: fixed; inset: 64px 0 0 0; background: var(--canvas); z-index: 99; padding: 32px 24px; flex-direction: column; gap: 24px; overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--hairline); }

/* BUTTONS */
.btn-primary { display: inline-block; 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; text-decoration: none; transition: background 0.15s; }
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }
.btn-secondary { display: inline-block; 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; text-decoration: none; transition: border-color 0.15s; }
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.btn-secondary-on-dark { display: inline-block; 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); text-decoration: none; }
.btn-secondary-on-dark:hover { text-decoration: none; color: var(--ink); }

/* HERO */
.hero-band { padding: var(--section) 0; background: var(--canvas); }
.hero-band h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); max-width: 680px; margin-bottom: 20px; }
.hero-band p { font-size: 14px; color: var(--body); max-width: 560px; margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SIGNATURE CARDS */
.signature-coral { background: var(--signature-coral); color: var(--on-primary); padding: 48px; border-radius: var(--rounded-lg); }
.signature-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.signature-coral p { font-size: 14px; opacity: 0.9; max-width: 560px; margin-bottom: 32px; }
.signature-forest { background: var(--signature-forest); color: var(--on-primary); padding: 48px; border-radius: var(--rounded-lg); }
.signature-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.signature-forest p { font-size: 14px; opacity: 0.9; max-width: 560px; margin-bottom: 32px; }
.signature-dark { background: var(--surface-dark); color: var(--on-primary); padding: 48px; border-radius: var(--rounded-lg); }
.signature-dark h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.signature-dark p { font-size: 14px; opacity: 0.9; max-width: 560px; margin-bottom: 32px; }

/* SECTIONS */
.section { padding: var(--section) 0; background: var(--canvas); }
.section-soft { padding: var(--section) 0; background: var(--surface-soft); }
.section-cream { padding: var(--section) 0; background: var(--signature-cream); }
.section-title { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 16px; }
.section-subtitle { font-size: 14px; color: var(--body); max-width: 600px; margin-bottom: 48px; line-height: 1.6; }

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

/* DEMO GRID */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card { border-radius: var(--rounded-md); padding: 16px; }
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-cream { background: var(--signature-cream); }
.demo-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.demo-card p { font-size: 14px; color: var(--body); line-height: 1.5; }

/* CTA BAND */
.cta-band { background: var(--surface-strong); padding: var(--section) 0; border-radius: var(--rounded-lg); margin: 0 48px; }
.cta-band h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 16px; }
.cta-band p { font-size: 14px; color: var(--body); max-width: 560px; margin-bottom: 32px; }

/* ARTICLE PAGE */
.article-hero { padding: var(--section) 0 64px; background: var(--canvas); }
.article-hero-inner { max-width: 800px; }
.article-hero h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.article-hero-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-hero img { width: 100%; border-radius: var(--rounded-md); aspect-ratio: 16/9; object-fit: cover; margin-bottom: 40px; }
.article-body { max-width: 800px; }
.article-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 48px 0 16px; line-height: 1.35; }
.article-body h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: 32px 0 12px; line-height: 1.4; }
.article-body p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--link); }
.article-body img { border-radius: var(--rounded-md); margin: 32px 0; }

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

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: var(--section) 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 14px; font-weight: 500; color: var(--ink); 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(--muted); text-decoration: none; }
.footer-col ul li a:hover { color: var(--link); 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: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--link); }

/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface-dark); color: var(--on-primary); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 200; flex-wrap: wrap; }
#cookie-banner p { font-size: 13px; line-height: 1.5; max-width: 700px; }
#cookie-banner a { color: #aab4c8; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--link); color: #fff; font-size: 13.12px; font-weight: 600; padding: 12px 10px; border-radius: var(--rounded-xs); border: none; cursor: pointer; }
.btn-cookie-reject { background: transparent; color: var(--on-primary); font-size: 13.12px; font-weight: 600; padding: 12px 10px; border-radius: var(--rounded-xs); border: 1px solid rgba(255,255,255,0.3); cursor: pointer; }

/* PAGE CONTENT */
.page-content { padding: var(--section) 0; }
.page-content h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: 32px; line-height: 1.2; }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 40px 0 16px; }
.page-content p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 20px; max-width: 800px; }
.page-content ul, .page-content ol { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 20px; padding-left: 24px; max-width: 800px; }
.page-content li { margin-bottom: 8px; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { color: var(--hairline); }

/* RELATED ARTICLES */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* 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; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  :root { --section: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-band h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .signature-coral, .signature-forest, .signature-dark { padding: 32px 24px; }
  .signature-coral h2, .signature-forest h2, .signature-dark h2 { font-size: 24px; }
  .cta-band { margin: 0 24px; padding: var(--section) 24px; }
  .article-hero h1 { font-size: 28px; }
  .article-body h2 { font-size: 22px; }
  #cookie-banner { padding: 16px 24px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}
