@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;
    --link-active: #1a3866;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --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: 14px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 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:active { color: var(--link-active); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* TOP NAV */
.top-nav { position: sticky; top: 0; z-index: 100; height: 64px; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-xxl); height: 64px; display: flex; align-items: center; gap: var(--spacing-xl); }
.nav-brand { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; flex-shrink: 0; }
.nav-brand:active { color: var(--primary-active); }
.nav-links { display: flex; align-items: center; gap: var(--spacing-lg); flex: 1; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--body); }
.nav-links a.nav-active { color: var(--ink); font-weight: 500; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: var(--rounded-sm); background: var(--canvas); cursor: pointer; padding: 8px; margin-left: auto; }
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 1px; transition: opacity 0.2s; }

/* HERO BAND */
.hero-band { padding: var(--spacing-section) 0; background: var(--canvas); }
.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xxl); align-items: center; }
.hero-text h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--spacing-lg); }
.hero-text p { font-size: 14px; line-height: 1.6; color: var(--body); max-width: 480px; margin-bottom: var(--spacing-xl); }
.hero-image img { border-radius: var(--rounded-md); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.btn-primary { display: inline-flex; align-items: center; padding: 16px 24px; background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 500; border-radius: var(--rounded-lg); border: none; cursor: pointer; transition: background 0.15s; }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { display: inline-flex; align-items: center; padding: 16px 24px; background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; border-radius: var(--rounded-lg); border: 1px solid var(--hairline); cursor: pointer; }
.hero-buttons { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }

/* SIGNATURE CORAL CARD */
.signature-coral { background: var(--signature-coral); border-radius: var(--rounded-lg); padding: var(--spacing-xxl); color: var(--on-primary); margin: var(--spacing-section) 0; }
.signature-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--spacing-md); }
.signature-coral p { font-size: 14px; line-height: 1.6; max-width: 640px; margin-bottom: var(--spacing-xl); opacity: 0.9; }
.btn-secondary-on-dark { display: inline-flex; align-items: center; padding: 16px 24px; background: var(--canvas); color: var(--ink); font-size: 16px; font-weight: 500; border-radius: var(--rounded-lg); border: none; cursor: pointer; }

/* SECTION BANDS */
.section-band { padding: var(--spacing-section) 0; }
.section-band-soft { padding: var(--spacing-section) 0; background: var(--surface-soft); }
.section-band-cream { padding: var(--spacing-section) 0; background: var(--signature-cream); }
.section-band-dark { padding: var(--spacing-section) 0; background: var(--surface-dark); color: var(--on-primary); }
.section-title { font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: 0.12px; color: var(--ink); margin-bottom: var(--spacing-xxl); }
.section-band-dark .section-title { color: var(--on-primary); }

/* ARTICLE CARDS */
.article-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); }
.article-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-body { padding: var(--spacing-md); }
.article-card-tag { font-size: 11px; font-weight: 500; 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); }
.article-card-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--spacing-sm); }
.article-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--body); margin-bottom: var(--spacing-md); }
.article-card-link { font-size: 14px; font-weight: 500; color: var(--link); }

/* DEMO GRID */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.demo-card { border-radius: var(--rounded-md); padding: var(--spacing-md); }
.demo-card:nth-child(1) { background: var(--signature-peach); }
.demo-card:nth-child(2) { background: var(--signature-mint); }
.demo-card:nth-child(3) { background: var(--signature-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; line-height: 1.6; color: var(--body); }

/* FOREST SIGNATURE CARD */
.signature-forest { background: var(--signature-forest); border-radius: var(--rounded-lg); padding: var(--spacing-xxl); color: var(--on-primary); }
.signature-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--on-primary); margin-bottom: var(--spacing-md); }
.signature-forest p { font-size: 14px; line-height: 1.6; max-width: 640px; opacity: 0.9; margin-bottom: var(--spacing-xl); }

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

