@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;500&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;
  --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;
  --section: 96px;
  --xxl: 48px;
  --xl: 32px;
  --lg: 24px;
  --md: 16px;
  --sm: 12px;
  --xs: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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: 1280px;
  margin: 0 auto;
  padding: 0 var(--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;
  gap: var(--xl);
}
.nav-logo {
  font-family: 'Inter Display', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--signature-coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--lg);
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--body);
  font-weight: 400;
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--md);
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-mobile-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 200;
  padding: var(--xxl) var(--xxl);
  flex-direction: column;
  gap: var(--lg);
}
.nav-mobile-sheet.open { display: flex; }
.nav-mobile-sheet a {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  padding: var(--sm) 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: var(--xl);
}

/* 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-primary:hover { 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:hover { border-color: var(--ink); color: var(--ink); }

.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;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  text-decoration: none;
}

/* HERO BAND */
.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}
.hero-band .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--lg);
  max-width: 760px;
}
.hero-band h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.hero-band .hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
}
.hero-btns {
  display: flex;
  gap: var(--md);
  flex-wrap: wrap;
}

/* SECTION TITLES */
.section-title {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.section-subtitle {
  font-size: 14px;
  color: var(--body);
  max-width: 540px;
}

/* EDITORIAL SECTIONS */
.editorial-section {
  padding: var(--section) 0;
  background: var(--canvas);
}
.editorial-section .section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  margin-bottom: var(--xl);
}

/* ARTICLE CARDS GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
}
.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;
  border-radius: var(--rounded-md) var(--rounded-md) 0 0;
}
.article-card-body {
  padding: var(--md);
}
.article-card-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--xs);
}
.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--xs);
}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--signature-coral); }
.article-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--xs);
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: var(--xs);
}

/* SIGNATURE CORAL CARD */
.signature-coral-card {
  background: var(--signature-coral);
  border-radius: var(--rounded-lg);
  padding: var(--xxl);
  color: var(--on-primary);
}
.signature-coral-card h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--md);
}
.signature-coral-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--xl);
  max-width: 520px;
}

/* SIGNATURE FOREST CARD */
.signature-forest-card {
  background: var(--signature-forest);
  border-radius: var(--rounded-lg);
  padding: var(--xxl);
  color: var(--on-primary);
}
.signature-forest-card h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--md);
}
.signature-forest-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--xl);
  max-width: 520px;
}

/* HERO CARD DARK */
.hero-card-dark {
  background: var(--surface-dark);
  border-radius: var(--rounded-lg);
  padding: var(--xxl);
}
.hero-card-dark h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--on-primary);
  margin-bottom: var(--md);
}
.hero-card-dark p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--xl);
  max-width: 520px;
}

/* CREAM CALLOUT */
.cream-callout {
  background: var(--signature-cream);
  border-radius: var(--rounded-md);
  padding: var(--lg);
}
.cream-callout h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sm);
  line-height: 1.35;
}
.cream-callout p {
  font-size: 14px;
  color: var(--body);
}

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
  align-items: start;
}
.demo-grid-card {
  border-radius: var(--rounded-md);
  padding: var(--md);
}
.demo-grid-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--xs);
}
.demo-grid-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.demo-grid-card img {
  border-radius: var(--rounded-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: var(--sm);
}
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-yellow { background: var(--signature-yellow); }

/* CTA BAND LIGHT */
.cta-band-light {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: var(--xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--xl);
  margin: var(--section) 0;
}
.cta-band-light h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  max-width: 520px;
}

/* CONTACT FORM */
.contact-section {
  padding: var(--section) 0;
  background: var(--canvas);
}
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--md);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.text-input {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--rounded-sm);
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline);
  outline: none;
  width: 100%;
}
.text-input:focus { border-color: #458fff; }
.form-group textarea.text-input { height: auto; min-height: 100px; resize: vertical; }

/* FOOTER */
footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--section) 0 var(--xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--xxl);
  margin-bottom: var(--xxl);
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--sm);
  max-width: 260px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--md);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--xs); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: var(--md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; gap: var(--md); }
.footer-legal a { font-size: 13px; color: var(--muted); }

/* ARTICLE PAGE */
.article-hero {
  padding: var(--section) 0 0;
  background: var(--canvas);
}
.article-hero .article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--md);
}
.article-hero h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: var(--md);
}
.article-hero .article-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 680px;
  margin-bottom: var(--xl);
}
.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-top: var(--xl);
}
.article-body {
  padding: var(--section) 0;
}
.article-content {
  max-width: 720px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--xl) 0 var(--sm);
  line-height: 1.35;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--lg) 0 var(--xs);
}
.article-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--md);
}
.article-content ul, .article-content ol {
  padding-left: var(--xl);
  margin-bottom: var(--md);
}
.article-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--xs);
}
.article-content a { color: var(--link); }
.article-content a:hover { color: var(--link-active); }
.article-content figure {
  margin: var(--xl) 0;
}
.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--xs);
}

/* PAGE SECTIONS */
.page-hero {
  padding: var(--section) 0;
  background: var(--canvas);
}
.page-hero h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--md);
}
.page-hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.5;
}
.page-content {
  padding: 0 0 var(--section);
}
.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--xl) 0 var(--sm);
}
.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--lg) 0 var(--xs);
}
.page-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--md);
  max-width: 720px;
}
.page-content ul {
  padding-left: var(--xl);
  margin-bottom: var(--md);
}
.page-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--xs);
  max-width: 720px;
}

/* BREADCRUMB */
.breadcrumb {
  padding: var(--md) 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: var(--xs);
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: var(--lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--lg) var(--xl);
  max-width: 680px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: var(--xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  z-index: 300;
}
#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
#cookie-banner a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.cookie-btns { display: flex; gap: var(--sm); flex-shrink: 0; }
#cookie-banner.hidden { display: none; }

/* DISCLAIMER */
.disclaimer-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: var(--md) 0;
}
.disclaimer-band p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* RELATED ARTICLES */
.related-section {
  padding: var(--section) 0;
  background: var(--surface-soft);
}
.related-section .section-head {
  margin-bottom: var(--xl);
}

/* ABOUT TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
  margin-top: var(--xl);
}
.team-card {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--lg);
}
.team-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--xs);
}
.team-card .role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sm);
}
.team-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
  margin: var(--xl) 0;
}
.stat-item {
  text-align: center;
  padding: var(--xl);
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
}
.stat-item .stat-num {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--xs);
}
.stat-item p { 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); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-light { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--lg); }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .hero-band h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .signature-coral-card h2, .signature-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
  .article-hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .cta-band-light h2 { font-size: 24px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: var(--md); }
  .signature-coral-card, .signature-forest-card, .hero-card-dark { padding: var(--xl); }
  .article-hero-img { max-height: 280px; }
}
