@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;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --border-strong: #9297a0;
  --info-border: #458fff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 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:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--border-strong); text-decoration: none; }

.btn-legal {
  display: inline-block;
  background: var(--link);
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 10px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* TOP NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.nav-brand:hover { text-decoration: none; }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a { font-size: 14px; font-weight: 400; color: var(--body); text-decoration: none; }
.nav-menu a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-contact { font-size: 14px; color: var(--body); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

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

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

.signature-forest {
  background: var(--forest);
  color: var(--on-primary);
  border-radius: 12px;
  padding: 48px;
}
.signature-forest h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--on-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.signature-forest p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.6; }

.hero-card-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: 12px;
  padding: 48px;
}
.hero-card-dark h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--on-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-card-dark p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.6; }

.cream-callout {
  background: var(--cream);
  border-radius: 10px;
  padding: 24px;
}
.cream-callout h3 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 12px; line-height: 1.35; }
.cream-callout p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* SECTION */
.section { padding: 96px 0; }
.section-title { font-size: 32px; font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 600px; margin-bottom: 48px; }

/* ARTICLE CARDS GRID */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--canvas);
  border-radius: 10px;
  border: 1px solid var(--hairline);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.article-card .category { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.article-card h3 { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.article-card p { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; margin-bottom: 16px; }
.article-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.article-card a.read-more { font-size: 14px; font-weight: 500; color: var(--link); }

/* DEMO GRID */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.demo-card {
  border-radius: 10px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.demo-card.peach { background: var(--peach); }
.demo-card.mint { background: var(--mint); }
.demo-card.cream { background: var(--cream); }
.demo-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.demo-card p { font-size: 14px; color: var(--body); line-height: 1.5; }

/* CTA BAND */
.cta-band {
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { font-size: 32px; font-weight: 400; color: var(--ink); line-height: 1.2; max-width: 480px; }

/* ARTICLE PAGE */
.article-hero {
  padding: 96px 0 48px;
  background: var(--canvas);
}
.article-hero .category { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.article-hero h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); max-width: 720px; margin-bottom: 16px; }
.article-hero .meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px; }

.article-body { padding: 48px 0 96px; }
.article-content { max-width: 720px; }
.article-content h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin: 48px 0 16px; line-height: 1.2; }
.article-content h3 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 32px 0 12px; line-height: 1.35; }
.article-content p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-content a { color: var(--link); }
.article-content .callout { background: var(--cream); border-radius: 10px; padding: 24px; margin: 32px 0; }
.article-content .callout p { margin: 0; }
.article-layout { display: grid; grid-template-columns: 720px 1fr; gap: 48px; align-items: start; }

/* SIDEBAR */
.sidebar {}
.sidebar-card { background: var(--surface-soft); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card li a { font-size: 14px; color: var(--link); line-height: 1.5; }

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 96px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 280px; margin-top: 12px; }
.footer-col h5 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col 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-contact { font-size: 14px; color: var(--body); line-height: 1.7; }
.footer-contact a { color: var(--link); }

/* PAGES */
.page-hero { padding: 96px 0 48px; }
.page-hero h1 { font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.page-hero p { font-size: 14px; color: var(--body); max-width: 600px; line-height: 1.6; }
.page-body { padding: 0 0 96px; }
.page-content h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin: 48px 0 16px; line-height: 1.2; }
.page-content h3 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 32px 0 12px; line-height: 1.35; }
.page-content p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; }
.page-content li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-content a { color: var(--link); }
.page-content .updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

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

/* COOKIE BANNER */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
#cookie-banner.hidden { display: none !important; }
#cookie-banner p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; max-width: 720px; }
#cookie-banner p a { color: #93c5fd; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* DISCLAIMER */
.disclaimer { background: var(--surface-soft); border-radius: 10px; padding: 16px 24px; margin-top: 24px; }
.disclaimer p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--canvas); padding: 24px; border-bottom: 1px solid var(--hairline); z-index: 99; gap: 16px; }
  .nav-menu.open { display: flex; }
  .nav-actions { display: none; }
  .hamburger { display: block; }
  .hero-band { padding: 64px 0; }
  .hero-band h1 { font-size: 28px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 24px; }
  .signature-coral, .signature-forest, .hero-card-dark { margin: 0; padding: 32px 24px; }
  .signature-coral h2, .signature-forest h2, .hero-card-dark h2 { font-size: 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; padding: 32px 24px; }
  .cta-band h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 48px 0 24px; }
  .article-hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  #cookie-banner { padding: 16px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
