@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&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;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --sig-coral: #aa2d00;
  --sig-forest: #0a2e0e;
  --sig-cream: #f5e9d4;
  --sig-peach: #fcab79;
  --sig-mint: #a8d8c4;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --section: 96px;
}

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 { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.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-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--sig-coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 18px; color: var(--ink); font-weight: 500; }

/* HERO */
.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}

.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image img {
  border-radius: var(--rounded-lg);
  width: 100%;
  object-fit: cover;
  max-height: 360px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); text-decoration: none; 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(--rounded-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

.btn-pair { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* SECTIONS */
.section-white { padding: var(--section) 0; background: var(--canvas); }
.section-soft { padding: var(--section) 0; background: var(--surface-soft); }
.section-strong { padding: var(--section) 0; background: var(--surface-strong); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 48px;
}

/* SIGNATURE CARDS */
.sig-coral {
  background: var(--sig-coral);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: 48px;
  margin: var(--section) 0;
}

.sig-coral h2 { font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.sig-coral p { font-size: 14px; line-height: 1.6; margin-bottom: 32px; opacity: 0.9; max-width: 560px; }

.sig-forest {
  background: var(--sig-forest);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: 48px;
}

.sig-forest h2 { font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.sig-forest p { font-size: 14px; line-height: 1.6; opacity: 0.9; }

.sig-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: 48px;
}

.sig-dark h2 { font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.sig-dark p { font-size: 14px; line-height: 1.6; opacity: 0.85; margin-bottom: 32px; max-width: 560px; }

/* ARTICLE CARDS GRID */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body { padding: 16px; }

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.article-card-link {
  display: block;
  text-decoration: none;
}

.article-card-link:hover .article-card-title { color: var(--link); }
.article-card-link:hover { text-decoration: none; }

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.demo-card {
  border-radius: var(--rounded-md);
  padding: 16px;
  overflow: hidden;
}

.demo-card-peach { background: var(--sig-peach); }
.demo-card-mint { background: var(--sig-mint); }
.demo-card-cream { background: var(--sig-cream); }

.demo-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.demo-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.demo-card img {
  border-radius: var(--rounded-sm);
  margin-bottom: 12px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ARTICLE PAGE */
.article-hero {
  padding: var(--section) 0 48px;
  background: var(--canvas);
}

.article-hero h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 20px;
}

.article-hero-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
}

.article-body {
  padding: 48px 0 var(--section);
  background: var(--canvas);
}

.article-body .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

.article-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.article-content a { color: var(--link); }

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.sidebar-box ul { list-style: none; }

.sidebar-box ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.sidebar-box ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-box ul li a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-box ul li a:hover { color: var(--link); text-decoration: none; }

/* CREAM CALLOUT */
.cream-callout {
  background: var(--sig-cream);
  border-radius: var(--rounded-md);
  padding: 24px;
  margin: 32px 0;
}

.cream-callout p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
}

/* CTA BAND */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--rounded-lg);
  padding: 48px;
  text-align: center;
  margin: var(--section) 0 0;
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* CONTACT FORM */
.contact-form {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: 32px;
  max-width: 560px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  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%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }

.form-success {
  display: none;
  background: #e8f5e9;
  border-radius: var(--rounded-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: #006400;
  margin-top: 16px;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--section) 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  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:hover { color: var(--ink); text-decoration: none; }

.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); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--rounded-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  width: calc(100% - 48px);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: #7eb3ff; }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  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;
  white-space: nowrap;
}

.btn-cookie-reject {
  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.3);
  cursor: pointer;
  white-space: nowrap;
}

/* PAGE HERO (about/privacy/terms) */
.page-hero {
  padding: 64px 0 48px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 14px;
  color: var(--muted);
}

.page-content {
  padding: var(--section) 0;
  background: var(--canvas);
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 36px 0 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 18px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.page-content a { color: var(--link); }

.page-content-narrow { max-width: 800px; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-body .container { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --section: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-band .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sig-coral, .sig-forest, .sig-dark { padding: 32px 24px; }
  .sig-coral h2, .sig-forest h2, .sig-dark h2 { font-size: 24px; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 24px; }
  .article-hero h1 { font-size: 28px; }
  .cookie-banner { flex-direction: column; gap: 16px; }
  .cookie-btns { width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}
