*, *::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;
  --border-strong: #9297a0;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --link-active: #1a3866;
  --info-border: #458fff;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --signature-yellow: #f4d35e;
  --signature-mustard: #d9a441;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --rounded-pill: 9999px;
  --rounded-full: 50%;
  --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: -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);
}

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 {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--spacing-lg);
}
.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin-left: var(--spacing-md);
}
.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.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: all 0.2s;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:active { background: var(--surface-strong); }

.btn-secondary-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* HERO */
.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);
  margin-bottom: var(--spacing-lg);
  max-width: 640px;
}
.hero-band p {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  max-width: 540px;
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
}
.hero-btn-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* SIGNATURE CARDS */
.signature-coral-card {
  background: var(--signature-coral);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin: 0;
}
.signature-coral-card h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}
.signature-coral-card p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.signature-forest-card {
  background: var(--signature-forest);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.signature-forest-card h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}
.signature-forest-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.hero-card-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.hero-card-dark h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}
.hero-card-dark p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: var(--spacing-xl);
}

/* SECTION RHYTHM */
.section-band {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}
.section-band-cream {
  padding: var(--spacing-section) 0;
  background: var(--signature-cream);
}
.section-band-dark {
  padding: var(--spacing-section) 0;
  background: var(--surface-dark);
}
.section-band-light {
  padding: var(--spacing-section) 0;
  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-xs);
}
.section-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  margin-bottom: var(--spacing-xl);
  max-width: 560px;
  line-height: 1.5;
}
.section-display {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.demo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}
.demo-card {
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.demo-card-peach { background: var(--signature-peach); border-color: transparent; }
.demo-card-mint { background: var(--signature-mint); border-color: transparent; }
.demo-card-yellow { background: var(--signature-yellow); border-color: transparent; }
.demo-card-mustard { background: var(--signature-mustard); border-color: transparent; }
.demo-card-cream { background: var(--signature-cream); border-color: transparent; }
.demo-card img {
  width: 100%;
  border-radius: var(--rounded-md);
  margin-bottom: var(--spacing-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.demo-card-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}
.demo-card-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}
.demo-card-tall { grid-row: span 2; }

/* ARTICLE CARDS */
.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: 500;
  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: inherit; text-decoration: none; }
.article-card-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* CREAM CALLOUT */
.cream-callout-card {
  background: var(--signature-cream);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
}
.cream-callout-card h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}
.cream-callout-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* FEATURE TABBED CARD */
.feature-tabbed {
  background: var(--surface-soft);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--spacing-xl);
}
.tab-rail { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.tab-item {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--rounded-sm);
  border: none;
  background: none;
  text-align: left;
}
.tab-item.active { color: var(--ink); background: var(--canvas); font-weight: 500; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}
.tab-pane p { font-size: 14px; line-height: 1.5; color: var(--body); margin-bottom: var(--spacing-md); }

/* 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;
  line-height: 1.2;
  color: var(--ink);
  max-width: 500px;
}

/* LOGO STRIP */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xxl);
  padding: var(--spacing-xl) 0;
  flex-wrap: wrap;
}
.logo-strip span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ARTICLE PAGE */
.article-header { padding: var(--spacing-section) 0 var(--spacing-xl); }
.article-header h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: var(--spacing-lg);
}
.article-header .article-meta { font-size: 14px; color: var(--muted); margin-bottom: var(--spacing-xl); }
.article-header img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-md);
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0 var(--spacing-section);
}
.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: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}
.article-body p {
  font-size: 14px;
  line-height: 1.6;
  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: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--spacing-xs);
}
.article-body a { color: var(--link); }
.article-body a:active { color: var(--link-active); }

.article-related { padding: var(--spacing-section) 0; background: var(--surface-soft); }
.article-related h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-xl);
}

/* TEXT INPUT / FORM */
.text-input {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--rounded-sm);
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline);
  width: 100%;
  outline: none;
  font-family: inherit;
}
.text-input:focus { border-color: var(--info-border); }

.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-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: var(--spacing-sm); }

/* CONTACT SECTION */
.contact-section { padding: var(--spacing-section) 0; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xxl); }
.contact-details h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}
.contact-details p { font-size: 14px; line-height: 1.6; color: var(--body); margin-bottom: var(--spacing-md); }

/* 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 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xxl);
}
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: var(--spacing-sm); line-height: 1.5; max-width: 240px; }
.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-legal {
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
.footer-legal p { font-size: 14px; color: var(--muted); }
.footer-legal-links { display: flex; gap: var(--spacing-lg); }
.footer-legal-links a { font-size: 14px; color: var(--muted); text-decoration: none; }

/* PAGE HEADER */
.page-header { padding: var(--spacing-section) 0 var(--spacing-xl); }
.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: var(--spacing-md);
}
.page-header p { font-size: 14px; color: var(--body); max-width: 560px; line-height: 1.5; }
.page-content { max-width: 720px; padding-bottom: var(--spacing-section); }
.page-content h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
}
.page-content h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}
.page-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--spacing-md);
}
.page-content ul {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}
.page-content li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--spacing-lg) var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  z-index: 999;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; line-height: 1.5; opacity: 0.85; flex: 1; min-width: 240px; }
.cookie-banner p a { color: var(--on-primary); text-decoration: underline; }
.cookie-btn-row { display: flex; gap: var(--spacing-sm); }
.btn-cookie-accept {
  background: var(--canvas);
  color: var(--ink);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.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;
  white-space: nowrap;
}

/* DISCLAIMER BANNER */
.disclaimer-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-md) 0;
}
.disclaimer-band p { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; }

/* UTILS */
.mt-section { margin-top: var(--spacing-section); }
.mb-section { margin-bottom: var(--spacing-section); }
.text-muted { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); align-items: center; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .feature-tabbed { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .cta-band-light { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-md); }
  .hero-band { padding: 64px 0; }
  .hero-band h1 { font-size: 28px; }
  .section-band, .section-band-cream, .section-band-dark, .section-band-light { padding: 64px 0; }
  .section-display { font-size: 24px; }
  .demo-grid, .demo-grid-4 { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .nav-right .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    padding: var(--spacing-xl);
    z-index: 99;
    overflow-y: auto;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; }
  .mobile-menu ul li { border-bottom: 1px solid var(--hairline); }
  .mobile-menu ul li a { display: block; padding: var(--spacing-md) 0; font-size: 18px; color: var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .logo-strip { gap: var(--spacing-xl); }
  .feature-tabbed { padding: var(--spacing-lg); }
  .signature-coral-card, .signature-forest-card, .hero-card-dark { padding: var(--spacing-xl); }
  .form-row { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--spacing-lg); }
  .demo-card-tall { grid-row: span 1; }
}
