@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;475;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-pill: 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 { 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; border-radius: var(--r-md); }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-xxl); }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--canvas); height: 64px; border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-family: 'Inter Display', sans-serif; font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.3px; }
.site-logo:hover { text-decoration: none; color: var(--ink); }
.site-nav ul { display: flex; gap: var(--sp-xl); align-items: center; }
.site-nav a { font-size: 14px; font-weight: 400; color: var(--body); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--sp-xs); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }

.hero-band { padding: var(--sp-section) 0; background: var(--canvas); }
.hero-content { max-width: 720px; }
.hero-content 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-content p { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: var(--sp-xl); max-width: 560px; }
.btn-primary { display: inline-block; 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; }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); text-decoration: none; }
.btn-secondary { display: inline-block; background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; padding: 16px 24px; border-radius: var(--r-lg); border: 1px solid var(--hairline); cursor: pointer; }
.btn-secondary:hover { text-decoration: none; border-color: #aaa; }
.btn-row { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center; }

.section { padding: var(--sp-section) 0; }
.section-title { 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-subtitle { font-size: 18px; color: var(--body); margin-bottom: var(--sp-xxl); max-width: 640px; }

.sig-coral { background: var(--sig-coral); color: var(--on-primary); padding: var(--sp-xxl); border-radius: var(--r-lg); }
.sig-coral h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--sp-md); }
.sig-coral p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--sp-xl); max-width: 520px; }

.sig-forest { background: var(--sig-forest); color: var(--on-primary); padding: var(--sp-xxl); border-radius: var(--r-lg); }
.sig-forest h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; color: var(--on-primary); margin-bottom: var(--sp-md); }
.sig-forest p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: var(--sp-xl); max-width: 520px; }

.sig-dark { background: var(--surface-dark); color: var(--on-primary); padding: var(--sp-xxl); border-radius: var(--r-lg); }
.sig-dark h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; color: var(--on-primary); margin-bottom: var(--sp-md); }
.sig-dark p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: var(--sp-xl); max-width: 540px; }

.cream-callout { background: var(--sig-cream); padding: var(--sp-lg); border-radius: var(--r-md); }

.card-grid { display: grid; gap: var(--sp-lg); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.article-card { background: var(--canvas); border-radius: var(--r-md); padding: var(--sp-md); border: 1px solid var(--hairline); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-md); }
.article-card .tag { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; 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; margin-bottom: var(--sp-md); }
.article-card .meta { font-size: 13px; color: var(--muted); }
.article-card a.read-more { font-size: 14px; font-weight: 500; color: var(--link); }

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.demo-card { border-radius: var(--r-md); padding: var(--sp-md); }
.demo-card.peach { background: var(--sig-peach); }
.demo-card.mint { background: var(--sig-mint); }
.demo-card.yellow { background: var(--sig-yellow); }
.demo-card h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-xs); }
.demo-card p { font-size: 14px; color: var(--body); line-height: 1.5; }

.topic-intro { background: var(--surface-soft); border-radius: var(--r-md); padding: var(--sp-xl); margin-bottom: var(--sp-section); }
.topic-intro h2 { font-family: 'Inter Display', sans-serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); line-height: 1.35; letter-spacing: 0.12px; }
.topic-intro p { font-size: 14px; color: var(--body); line-height: 1.6; }

.cta-band { background: var(--surface-strong); border-radius: var(--r-lg); padding: var(--sp-xxl); text-align: center; }
.cta-band h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); }
.cta-band p { font-size: 14px; color: var(--body); margin-bottom: var(--sp-xl); }

.contact-form { max-width: 560px; }
.contact-form .field { margin-bottom: var(--sp-md); }
.contact-form label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-xs); }
.contact-form input { width: 100%; height: 44px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: var(--r-sm); font-size: 14px; color: var(--ink); background: var(--canvas); font-family: inherit; }
.contact-form input:focus { outline: none; border-color: #458fff; box-shadow: 0 0 0 2px rgba(69,143,255,0.15); }

.article-hero { padding: var(--sp-section) 0 var(--sp-xxl); border-bottom: 1px solid var(--hairline); }
.article-hero .tag { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: var(--sp-sm); }
.article-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); max-width: 760px; }
.article-hero .article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--r-md); }

