*, *::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;
  --surface-dark-elevated: #1d1f25;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --link-active: #1a3866;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --signature-yellow: #f4d35e;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
}

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

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

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

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

.container {
  max-width: 1280px;
  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 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--signature-coral); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: var(--spacing-md); }

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

.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

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

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s; }

/* HERO */
.hero-band {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}

.hero-band .container { max-width: 740px; }

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-band h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.hero-band p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-actions { display: flex; align-items: center; gap: var(--spacing-md); flex-wrap: wrap; }

/* SECTIONS */
.section { padding: var(--spacing-section) 0; }
.section-sm { padding: 64px 0; }

.section-header { margin-bottom: var(--spacing-xxl); }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}
.section-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}
.section-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  max-width: 560px;
}

/* ARTICLE CARDS */
.articles-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;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
}

.article-card-body { padding: var(--spacing-md); flex: 1; display: flex; flex-direction: column; }

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16px;
  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-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.16px;
}

/* SIGNATURE CORAL */
.signature-coral {
  background: var(--signature-coral);
  padding: var(--spacing-section) 0;
}

.signature-coral .container { padding: var(--spacing-xxl); background: var(--signature-coral); border-radius: var(--rounded-lg); }

.signature-coral-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-xxl);
  background: var(--signature-coral);
  border-radius: var(--rounded-lg);
}

.signature-coral h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-md);
}

.signature-coral p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: var(--spacing-xl);
}

/* SIGNATURE FOREST */
.signature-forest {
  background: var(--signature-forest);
}

.signature-forest-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-xxl);
  background: var(--signature-forest);
  border-radius: var(--rounded-lg);
}

.signature-forest h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-md);
}

.signature-forest p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: var(--spacing-xl);
}

/* DARK CARD */
.hero-card-dark {
  background: var(--surface-dark);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin: var(--spacing-section) 0;
}

.hero-card-dark h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-md);
}

.hero-card-dark p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: var(--spacing-xl);
}

/* CREAM CALLOUT */
.cream-callout {
  background: var(--signature-cream);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
}

.cream-callout h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.cream-callout p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* DEMO GRID */
.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 img {
  width: 100%;
  border-radius: var(--rounded-sm);
  margin-bottom: var(--spacing-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.demo-card h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.demo-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-yellow { background: var(--signature-yellow); }
.demo-card-cream { background: var(--signature-cream); }

/* CTA BAND LIGHT */
.cta-band-light {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  text-align: center;
  margin: var(--spacing-section) 0;
}

.cta-band-light h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.cta-band-light p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--spacing-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CONTACT 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%;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: 12px 16px;
  height: 44px;
  outline: none;
}

.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }

/* ARTICLE SINGLE PAGE */
.article-hero {
  padding: var(--spacing-section) 0 0;
}

.article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-top: var(--spacing-xl);
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0 var(--spacing-section);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  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 {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-xl);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}

.article-body li { margin-bottom: var(--spacing-xs); }

.article-body a { color: var(--link); }

.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.16px;
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* INFO BOX */
.info-box {
  background: var(--signature-cream);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.info-box h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.info-box p {
  margin-bottom: 0;
  font-size: 14px;
}

/* RELATED ARTICLES */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-section) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: var(--spacing-sm);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: var(--spacing-xs); }

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom p { font-size: 13px; color: var(--muted); }

.footer-legal { display: flex; gap: var(--spacing-lg); }
.footer-legal a { font-size: 13px; color: var(--muted); }

/* PAGE HEADER */
.page-header {
  padding: var(--spacing-section) 0 var(--spacing-xl);
  background: var(--canvas);
}

.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.page-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
}

/* PAGE CONTENT */
.page-content {
  padding: 0 0 var(--spacing-section);
}

.page-content h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.page-content h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--spacing-md);
  max-width: 740px;
}

.page-content ul, .page-content ol {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-xl);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  max-width: 740px;
}

.page-content li { margin-bottom: var(--spacing-xs); }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  z-index: 1000;
  padding: var(--spacing-md) var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  flex: 1;
  min-width: 200px;
}

#cookie-banner a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.cookie-actions { display: flex; gap: var(--spacing-xs); }

.btn-legal {
  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;
  white-space: nowrap;
}

.btn-legal-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  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;
  white-space: nowrap;
}

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

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: var(--spacing-xl) 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.stat-label { font-size: 14px; color: var(--muted); }

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

@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-md); }

  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .nav-mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    padding: var(--spacing-xl);
    gap: var(--spacing-xl);
    z-index: 99;
    align-items: flex-start;
    font-size: 20px;
  }

  .nav-mobile-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 99;
  }

  .hero-band h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .signature-coral-inner, .signature-forest-inner { padding: var(--spacing-xl) var(--spacing-md); border-radius: 0; }
  .hero-card-dark { padding: var(--spacing-xl) var(--spacing-md); margin: var(--spacing-xl) 0; }
  .cta-band-light { padding: var(--spacing-xl) var(--spacing-md); }

  .hero-band h1 { font-size: 26px; }
  .signature-coral h2, .signature-forest h2, .hero-card-dark h2 { font-size: 24px; }
  .page-header h1 { font-size: 28px; }

  #cookie-banner { padding: var(--spacing-md); }
}