/* CONTACT FORM */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: var(--spacing-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.form-group { display: flex; flex-direction: column; gap: var(--spacing-xs); }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input { height: 44px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: var(--rounded-sm); font-size: 14px; color: var(--ink); background: var(--canvas); outline: none; }
.form-group input:focus { border-color: #458fff; }

/* ARTICLE PAGE */
.article-hero { padding: var(--spacing-section) 0; background: var(--canvas); }
.article-content { padding: var(--spacing-section) 0; }
.article-header h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--spacing-lg); max-width: 800px; }
.article-meta { font-size: 14px; color: var(--muted); margin-bottom: var(--spacing-xxl); }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--spacing-xxl) 0 var(--spacing-md); }
.article-body h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: var(--spacing-xl) 0 var(--spacing-sm); }
.article-body p { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-md); }
.article-body ul, .article-body ol { padding-left: var(--spacing-xl); margin-bottom: var(--spacing-md); }
.article-body li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-xs); }
.article-body a { color: var(--link); }
.article-img { width: 100%; border-radius: var(--rounded-md); margin: var(--spacing-xl) 0; aspect-ratio: 16/9; object-fit: cover; }
.article-caption { font-size: 13px; color: var(--muted); margin-top: calc(-1 * var(--spacing-md)); margin-bottom: var(--spacing-xl); }
.article-layout { display: grid; grid-template-columns: 1fr 240px; gap: var(--spacing-xxl); align-items: start; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box { background: var(--surface-soft); border-radius: var(--rounded-md); padding: var(--spacing-xl); margin-bottom: var(--spacing-lg); }
.sidebar-box h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-md); }
.sidebar-box ul { padding: 0; }
.sidebar-box li { margin-bottom: var(--spacing-sm); }
.sidebar-box a { font-size: 14px; color: var(--link); line-height: 1.5; }

/* PAGE HEADER */
.page-header { padding: var(--spacing-section) 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.page-header h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: var(--spacing-md); }
.page-header p { font-size: 14px; color: var(--body); max-width: 600px; line-height: 1.6; }
.page-content { padding: var(--spacing-section) 0; }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--spacing-xxl) 0 var(--spacing-md); }
.page-content h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: var(--spacing-xl) 0 var(--spacing-sm); }
.page-content p { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-md); max-width: 720px; }
.page-content ul, .page-content ol { padding-left: var(--spacing-xl); margin-bottom: var(--spacing-md); max-width: 720px; }
.page-content li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--spacing-xs); }
.page-content a { color: var(--link); }

/* SCHEMA ARTICLE */
.related-articles { padding: var(--spacing-section) 0; background: var(--surface-soft); }

/* FOOTER */
.footer { border-top: 1px solid var(--hairline); padding: var(--spacing-section) 0 var(--spacing-xl); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-xxl); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--spacing-xxl); margin-bottom: var(--spacing-xxl); }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: var(--spacing-sm); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: var(--spacing-md); }
.footer-contact { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--link); }
.footer-col-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--spacing-md); }
.footer-col ul li { margin-bottom: var(--spacing-sm); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-legal { max-width: var(--max-width); margin: 0 auto; padding: var(--spacing-lg) var(--spacing-xxl) 0; border-top: 1px solid var(--hairline); }
.footer-legal p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: var(--spacing-xs); }
.footer-disclaimer { font-size: 12px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: var(--spacing-lg); left: var(--spacing-lg); right: var(--spacing-lg); max-width: 640px; background: var(--surface-dark); color: var(--on-primary); padding: var(--spacing-lg) var(--spacing-xl); border-radius: var(--rounded-lg); z-index: 9999; display: flex; gap: var(--spacing-xl); align-items: flex-start; }
.cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; }
.cookie-text p { font-size: 13px; line-height: 1.6; margin-bottom: var(--spacing-sm); }
.cookie-text a { color: var(--signature-peach); }
.cookie-buttons { display: flex; gap: var(--spacing-sm); flex-shrink: 0; }
.btn-legal { padding: 12px 10px; font-size: 13.12px; font-weight: 600; border-radius: var(--rounded-xs); border: none; cursor: pointer; }
.btn-legal-accept { background: var(--link); color: var(--on-primary); }
.btn-legal-reject { background: transparent; color: var(--on-primary); border: 1px solid rgba(255,255,255,0.3); }

/* SCHEMA */
.schema-block { display: none; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --spacing-section: 64px; }
    .container { padding: 0 var(--spacing-md); }
    .nav-inner { padding: 0 var(--spacing-md); }
    .nav-hamburger { display: flex; }
    .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); flex-direction: column; align-items: flex-start; padding: var(--spacing-xl) var(--spacing-md); gap: var(--spacing-xl); z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { font-size: 20px; }
    .hero-band .container { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-text h1 { font-size: 28px; }
    .article-header h1 { font-size: 28px; }
    .page-header h1 { font-size: 28px; }
    .signature-coral h2, .signature-forest h2 { font-size: 24px; }
    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; padding: 0 var(--spacing-md); }
    .footer-legal { padding: var(--spacing-md) var(--spacing-md) 0; }
    .cookie-banner { flex-direction: column; left: var(--spacing-md); right: var(--spacing-md); }
    .cookie-buttons { width: 100%; justify-content: flex-end; }
}
