*, *::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;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --section: 96px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, 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:active { color: #1a3866; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

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

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

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

.nav-menu a:active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 0;
    border-top: 1px solid var(--hairline);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }
}

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

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

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

.hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .hero-inner { padding: 0 20px; }
  .hero h1 { font-size: 28px; }
}

/* SIGNATURE CARDS */
.sig-coral {
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 0 48px;
}

.sig-forest {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 0 48px;
}

.sig-dark {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 0 48px;
}

.sig-cream {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 48px;
  margin: 0 48px;
}

.sig-coral h2, .sig-forest h2, .sig-dark h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.sig-cream h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}

.sig-coral p, .sig-forest p, .sig-dark p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 28px;
}

.sig-cream p {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .sig-coral, .sig-forest, .sig-dark, .sig-cream {
    margin: 0 20px;
    padding: 32px 24px;
  }
  .sig-coral h2, .sig-forest h2, .sig-dark h2, .sig-cream h2 { font-size: 24px; }
}

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

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-inner { padding: 0 20px; }
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ARTICLE CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

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

.article-card-body {
  padding: 16px;
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.article-card-title a { color: inherit; }
.article-card-title a:active { color: var(--link); }

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.demo-card {
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
}

.demo-card--peach { background: var(--peach); }
.demo-card--mint { background: var(--mint); }
.demo-card--cream { background: var(--cream); }
.demo-card--soft { background: var(--surface-soft); }

.demo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.demo-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.demo-card-text {
  font-size: 14px;
  color: var(--body);
}

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

.btn-primary:active { background: #0d1218; color: #fff; }

.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(--radius-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:active { border-color: #9297a0; }

.btn-secondary-on-dark {
  display: inline-block;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ARTICLE PAGE */
.article-hero {
  padding: var(--section) 0 48px;
  background: var(--canvas);
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .article-hero-inner { padding: 0 20px; }
  .article-hero { padding: 48px 0 32px; }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

.article-title {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .article-title { font-size: 26px; }
}

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

.article-cover {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 0;
  display: block;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 48px var(--section);
}

@media (max-width: 768px) {
  .article-body { padding: 32px 20px 60px; }
}

.article-body h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 12px;
  line-height: 1.35;
  letter-spacing: 0.12px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: 32px 0 10px;
  line-height: 1.5;
}

.article-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 6px;
}

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

.article-body .article-img {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-body .article-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.article-body .img-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* CTA BAND LIGHT */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 768px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 20px;
    padding: 32px 24px;
  }
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  max-width: 480px;
}

/* CONTACT FORM */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-form { grid-template-columns: 1fr; }
}

.contact-form .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

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

.form-group textarea {
  height: 120px;
  resize: vertical;
}

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

/* PAGE CONTENT */
.page-hero {
  padding: var(--section) 0 48px;
}

.page-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px var(--section);
}

@media (max-width: 768px) {
  .page-inner { padding: 0 20px 60px; }
  .page-hero { padding: 48px 0 32px; }
}

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

@media (max-width: 768px) {
  .page-inner h1 { font-size: 26px; }
}

.page-inner .page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.page-inner h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 12px;
  line-height: 1.35;
  letter-spacing: 0.12px;
}

.page-inner h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 8px;
}

.page-inner p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 18px;
}

.page-inner ul, .page-inner ol {
  margin: 0 0 18px 24px;
}

.page-inner li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 4px;
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .footer-inner { padding: 0 20px; }
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-address {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:active { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 32px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-bottom a { color: var(--muted); }

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 200;
}

#cookie-banner.hidden { display: none; }

#cookie-banner p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 680px;
}

#cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--link);
  color: #fff;
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

/* SCHEMA / VISUALLY HIDDEN */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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

.related-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .related-inner { padding: 0 20px; }
  .related-section { padding: 60px 0; }
}
