*, *::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;
  --border-strong: #9297a0;
  --info-border: #458fff;
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section { padding: var(--spacing-section) 0; }

/* 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;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

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

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

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

.nav-menu a:hover { color: var(--ink); }

.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;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
  min-height: 44px;
}

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

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

.btn-secondary:hover, .btn-secondary:focus { border-color: var(--border-strong); color: var(--ink); }

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

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

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

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

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

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

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: var(--spacing-xl);
  max-width: 620px;
}

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

/* SECTION TITLES */
.section-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.12px;
  margin-bottom: var(--spacing-lg);
}

.section-sub {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: var(--spacing-xl);
}

.display-md {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.display-xl {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
}

/* ARTICLE CARDS GRID */
.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;
  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.1em;
  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);
  text-decoration: none;
  display: block;
}

.article-card-title:hover { color: var(--link); }

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--spacing-sm);
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* SIGNATURE CARDS */
.signature-coral-card {
  background: var(--signature-coral);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  color: var(--on-primary);
}

.signature-coral-card .display-md { color: var(--on-primary); }
.signature-coral-card p { color: rgba(255,255,255,0.85); margin-top: var(--spacing-md); margin-bottom: var(--spacing-xl); max-width: 560px; }

.signature-forest-card {
  background: var(--signature-forest);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  color: var(--on-primary);
}

.signature-forest-card .display-md { color: var(--on-primary); }
.signature-forest-card p { color: rgba(255,255,255,0.85); margin-top: var(--spacing-md); margin-bottom: var(--spacing-xl); max-width: 560px; }

.hero-card-dark {
  background: var(--surface-dark);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  color: var(--on-primary);
}

.hero-card-dark .display-md { color: var(--on-primary); }
.hero-card-dark p { color: rgba(255,255,255,0.8); margin-top: var(--spacing-md); margin-bottom: var(--spacing-xl); max-width: 560px; }

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

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  align-items: start;
}

.demo-card {
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
  overflow: hidden;
}

.demo-card img {
  width: 100%;
  border-radius: var(--rounded-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
}

.demo-card-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.demo-card-text {
  font-size: 14px;
  color: var(--body);
  margin-top: 4px;
}

.demo-card.peach { background: var(--signature-peach); }
.demo-card.mint { background: var(--signature-mint); }
.demo-card.yellow { background: var(--signature-yellow); }
.demo-card.canvas { background: var(--canvas); border: 1px solid var(--hairline); }
.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);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cta-band-light .display-md { color: var(--ink); }

/* CONTACT FORM */
.contact-section { background: var(--surface-soft); }

.form-card {
  background: var(--canvas);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: var(--spacing-xl);
  max-width: 580px;
}

.form-group { margin-bottom: var(--spacing-md); }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 12px var(--spacing-md);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--info-border);
}

/* FOOTER */
.site-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 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
  display: block;
  text-decoration: none;
}

.footer-brand span { color: var(--signature-coral); }

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links a:hover { color: var(--ink); }

.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-legal {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ARTICLE PAGE */
.article-hero {
  background: var(--surface-dark-elevated);
  padding: var(--spacing-section) 0;
  position: relative;
  overflow: hidden;
}

.article-hero-stripes {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  display: flex;
}

.article-hero-stripes span {
  flex: 1;
  opacity: 0.35;
}

.stripe-1 { background: var(--signature-coral); }
.stripe-2 { background: var(--signature-peach); }
.stripe-3 { background: var(--signature-yellow); }
.stripe-4 { background: var(--signature-mint); }
.stripe-5 { background: var(--signature-forest); }

.article-hero-content { position: relative; z-index: 2; max-width: 700px; }

.article-hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-md);
}

.article-hero-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--spacing-md);
}

.article-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.article-body {
  max-width: 760px;
}

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

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

.article-body p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.article-body ul, .article-body ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.article-body li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 4px;
}

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

.article-img {
  width: 100%;
  border-radius: var(--rounded-md);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: var(--spacing-xl) 0;
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: calc(-1 * var(--spacing-lg));
  margin-bottom: var(--spacing-xl);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--spacing-xl);
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 6px; }
.sidebar-links a { font-size: 14px; color: var(--link); }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: var(--spacing-md) 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--hairline); }

/* PAGE HERO */
.page-hero {
  background: var(--surface-soft);
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--hairline);
}

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

.page-hero p {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  max-width: 580px;
}

.page-content { padding: var(--spacing-section) 0; }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--spacing-xl) 0 var(--spacing-md); }
.page-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--spacing-lg) 0 var(--spacing-sm); }
.page-content p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: var(--spacing-md); max-width: 760px; }
.page-content ul { padding-left: var(--spacing-lg); margin-bottom: var(--spacing-md); }
.page-content li { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 4px; }
.page-content a { color: var(--link); }

/* 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-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  z-index: 999;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  line-height: 1.5;
}

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

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.btn-cookie {
  font-size: 13.12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--rounded-xs);
  cursor: pointer;
  border: none;
  min-height: 36px;
}

.btn-cookie-accept { background: var(--link); color: var(--on-primary); }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--signature-cream);
  border-bottom: 1px solid #e0d4bc;
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* TAGS */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: var(--spacing-section) 0; }

/* MOBILE NAV SHEET */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--canvas);
  z-index: 200;
  padding: var(--spacing-xl);
  flex-direction: column;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: var(--spacing-xl);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-nav ul a {
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
}

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

@media (max-width: 768px) {
  :root { --spacing-section: 64px; }
  .container { padding: 0 var(--spacing-md); }
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .display-md { font-size: 24px; }
  .display-xl { font-size: 32px; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-light { flex-direction: column; align-items: flex-start; }
  .signature-coral-card, .signature-forest-card, .hero-card-dark { padding: var(--spacing-lg); }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--spacing-md); }
  .article-hero h1 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
}

@media (min-width: 1440px) {
  .container { padding: 0 var(--spacing-xxl); }
}
