@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;
  --border-strong: #9297a0;
}

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:active { color: var(--link-active); }

img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 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: 32px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex: 1;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
}

.nav-menu a:active { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

.btn-secondary:active { border-color: var(--border-strong); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* HERO BAND */
.hero-band {
  padding: 96px 0;
  background: var(--canvas);
}

.hero-band .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.hero-band h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-band p {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* SECTION RHYTHM */
.section-band {
  padding: 96px 0;
  background: var(--canvas);
}

.section-band-soft {
  padding: 96px 0;
  background: var(--surface-soft);
}

/* SIGNATURE CARDS */
.signature-coral {
  background: var(--signature-coral);
  color: var(--on-primary);
  padding: 96px 0;
}

.signature-coral h2,
.signature-coral p { color: var(--on-primary); }

.signature-forest {
  background: var(--signature-forest);
  color: var(--on-primary);
  padding: 96px 0;
}

.signature-forest h2,
.signature-forest p { color: var(--on-primary); }

.signature-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: 96px 0;
}

.signature-dark h2,
.signature-dark p { color: var(--on-primary); }

.signature-cream {
  background: var(--signature-cream);
  padding: 96px 0;
}

.cta-band-light {
  background: var(--surface-strong);
  padding: 96px 0;
  border-radius: 12px;
  margin: 0 48px;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.12px;
  color: var(--ink);
  margin-bottom: 12px;
}

h4 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

h5 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

p:last-child { margin-bottom: 0; }

/* ARTICLE CARDS GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--canvas);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.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;
  letter-spacing: 0.16px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-card-title a { color: var(--ink); text-decoration: none; }

.article-card-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
}

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.demo-card {
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}

.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-cream { background: var(--signature-cream); }

.demo-card h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.demo-card p {
  font-size: 14px;
  color: var(--body);
}

/* SIGNATURE CARD INNER */
.signature-inner {
  max-width: 640px;
  padding: 48px;
}

.signature-inner h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  margin-bottom: 16px;
}

.signature-inner p {
  color: var(--on-primary);
  opacity: 0.85;
  margin-bottom: 32px;
}

.btn-on-dark {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* SECTION HEADING */
.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 { margin-bottom: 12px; }
.section-heading p { max-width: 520px; }

/* CONTACT FORM */
.contact-form {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 48px;
  max-width: 560px;
}

.contact-form h3 { margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  height: 44px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  padding: 0 16px;
  font-family: inherit;
}

.form-group textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #458fff;
}

/* TWO COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-contact p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col h6 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-col ul li a:active { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ARTICLE PAGE */
.article-hero {
  padding: 64px 0 48px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.article-hero .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-hero .breadcrumb a { color: var(--muted); }

.article-hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 720px;
}

.article-hero .meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16px;
}

.article-body {
  padding: 64px 0;
}

.article-content {
  max-width: 720px;
}

.article-content p { margin-bottom: 20px; line-height: 1.7; }
.article-content h2 { margin-top: 40px; margin-bottom: 16px; font-size: 28px; }
.article-content h3 { margin-top: 28px; margin-bottom: 12px; font-size: 22px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }

.article-image {
  width: 100%;
  border-radius: 10px;
  margin: 32px 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-sidebar {
  padding-top: 8px;
}

.sidebar-card {
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h5 { margin-bottom: 12px; font-size: 16px; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: 8px; }
.sidebar-card ul li a { font-size: 14px; color: var(--link); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
}

/* PAGE CONTENT */
.page-hero {
  padding: 64px 0 48px;
  background: var(--surface-soft);
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 560px; }

.page-content {
  padding: 64px 0;
  max-width: 760px;
}

.page-content h2 { margin-top: 36px; margin-bottom: 14px; font-size: 26px; }
.page-content h3 { margin-top: 24px; margin-bottom: 10px; font-size: 20px; }
.page-content p { margin-bottom: 16px; line-height: 1.7; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }

/* STAT STRIP */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  flex-wrap: wrap;
}

#cookie-banner p {
  color: var(--on-primary);
  font-size: 13px;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#cookie-banner a { color: #90b8ff; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-legal {
  background: var(--link);
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.btn-legal-reject {
  background: transparent;
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 200;
  flex-direction: column;
  padding: 24px 24px 48px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu nav ul { list-style: none; }
.mobile-menu nav ul li { border-bottom: 1px solid var(--hairline); }
.mobile-menu nav ul li a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

/* DISCLAIMER */
.disclaimer-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}

.disclaimer-band p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .cta-band-light { margin: 0 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-band { padding: 64px 0; }
  .hero-band .container { padding: 0 20px; }
  .hero-band h1 { font-size: 28px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .section-band, .section-band-soft, .signature-coral, .signature-forest, .signature-dark, .signature-cream { padding: 64px 0; }
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px; }
  .signature-inner { padding: 24px; }
  .cta-band-light { margin: 0 20px; padding: 48px 24px; }
  .article-hero h1 { font-size: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