.article-body { padding: var(--sp-section) 0; max-width: 720px; }
.article-body h2 { font-family: 'Inter Display', sans-serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); margin-top: var(--sp-xxl); line-height: 1.35; letter-spacing: 0.12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-sm); margin-top: var(--sp-xl); }
.article-body p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-md); }
.article-body ul { margin-bottom: var(--sp-md); padding-left: var(--sp-xl); list-style: disc; }
.article-body ul li { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-xs); }
.article-body a { color: var(--link); }
.article-body .callout { background: var(--sig-cream); border-radius: var(--r-md); padding: var(--sp-lg); margin: var(--sp-xl) 0; }
.article-body .callout p { margin-bottom: 0; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-xxl); align-items: start; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box { background: var(--surface-soft); border-radius: var(--r-md); padding: var(--sp-xl); margin-bottom: var(--sp-lg); }
.sidebar-box h4 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); text-transform: uppercase; letter-spacing: 0.8px; }
.sidebar-box ul li { margin-bottom: var(--sp-xs); }
.sidebar-box ul li a { font-size: 13px; color: var(--link); }

.page-hero { padding: var(--sp-section) 0 var(--sp-xxl); border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-family: 'Inter Display', sans-serif; font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); }
.page-hero p { font-size: 18px; color: var(--body); max-width: 560px; }
.page-content { padding: var(--sp-section) 0; max-width: 760px; }
.page-content h2 { font-family: 'Inter Display', sans-serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); margin-top: var(--sp-xxl); letter-spacing: 0.12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-sm); margin-top: var(--sp-xl); }
.page-content p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-md); }
.page-content ul { margin-bottom: var(--sp-md); padding-left: var(--sp-xl); list-style: disc; }
.page-content ul li { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-xs); }
.page-content a { color: var(--link); }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface-dark); color: var(--on-primary); padding: var(--sp-lg) var(--sp-xxl); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); z-index: 9999; flex-wrap: wrap; }
.cookie-banner p { font-size: 13px; color: rgba(255,255,255,0.85); max-width: 680px; }
.cookie-banner p a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--sp-xs); flex-shrink: 0; }
.btn-cookie { font-size: 13.12px; font-weight: 600; padding: 12px 10px; border-radius: var(--r-xs); border: none; cursor: pointer; background: var(--link); color: var(--on-primary); }
.btn-cookie.reject { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.75); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxl); align-items: center; }
.two-col-text h2 { font-family: 'Inter Display', sans-serif; font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); line-height: 1.2; }
.two-col-text p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-md); }
.two-col-img img { width: 100%; border-radius: var(--r-md); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); margin: var(--sp-xxl) 0; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Inter Display', sans-serif; font-size: 40px; font-weight: 400; color: var(--ink); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: var(--sp-xxs); }

.site-footer { border-top: 1px solid var(--hairline); padding-top: var(--sp-section); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-xxl); padding-bottom: var(--sp-xxl); }
.footer-brand { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-sm); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: var(--sp-md); }
.footer-contact { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--link); }
.footer-heading { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); text-transform: uppercase; letter-spacing: 0.8px; }
.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); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--hairline); padding: var(--sp-lg) 0; }
.footer-bottom p { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-xs); }
.footer-disclaimer { font-size: 13px; color: #9297a0; }

@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .hero-content h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); padding: var(--sp-xl); flex-direction: column; z-index: 99; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: var(--sp-lg); }
  .nav-toggle { display: flex; }
  .hero-band { padding: 64px 0; }
  .section { padding: 64px 0; }
  .article-hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .sig-coral, .sig-forest, .sig-dark { padding: var(--sp-xl); }
  .sig-coral h2, .sig-forest h2, .sig-dark h2 { font-size: 24px; }
  .cookie-banner { flex-direction: column; padding: var(--sp-md); }
}
