@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;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --yellow: #f4d35e;
  --mustard: #d9a441;
  --success: #006400;
  --info: #254fad;
  --info-border: #458fff;
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --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); -webkit-font-smoothing: antialiased; }

a { color: var(--link); text-decoration: none; }
a:active { color: var(--link-active); }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-xxl); }

/* NAV */
.top-nav { position: sticky; top: 0; z-index: 100; height: 64px; background: var(--canvas); border-bottom: 1px solid var(--hairline); display: flex; align-items: center; }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.3px; }
.nav-brand span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: var(--sp-xl); list-style: none; }
.nav-links a { font-size: 14px; color: var(--body); font-weight: 400; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: var(--sp-md); }
.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: 12px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; }
.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: 12px 24px; border-radius: var(--r-lg); border: 1px solid var(--hairline); cursor: pointer; text-decoration: none; }
.btn-legal { display: inline-flex; align-items: center; justify-content: center; 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-legal-reject { background: var(--surface-strong); color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--sp-xs); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO */
.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 h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-lg); }
.hero-content p { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: var(--sp-xl); max-width: 480px; }
.hero-buttons { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.hero-image { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* SIGNATURE CARDS */
.signature-coral { background: var(--coral); color: var(--on-primary); border-radius: var(--r-lg); padding: var(--sp-xxl); }
.signature-forest { background: var(--forest); color: var(--on-primary); border-radius: var(--r-lg); padding: var(--sp-xxl); }
.signature-dark { background: var(--surface-dark); color: var(--on-primary); border-radius: var(--r-lg); padding: var(--sp-xxl); }
.signature-cream { background: var(--cream); color: var(--ink); border-radius: var(--r-md); padding: var(--sp-lg); }

.signature-coral h2, .signature-forest h2, .signature-dark h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-md); }
.signature-coral p, .signature-forest p, .signature-dark p { font-size: 14px; line-height: 1.5; margin-bottom: var(--sp-xl); opacity: 0.9; }
.btn-on-dark { display: inline-flex; align-items: center; justify-content: center; background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; padding: 12px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; }

/* SECTIONS */
.section { padding: var(--sp-section) 0; }
.section-title { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-md); }
.section-sub { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: var(--sp-xxl); max-width: 600px; }

/* CARD GRID */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.article-card { background: var(--canvas); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--hairline); }
.article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: var(--sp-md); }
.article-card-tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: var(--sp-xs); }
.article-card-title { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: var(--sp-xs); }
.article-card-title a { color: var(--ink); }
.article-card-meta { font-size: 13px; color: var(--muted); }

/* DEMO GRID */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.demo-card { border-radius: var(--r-md); padding: var(--sp-md); }
.demo-card-peach { background: var(--peach); }
.demo-card-mint { background: var(--mint); }
.demo-card-yellow { background: var(--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; }

/* CTA BAND */
.cta-band-light { background: var(--surface-strong); border-radius: var(--r-lg); padding: var(--sp-xxl); text-align: center; }
.cta-band-light h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); }
.cta-band-light p { font-size: 14px; color: var(--body); margin-bottom: var(--sp-xl); }

/* FORM */
.form-wrap { background: var(--surface-soft); border-radius: var(--r-lg); padding: var(--sp-xxl); max-width: 580px; }
.form-wrap h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-sm); }
.form-wrap p { font-size: 14px; color: var(--body); margin-bottom: var(--sp-xl); }
.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); color: var(--ink); font-size: 14px; padding: 12px 16px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--r-sm); font-family: inherit; }
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--info-border); }

/* FOOTER */
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-xxl); margin-bottom: var(--sp-xxl); }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: var(--sp-sm); max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-xs); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: var(--sp-xl); }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: var(--sp-lg); }
.footer-bottom-links a { font-size: 13px; color: var(--muted); }

/* ARTICLE PAGE */
.article-hero { padding: var(--sp-xxl) 0 var(--sp-xl); border-bottom: 1px solid var(--hairline); }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-md); }
.article-meta span { margin-right: var(--sp-sm); }
.article-title { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-md); }
.article-intro { font-size: 16px; color: var(--body); line-height: 1.6; max-width: 720px; }
.article-body { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-xxl); padding: var(--sp-xxl) 0 var(--sp-section); }
.article-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); }
.article-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); }
.article-content p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-md); }
.article-content ul, .article-content ol { margin: var(--sp-sm) 0 var(--sp-md) var(--sp-xl); }
.article-content li { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-xs); }
.article-content img { border-radius: var(--r-md); margin: var(--sp-xl) 0; width: 100%; }
.article-content a { color: var(--link); }
.article-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-box { background: var(--surface-soft); border-radius: var(--r-md); padding: var(--sp-xl); margin-bottom: var(--sp-xl); }
.sidebar-box h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); }
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: var(--sp-xs); border-bottom: 1px solid var(--hairline); padding-bottom: var(--sp-xs); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { font-size: 13px; color: var(--body); line-height: 1.5; }
.article-img-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-xxl); }

/* PAGE CONTENT */
.page-hero { padding: var(--sp-xxl) 0; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); }
.page-hero p { font-size: 14px; color: var(--muted); }
.page-body { padding: var(--sp-section) 0; max-width: 800px; }
.page-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); }
.page-body h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); }
.page-body p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-md); }
.page-body ul, .page-body ol { margin: var(--sp-sm) 0 var(--sp-md) var(--sp-xl); }
.page-body li { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: var(--sp-xs); }
.page-body a { color: var(--link); }
.page-updated { font-size: 13px; color: var(--muted); margin-top: var(--sp-xxl); padding-top: var(--sp-md); border-top: 1px solid var(--hairline); }

/* CONTACT INFO */
.contact-block { background: var(--surface-soft); border-radius: var(--r-md); padding: var(--sp-xl); margin-bottom: var(--sp-xl); }
.contact-block p { font-size: 14px; color: var(--body); line-height: 1.8; }

/* COOKIE BANNER */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--surface-dark); color: var(--on-primary); padding: var(--sp-lg) var(--sp-xxl); }
#cookie-banner.visible { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xxl); flex-wrap: wrap; }
#cookie-banner p { font-size: 13px; line-height: 1.5; max-width: 700px; }
#cookie-banner p a { color: var(--mint); }
.cookie-buttons { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding: var(--sp-md) 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 var(--sp-xs); }

/* DISCLAIMER */
.disclaimer { background: var(--cream); border-radius: var(--r-md); padding: var(--sp-md) var(--sp-lg); margin: var(--sp-xxl) 0; font-size: 13px; color: var(--body); line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero-band .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-mobile-open .nav-links { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); padding: var(--sp-xxl) var(--sp-xl); gap: var(--sp-xl); z-index: 99; }
  .card-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-md); align-items: flex-start; }
  .hero-content h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
  .article-title { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .signature-coral h2, .signature-forest h2, .signature-dark h2 { font-size: 24px; }
  #cookie-banner.visible { flex-direction: column; align-items: flex-start; }
  .sp-section { padding: 48px 0; }
}
