*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --hairline: #dddddd;
  --link: #1b61c9;
  --link-active: #1a3866;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --on-primary: #ffffff;
  --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;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.6; 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: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-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: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.nav-brand {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex: 1;
}
.nav-menu a {
  font-size: 14px;
  color: var(--body);
  font-weight: 400;
  transition: color .15s;
}
.nav-menu a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* HERO */
.hero-band {
  padding: var(--sp-section) 0;
  background: var(--canvas);
}
.hero-band .container { max-width: 760px; }
.hero-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.hero-band h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.hero-band p {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: var(--sp-xxl);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:active { background: #0d1218; 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(--r-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  margin-left: var(--sp-md);
  transition: border-color .15s;
}
.btn-secondary:active { border-color: var(--ink); color: var(--ink); }

/* ARTICLE GRID */
.section-band {
  padding: var(--sp-section) 0;
}
.section-band--soft { background: var(--surface-soft); }
.section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-bottom: var(--sp-xl);
}
.section-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}
.section-sub {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: var(--sp-xxl);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.article-card {
  background: var(--canvas);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
}
.article-card__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--sp-sm);
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--link); }
.article-card__excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--sp-md);
}
.article-card__meta {
  font-size: 13px;
  color: var(--muted);
}

/* SIGNATURE CARDS */
.sig-coral {
  background: var(--coral);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  margin: 0 0 var(--sp-lg);
}
.sig-forest {
  background: var(--forest);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.sig-card-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: var(--sp-md);
}
.sig-card-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}
.sig-card-body {
  font-size: 14px;
  line-height: 1.6;
  opacity: .85;
  margin-bottom: var(--sp-xl);
  max-width: 520px;
}
.btn-on-dark {
  display: inline-block;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
}

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

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}
.demo-card {
  border-radius: var(--r-md);
  padding: var(--sp-md);
  font-size: 14px;
  color: var(--ink);
}
.demo-card--peach { background: var(--peach); }
.demo-card--mint  { background: var(--mint); }
.demo-card--cream { background: var(--cream); }
.demo-card__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--sp-xs);
}
.demo-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: #3a3a3a;
}

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

/* ARTICLE PAGE */
.article-hero {
  padding: var(--sp-section) 0 var(--sp-xxl);
  background: var(--canvas);
}
.article-hero .container { max-width: 760px; }
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.article-hero h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.16px;
  margin-bottom: var(--sp-xxl);
}
.article-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-xxl);
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--sp-xxl) var(--sp-section);
}
.article-body h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: var(--sp-xxl) 0 var(--sp-lg);
}
.article-body h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.12px;
  margin: var(--sp-xl) 0 var(--sp-md);
}
.article-body p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.article-body ul, .article-body ol {
  margin: var(--sp-md) 0 var(--sp-md) var(--sp-xl);
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
}
.article-body li { margin-bottom: var(--sp-xs); }
.article-body a { color: var(--link); }
.article-body a:active { color: var(--link-active); }
.article-img-inline {
  width: 100%;
  border-radius: var(--r-md);
  margin: var(--sp-xxl) 0;
}
.article-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
}

/* RELATED ARTICLES */
.related-band {
  background: var(--surface-soft);
  padding: var(--sp-section) 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

/* PAGES (about, privacy, terms) */
.page-hero {
  padding: var(--sp-section) 0 var(--sp-xxl);
  background: var(--canvas);
}
.page-hero .container { max-width: 760px; }
.page-hero h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-lg);
}
.page-hero p {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
}
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--sp-xxl) var(--sp-section);
}
.page-body h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: var(--sp-xxl) 0 var(--sp-lg);
}
.page-body h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin: var(--sp-xl) 0 var(--sp-md);
}
.page-body p, .page-body li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.page-body ul, .page-body ol {
  margin: var(--sp-md) 0 var(--sp-md) var(--sp-xl);
}
.page-body a { color: var(--link); }
.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
}

/* CONTACT FORM */
.contact-section {
  background: var(--surface-soft);
  padding: var(--sp-section) 0;
}
.contact-form {
  max-width: 560px;
}
.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 {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  outline: none;
  font-family: var(--font);
}
.form-row input:focus { border-color: #458fff; }
.form-submit {
  margin-top: var(--sp-lg);
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-sm);
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: var(--sp-lg);
  left: var(--sp-lg);
  right: var(--sp-lg);
  max-width: 560px;
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
#cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
}
#cookie-banner a { color: #82aaff; }
.cookie-actions {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}
.btn-cookie-accept,
.btn-cookie-reject {
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--r-xs);
  border: none;
  cursor: pointer;
  min-width: 80px;
}
.btn-cookie-accept { background: var(--link); color: var(--on-primary); }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-section) 0 var(--sp-xxl);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xxl);
  margin-bottom: var(--sp-xxl);
}
.footer-brand {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: var(--sp-md);
}
.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}
.footer-contact {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--sp-sm);
}
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--link); }
.footer-vat {
  font-size: 12px;
  color: var(--muted);
}
.footer-col { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-col strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--link); }
.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-lg);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .nav-inner { padding: 0 var(--sp-md); }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-xl) var(--sp-md);
    gap: var(--sp-lg);
    font-size: 18px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .hero-band h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 24px; }
  .article-hero h1, .page-hero h1 { font-size: 28px; }
  .article-body, .page-body { padding: 0 var(--sp-md) var(--sp-section); }
  .footer-inner { padding: 0 var(--sp-md); }
  .sig-card-title { font-size: 24px; }
  #cookie-banner { left: var(--sp-md); right: var(--sp-md); bottom: var(--sp-md); }
}
