@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;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --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;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  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; }

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

/* ── TOP NAV ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-xxl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}
.nav-logo {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.active,
.nav-links a:hover { text-decoration: underline; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

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

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

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

/* ── HERO BAND ── */
.hero-band {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}
.hero-band h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: var(--spacing-lg);
}
.hero-band p {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}
.hero-actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }

/* ── SECTION RHYTHM ── */
.section { padding: var(--spacing-section) 0; }

/* ── SIGNATURE CORAL CARD ── */
.signature-coral {
  background: var(--signature-coral);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin: var(--spacing-section) 0;
}
.signature-coral h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-lg);
  max-width: 640px;
}
.signature-coral p { font-size: 14px; margin-bottom: var(--spacing-xl); max-width: 560px; }

/* ── SIGNATURE FOREST CARD ── */
.signature-forest {
  background: var(--signature-forest);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}
.signature-forest h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: var(--spacing-lg);
}
.signature-forest p { font-size: 14px; margin-bottom: var(--spacing-xl); }

/* ── DARK CARD ── */
.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-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--on-primary);
  margin-bottom: var(--spacing-lg);
}
.hero-card-dark p { font-size: 14px; 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;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}
.cream-callout p { font-size: 14px; color: var(--body); }

/* ── ARTICLE CARD GRID ── */
.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;
  text-decoration: none;
  display: block;
}
.article-card:hover { border-color: var(--ink); text-decoration: none; }
.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;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--spacing-xs);
}
.article-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--spacing-xs);
}
.article-card-meta { font-size: 13px; color: var(--muted); }

/* ── 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 { border-radius: var(--rounded-sm); margin-bottom: var(--spacing-sm); }
.demo-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-xs); }
.demo-card p { font-size: 14px; color: var(--body); }
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.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;
}
.cta-band-light h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: var(--spacing-section) 0 var(--spacing-xl);
  background: var(--canvas);
}
.article-hero h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: var(--spacing-lg);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--spacing-xl);
}
.article-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: var(--spacing-section);
}
.article-body { max-width: 720px; }
.article-body h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  line-height: 1.3;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  line-height: 1.4;
}
.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-xl);
  margin-bottom: var(--spacing-md);
}
.article-body li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: var(--spacing-xs); }
.article-body a { color: var(--link); }
.article-body strong { font-weight: 500; color: var(--ink); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--spacing-xxl);
  align-items: start;
}
.article-sidebar { padding-top: var(--spacing-xl); }
.sidebar-card {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.sidebar-card h4 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-sm); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: var(--spacing-xs); }
.sidebar-card a { font-size: 14px; color: var(--link); }

/* ── SECTION TITLES ── */
.section-title {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.12px;
  margin-bottom: var(--spacing-xl);
}

/* ── ARTICLES INDEX ── */
.articles-hero {
  background: var(--surface-dark);
  padding: var(--spacing-section) 0;
}
.articles-hero h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--on-primary);
  margin-bottom: var(--spacing-lg);
}
.articles-hero p { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 560px; }

/* ── PAGE CONTENT ── */
.page-hero {
  padding: var(--spacing-section) 0 var(--spacing-xl);
}
.page-hero h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}
.page-content { max-width: 800px; padding-bottom: var(--spacing-section); }
.page-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.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); }
.page-content ul, .page-content ol { padding-left: var(--spacing-xl); margin-bottom: var(--spacing-md); }
.page-content li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: var(--spacing-xs); }
.page-content a { color: var(--link); }

/* ── CONTACT FORM ── */
.contact-form { max-width: 480px; }
.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;
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  outline: none;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-section) 0 var(--spacing-xl);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-xxl); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 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-sm); }
.footer-desc { font-size: 14px; color: var(--muted); margin-bottom: var(--spacing-md); line-height: 1.6; }
.footer-contact { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--muted); }
.footer-col-heading { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-sm); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--spacing-xs); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-legal { font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: var(--spacing-lg); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--spacing-lg) var(--spacing-xxl);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner p { font-size: 14px; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--on-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--spacing-sm); }
.cookie-hidden { display: none !important; }

/* ── 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);
  margin: var(--spacing-xl) 0;
  line-height: 1.6;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .container { padding: 0 var(--spacing-md); }
  .nav-inner { padding: 0 var(--spacing-md); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); padding: var(--spacing-md); border-bottom: 1px solid var(--hairline); gap: var(--spacing-sm); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-band { padding: var(--spacing-xxl) 0; }
  .hero-band h1 { font-size: 28px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .signature-coral, .signature-forest, .hero-card-dark { padding: var(--spacing-xl); }
  .signature-coral h2, .signature-forest h2, .hero-card-dark h2 { font-size: 24px; }
  .articles-hero h1 { font-size: 32px; }
  .section { padding: var(--spacing-xxl) 0; }
  .cookie-banner { flex-direction: column; padding: var(--spacing-md); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
