@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;
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-full: 9999px;
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-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 { color: var(--link-active); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-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 { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-family: 'Inter Display', sans-serif; font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.nav-menu { display: flex; align-items: center; gap: var(--sp-lg); }
.nav-menu a { font-size: 14px; font-weight: 400; color: var(--body); }
.nav-menu a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-md); }
.btn-primary { background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 500; padding: 16px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; line-height: 1.4; }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary { background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; padding: 15px 24px; border-radius: var(--r-lg); border: 1px solid var(--hairline); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; line-height: 1.4; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-secondary-on-dark { background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; padding: 15px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; line-height: 1.4; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO BAND */
.hero-band { padding: var(--sp-section) 0; background: var(--canvas); }
.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxl); align-items: center; }
.hero-content {}
.hero-tag { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16px; margin-bottom: var(--sp-md); }
.hero-h1 { font-family: 'Inter Display', sans-serif; font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-lg); }
.hero-sub { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--body); margin-bottom: var(--sp-xl); max-width: 480px; }
.hero-actions { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.hero-image { border-radius: var(--r-lg); overflow: hidden; }
.hero-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r-lg); }

/* SIGNATURE CARDS */
.sig-coral-card { background: var(--sig-coral); border-radius: var(--r-lg); padding: var(--sp-xxl); color: var(--on-primary); }
.sig-coral-card h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-md); }
.sig-coral-card p { font-size: 14px; line-height: 1.6; margin-bottom: var(--sp-xl); opacity: 0.9; max-width: 560px; }
.sig-forest-card { background: var(--sig-forest); border-radius: var(--r-lg); padding: var(--sp-xxl); color: var(--on-primary); }
.sig-forest-card h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-md); }
.sig-forest-card p { font-size: 14px; line-height: 1.6; margin-bottom: var(--sp-xl); opacity: 0.9; max-width: 560px; }
.sig-dark-card { background: var(--surface-dark); border-radius: var(--r-lg); padding: var(--sp-xxl); color: var(--on-primary); }
.sig-dark-card h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-md); }
.sig-dark-card p { font-size: 14px; line-height: 1.6; margin-bottom: var(--sp-xl); opacity: 0.85; max-width: 600px; }

/* SECTION BANDS */
.section-band { padding: var(--sp-section) 0; }
.section-band.bg-soft { background: var(--surface-soft); }
.section-band.bg-cream { background: var(--sig-cream); }
.section-band.bg-strong { background: var(--surface-strong); }
.section-band.bg-dark { background: var(--surface-dark); color: var(--on-primary); }
.section-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16px; color: var(--muted); margin-bottom: var(--sp-md); }
.section-label.on-dark { color: rgba(255,255,255,0.6); }
.section-h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-lg); }
.section-h2.on-dark { color: var(--on-primary); }
.section-body { font-size: 14px; line-height: 1.6; color: var(--body); max-width: 640px; }
.section-body.on-dark { color: rgba(255,255,255,0.8); }

/* CARD GRIDS */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.demo-card { background: var(--canvas); border-radius: var(--r-md); padding: var(--sp-md); border: 1px solid var(--hairline); }
.demo-card.peach { background: var(--sig-peach); border: none; }
.demo-card.mint { background: var(--sig-mint); border: none; }
.demo-card.yellow { background: var(--sig-yellow); border: none; }
.demo-card.cream { background: var(--sig-cream); border: none; }
.demo-card img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-sm); }
.demo-card-tall img { height: 240px; }
.demo-card h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-xs); line-height: 1.4; }
.demo-card p { font-size: 14px; color: var(--body); line-height: 1.5; }
.demo-card .card-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16px; color: var(--muted); margin-bottom: var(--sp-xs); }

/* ARTICLE CARDS */
.article-card { background: var(--canvas); border-radius: var(--r-md); padding: var(--sp-md); border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-sm); }
.article-card .cat-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16px; color: var(--muted); margin-bottom: var(--sp-xs); }
.article-card h3 { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: var(--sp-xs); }
.article-card p { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.article-card .card-meta { font-size: 13px; color: var(--muted); margin-top: var(--sp-sm); }
.article-card a.read-link { font-size: 14px; color: var(--link); font-weight: 500; margin-top: var(--sp-sm); display: inline-block; }

/* CTA BAND */
.cta-band-light { background: var(--surface-strong); border-radius: var(--r-lg); padding: var(--sp-xxl); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xl); }
.cta-band-light h2 { font-size: 32px; font-weight: 400; color: var(--ink); line-height: 1.2; max-width: 520px; }
.cta-band-wrap { padding: var(--sp-section) 0; background: var(--canvas); }

