*, *::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;
  --link-active: #1a3866;
  --sig-coral: #aa2d00;
  --sig-forest: #0a2e0e;
  --sig-cream: #f5e9d4;
  --sig-peach: #fcab79;
  --sig-mint: #a8d8c4;
  --sig-yellow: #f4d35e;
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 96px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 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:hover { color: var(--link-active); }

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

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

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

/* ===== 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(--sp-xl);
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  gap: var(--sp-lg);
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
}

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

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.nav-mobile-sheet {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--canvas);
  z-index: 99;
  padding: var(--sp-xl) var(--sp-md);
  flex-direction: column;
  gap: var(--sp-md);
}

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

.nav-mobile-sheet a {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

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

.btn-secondary {
  display: inline-block;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.btn-secondary:hover { color: var(--ink); border-color: var(--muted); }

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

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

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

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

.hero-band .btn-row {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  align-items: center;
}

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

.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;
}

/* ===== SIGNATURE CARDS ===== */
.sig-coral {
  background: var(--sig-coral);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}

.sig-coral h2, .sig-coral .display-md { color: var(--on-primary); }

.sig-forest {
  background: var(--sig-forest);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}

.sig-forest h2, .sig-forest .display-md { color: var(--on-primary); }

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

.hero-card-dark h2, .hero-card-dark p { color: var(--on-primary); }

.cream-callout {
  background: var(--sig-cream);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

@media (max-width: 1023px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--canvas);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

.article-card-body {
  padding: var(--sp-md);
}

.article-card-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-xs);
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

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

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

/* ===== EDITORIAL SECTIONS ===== */
.editorial-section {
  padding: var(--sp-section) 0;
}

.editorial-section + .editorial-section {
  padding-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
}

.two-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

.two-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--sp-md);
}

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

@media (max-width: 767px) {
  .demo-grid { grid-template-columns: 1fr; }
}

.demo-card {
  border-radius: var(--r-md);
  padding: var(--sp-md);
}

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

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

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

/* ===== CTA BAND LIGHT ===== */
.cta-band-light {
  background: var(--surface-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  text-align: center;
}

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

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: var(--sp-md);
}

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

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  outline: none;
  font-family: inherit;
}

.form-row textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #458fff;
}

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

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

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

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

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

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

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

.footer-col ul li a:hover { color: var(--ink); }

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

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

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: var(--sp-section) 0 var(--sp-xl);
}

.article-hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: var(--sp-md);
}

.article-hero .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-xl);
}

.article-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-md);
}

.article-body {
  max-width: 720px;
  padding: var(--sp-xl) 0 var(--sp-section);
}

.article-body h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-top: var(--sp-xxl);
  margin-bottom: var(--sp-md);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

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

.article-body ul, .article-body ol {
  margin: 0 0 var(--sp-md) var(--sp-xl);
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}

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

.article-body blockquote {
  border-left: 3px solid var(--hairline);
  padding-left: var(--sp-md);
  margin: var(--sp-xl) 0;
  color: var(--muted);
  font-style: italic;
}

/* ===== PAGE (about, privacy, terms) ===== */
.page-body {
  max-width: 720px;
  padding: var(--sp-section) 0;
}

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

.page-body h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-top: var(--sp-xxl);
  margin-bottom: var(--sp-md);
}

.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-md);
}

.page-body ul {
  margin: 0 0 var(--sp-md) var(--sp-xl);
}

.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}

.updated-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-xl);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: var(--sp-md) 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 var(--sp-xs); }

/* ===== RELATED ARTICLES ===== */
.related-articles {
  padding: var(--sp-section) 0;
  border-top: 1px solid var(--hairline);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--sp-lg) var(--sp-xxl);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  z-index: 200;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-primary);
  flex: 1;
  min-width: 200px;
}

#cookie-banner p a { color: var(--sig-peach); }

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

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: var(--surface-soft);
  border-left: 3px solid var(--hairline);
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-section);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.disclaimer p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== UTILITIES ===== */
.mt-section { margin-top: var(--sp-section); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }
.text-muted { color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
