@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;
  --sig-coral: #aa2d00;
  --sig-forest: #0a2e0e;
  --sig-cream: #f5e9d4;
  --sig-peach: #fcab79;
  --sig-mint: #a8d8c4;
  --sig-yellow: #f4d35e;
  --sig-mustard: #d9a441;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
  --max-width: 1280px;
}

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.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-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xxl);
}

/* 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 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

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

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

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}

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

.btn-secondary-on-dark {
  display: inline-flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-secondary-on-dark:hover { color: var(--ink); opacity: 0.9; }

.btn-legal {
  display: inline-flex;
  align-items: center;
  background: var(--link);
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-legal-reject {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--on-primary);
  font-size: 13.12px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--rounded-xs);
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-legal-reject:hover { background: rgba(255,255,255,0.1); }

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

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

.hero-band .hero-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  max-width: 520px;
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* SIGNATURE CARDS */
.signature-coral {
  background: var(--sig-coral);
  color: var(--on-primary);
  padding: var(--spacing-section) 0;
}

.signature-coral h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

.signature-coral p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: var(--spacing-xl);
}

.signature-forest {
  background: var(--sig-forest);
  color: var(--on-primary);
  padding: var(--spacing-section) 0;
}

.signature-forest h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-primary);
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

.signature-forest p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: var(--spacing-xl);
}

.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-size: 32px;
  font-weight: 400;
  color: var(--on-primary);
  margin-bottom: var(--spacing-lg);
}

.hero-card-dark p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--spacing-xl);
}

/* SECTIONS */
.section-white {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}

.section-soft {
  padding: var(--spacing-section) 0;
  background: var(--surface-soft);
}

.section-cream {
  padding: var(--spacing-section) 0;
  background: var(--sig-cream);
}

.section-dark-band {
  padding: var(--spacing-section) 0;
  background: var(--surface-dark);
}

.section-cta-band {
  padding: var(--spacing-section) 0;
  background: var(--surface-strong);
}

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

.section-sub {
  font-size: 14px;
  color: var(--body);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

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

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

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

.article-card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--spacing-xs);
}

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

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

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--spacing-sm);
}

/* DEMO GRID (feature highlights) */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.demo-card {
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
}

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

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

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

/* FEATURE IMAGE SECTION */
.feature-img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

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

.feature-img-section .text-block h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.feature-img-section .text-block p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* CTA BAND LIGHT */
.cta-band-content {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  text-align: center;
}

.cta-band-content h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.cta-band-content p {
  color: var(--body);
  margin-bottom: var(--spacing-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* CONTACT FORM */
.contact-form-wrap {
  max-width: 560px;
}

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

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

.text-input {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  height: 44px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--hairline);
  outline: none;
  transition: border-color 0.15s;
}

.text-input: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-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand .nav-logo { display: block; margin-bottom: var(--spacing-md); }

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

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

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

.footer-col ul li { margin-bottom: var(--spacing-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(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

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

.footer-legal-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.footer-legal-links a { font-size: 14px; color: var(--muted); }
.footer-legal-links a:hover { color: var(--ink); }

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

.article-hero .breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

.article-hero .breadcrumb a { color: var(--muted); }
.article-hero .breadcrumb a:hover { color: var(--ink); }

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

.article-hero .article-meta-top {
  font-size: 14px;
  color: var(--muted);
}

.article-body {
  padding-bottom: var(--spacing-section);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--spacing-xxl);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  line-height: 1.35;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  line-height: 1.5;
}

.article-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--body);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.article-content li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
  color: var(--body);
}

.article-content figure {
  margin: var(--spacing-xl) 0;
}

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

.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--spacing-xs);
}

.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-box {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.sidebar-box h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.sidebar-box ul { list-style: none; }
.sidebar-box ul li { margin-bottom: var(--spacing-xs); }
.sidebar-box ul li a { font-size: 14px; color: var(--muted); }
.sidebar-box ul li a:hover { color: var(--ink); }

/* INNER PAGES */
.page-hero {
  padding: var(--spacing-section) 0 var(--spacing-xl);
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  max-width: 640px;
}

.page-content {
  padding-bottom: var(--spacing-section);
  max-width: 780px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.page-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.page-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--body);
}

.page-content ul, .page-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.page-content li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--spacing-lg) var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  z-index: 200;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.5;
}

.cookie-banner p a { color: #7aabf7; }

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

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 150;
  flex-direction: column;
  padding: var(--spacing-xxl);
}

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

.mobile-nav-overlay .nav-logo { margin-bottom: var(--spacing-xl); }

.mobile-nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-nav-overlay ul li a {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}

.mobile-nav-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

/* SCHEMA / COMPANY BOX */
.company-info-box {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--hairline);
  margin-top: var(--spacing-xl);
}

.company-info-box p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .feature-img-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--spacing-md); }
  .top-nav .nav-links, .top-nav .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .hero-band h1 { font-size: 28px; }
  .hero-band { padding: var(--spacing-xxl) 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .signature-coral { padding: var(--spacing-xxl) 0; }
  .signature-forest { padding: var(--spacing-xxl) 0; }
  .section-white, .section-soft, .section-cream, .section-dark-band, .section-cta-band { padding: var(--spacing-xxl) 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .article-hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .hero-card-dark h2 { font-size: 24px; }
  .signature-coral h2, .signature-forest h2 { font-size: 24px; }
  .cta-band-content h2 { font-size: 24px; }
}