/* CONTACT FORM */
.contact-form { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-xl); max-width: 560px; }
.form-group { margin-bottom: var(--sp-md); }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-xs); }
.form-group input, .form-group textarea { width: 100%; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; color: var(--ink); font-family: inherit; height: 44px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #458fff; box-shadow: 0 0 0 2px rgba(69,143,255,0.15); }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { width: 100%; }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: var(--sp-section) 0 var(--sp-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); margin-bottom: var(--sp-xxl); }
.footer-brand .nav-brand { display: block; margin-bottom: var(--sp-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(--sp-md); }
.footer-col ul li { margin-bottom: var(--sp-xs); }
.footer-col ul li a { font-size: 14px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom { padding-top: var(--sp-xl); border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); flex-wrap: wrap; }
.footer-legal { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: var(--sp-lg); }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface-dark-elevated); color: var(--on-primary); padding: var(--sp-md) var(--sp-xxl); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); z-index: 999; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.cookie-banner p { font-size: 14px; line-height: 1.5; opacity: 0.85; flex: 1; min-width: 260px; }
.cookie-banner p a { color: #458fff; }
.cookie-actions { display: flex; gap: var(--sp-sm); 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(--r-xs); border: none; cursor: pointer; }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,0.7); font-size: 13.12px; font-weight: 600; padding: 12px 10px; border-radius: var(--r-xs); border: 1px solid rgba(255,255,255,0.25); cursor: pointer; }

/* PAGE HERO (inner pages) */
.page-hero { padding: var(--sp-xxl) 0 var(--sp-section); background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-md); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 var(--sp-xs); }
.page-hero h1 { font-family: 'Inter Display', sans-serif; font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: var(--sp-md); max-width: 720px; }
.page-hero .hero-sub { max-width: 600px; }

/* ARTICLE PAGE */
.article-layout { padding: var(--sp-section) 0; }
.article-layout .container { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-xxl); align-items: start; }
.article-content h1 { font-family: 'Inter Display', sans-serif; font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: var(--sp-md); }
.article-content .article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }
.article-content .featured-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: var(--sp-xl); }
.article-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-md); line-height: 1.35; letter-spacing: 0.12px; }
.article-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-sm); line-height: 1.4; }
.article-content p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.article-content ul, .article-content ol { padding-left: var(--sp-lg); margin-bottom: var(--sp-md); list-style: disc; }
.article-content ul li, .article-content ol li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-xs); }
.article-content a { color: var(--link); }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--surface-soft); border-radius: var(--r-md); padding: var(--sp-md); margin-bottom: var(--sp-md); border: 1px solid var(--hairline); }
.sidebar-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-sm); }
.sidebar-card ul li { margin-bottom: var(--sp-xs); }
.sidebar-card ul li a { font-size: 14px; color: var(--link); line-height: 1.5; }

/* PROSE (about, privacy, terms) */
.prose-layout { padding: var(--sp-section) 0; }
.prose-content { max-width: 800px; }
.prose-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-md); line-height: 1.35; }
.prose-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-sm); }
.prose-content p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.prose-content ul, .prose-content ol { padding-left: var(--sp-lg); margin-bottom: var(--sp-md); list-style: disc; }
.prose-content ul li, .prose-content ol li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-xs); }
.prose-content a { color: var(--link); }
.prose-content strong { font-weight: 500; color: var(--ink); }
.updated-date { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }

/* SECTION DIVIDER */
.section-gap { height: var(--sp-section); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-band .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .article-layout .container { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-open .nav-menu { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); padding: var(--sp-xl); gap: var(--sp-lg); z-index: 99; align-items: flex-start; font-size: 20px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-light { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-h1 { font-size: 28px; }
  .section-h2, .article-content h1 { font-size: 26px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-md); }
}
