*, *::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;
    --sig-coral:        #aa2d00;
    --sig-forest:       #0a2e0e;
    --sig-cream:        #f5e9d4;
    --sig-peach:        #fcab79;
    --sig-mint:         #a8d8c4;
    --sig-yellow:       #f4d35e;
    --sig-mustard:      #d9a441;
    --r-xs:             2px;
    --r-sm:             6px;
    --r-md:             10px;
    --r-lg:             12px;
    --r-pill:           9999px;
    --r-full:           50%;
    --sp-xxs:           4px;
    --sp-xs:            8px;
    --sp-sm:            12px;
    --sp-md:            16px;
    --sp-lg:            24px;
    --sp-xl:            32px;
    --sp-xxl:           48px;
    --sp-section:       96px;
    --max-w:            1280px;
    --font-main:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); 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%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }

.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-w); margin: 0 auto; padding: 0 var(--sp-xxl); height: 100%; display: flex; align-items: center; gap: var(--sp-xl); }
.nav-logo { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.nav-menu { display: flex; align-items: center; gap: var(--sp-lg); margin-left: auto; }
.nav-item { font-size: 14px; font-weight: 400; color: var(--body); line-height: 1.25; }
.nav-item--active { color: var(--ink); font-weight: 500; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s; }

.hero-band { background: var(--canvas); padding: var(--sp-section) 0; }
.hero-band__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }
.hero-band__tag { font-size: 13px; font-weight: 500; letter-spacing: 0.16px; color: var(--muted); text-transform: uppercase; margin-bottom: var(--sp-md); }
.hero-band__h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); max-width: 780px; }
.hero-band__sub { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--body); max-width: 600px; margin-top: var(--sp-lg); }
.hero-band__actions { display: flex; align-items: center; gap: var(--sp-md); margin-top: var(--sp-xl); flex-wrap: wrap; }

.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: 16px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; min-height: 48px; }
.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: 16px 24px; border-radius: var(--r-lg); border: 1px solid var(--hairline); cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-secondary:active { color: var(--ink); }
.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; line-height: 1.2; padding: 12px 10px; border-radius: var(--r-xs); border: none; cursor: pointer; }
.btn-legal--outline { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }

.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--surface-soft); }
.section--strong { background: var(--surface-strong); }
.section--dark { background: var(--surface-dark); color: var(--on-primary); }
.section--coral { background: var(--sig-coral); color: var(--on-primary); }
.section--cream { background: var(--sig-cream); }

.section__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }
.section__heading { font-size: 32px; font-weight: 400; line-height: 1.2; color: inherit; }
.section__sub { font-size: 14px; font-weight: 400; line-height: 1.25; color: inherit; max-width: 560px; margin-top: var(--sp-md); opacity: 0.85; }
.section__title-lg { font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: 0.12px; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); margin-top: var(--sp-xl); }
.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%; 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; letter-spacing: 0.16px; color: var(--muted); text-transform: uppercase; 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__excerpt { font-size: 14px; font-weight: 400; line-height: 1.25; color: var(--body); flex: 1; }
.article-card__meta { font-size: 13px; font-weight: 400; color: var(--muted); margin-top: var(--sp-md); }
.article-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink); margin-top: var(--sp-sm); }

.sig-coral-card { background: var(--sig-coral); color: var(--on-primary); border-radius: var(--r-lg); padding: var(--sp-xxl); }
.sig-coral-card__h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-lg); }
.sig-coral-card__body { font-size: 14px; line-height: 1.25; margin-bottom: var(--sp-xl); opacity: 0.9; max-width: 560px; }

.sig-dark-card { background: var(--surface-dark); color: var(--on-primary); border-radius: var(--r-lg); padding: var(--sp-xxl); }
.sig-dark-card__h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-lg); }
.sig-dark-card__body { font-size: 14px; line-height: 1.25; margin-bottom: var(--sp-xl); opacity: 0.9; max-width: 560px; }

.btn-on-dark { 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: 16px 24px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; min-height: 48px; }

.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); margin-top: var(--sp-xl); }
.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--cream  { background: var(--sig-cream); }
.demo-card__label  { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: var(--sp-xs); }
.demo-card__text   { font-size: 14px; font-weight: 400; color: var(--body); line-height: 1.25; }

.cta-band { 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__h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); max-width: 520px; }

.text-input { background: var(--canvas); color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.25; border-radius: var(--r-sm); border: 1px solid var(--hairline); padding: 12px 16px; height: 44px; width: 100%; font-family: var(--font-main); }
.text-input:focus { outline: none; border-color: #458fff; box-shadow: 0 0 0 2px rgba(69,143,255,0.25); }

.contact-form { display: flex; flex-direction: column; gap: var(--sp-md); max-width: 520px; }
.contact-form label { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; display: block; }
.contact-form .form-group { display: flex; flex-direction: column; }

.article-hero { background: var(--canvas); padding: var(--sp-section) 0 var(--sp-xl); }
.article-hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }
.article-body { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-xxl) var(--sp-section); }
.article-body h2 { font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: 0.12px; color: var(--ink); margin-top: var(--sp-xl); margin-bottom: var(--sp-md); }
.article-body h3 { font-size: 20px; font-weight: 400; line-height: 1.5; color: var(--ink); margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }
.article-body p { font-size: 14px; line-height: 1.25; color: var(--body); margin-bottom: var(--sp-md); }
.article-body ul, .article-body ol { font-size: 14px; line-height: 1.25; color: var(--body); margin-bottom: var(--sp-md); padding-left: var(--sp-xl); }
.article-body li { margin-bottom: var(--sp-xs); }
.article-body a { color: var(--link); }
.article-body a:active { color: var(--link-active); }
.article-body img { border-radius: var(--r-md); margin: var(--sp-xl) 0; width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-lg); display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.article-h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); }
.article-lead { font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--body); margin-top: var(--sp-lg); max-width: 680px; }

.page-body { max-width: 780px; margin: 0 auto; padding: var(--sp-section) var(--sp-xxl); }
.page-body h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-xl); }
.page-body h2 { font-size: 24px; font-weight: 400; line-height: 1.35; color: var(--ink); margin-top: var(--sp-xl); margin-bottom: var(--sp-md); }
.page-body h3 { font-size: 20px; font-weight: 400; line-height: 1.5; color: var(--ink); margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }
.page-body p { font-size: 14px; line-height: 1.25; color: var(--body); margin-bottom: var(--sp-md); }
.page-body ul, .page-body ol { font-size: 14px; line-height: 1.25; color: var(--body); padding-left: var(--sp-xl); margin-bottom: var(--sp-md); }
.page-body li { margin-bottom: var(--sp-xs); }
.page-body a { color: var(--link); }

.cream-card { background: var(--sig-cream); border-radius: var(--r-md); padding: var(--sp-lg); margin: var(--sp-xl) 0; }
.cream-card__title { font-size: 20px; font-weight: 400; line-height: 1.5; color: var(--ink); margin-bottom: var(--sp-sm); }
.cream-card__body { font-size: 14px; line-height: 1.25; color: var(--body); }

.related-articles { background: var(--surface-soft); padding: var(--sp-section) 0; }
.related-articles__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }

.disclaimer { background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--sp-lg); margin-top: var(--sp-xl); font-size: 13px; color: var(--muted); line-height: 1.5; }

.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--canvas); border-top: 1px solid var(--hairline); z-index: 200; padding: var(--sp-md) var(--sp-xxl); }
.cookie-banner.is-visible { display: block; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xl); flex-wrap: wrap; }
.cookie-inner p { font-size: 13px; color: var(--body); line-height: 1.5; }
.cookie-link { color: var(--link); }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

.footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: var(--sp-section) 0 var(--sp-xl); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--sp-xxl); margin-bottom: var(--sp-xl); }
.footer-logo { font-size: 16px; font-weight: 500; color: var(--ink); display: block; margin-bottom: var(--sp-sm); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.25; max-width: 280px; }
.footer-heading { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-sm); }
.footer-link { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-bottom: var(--sp-xs); }
.footer-contact-line { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); padding-top: var(--sp-xl); border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.footer-copy { font-size: 14px; color: var(--muted); }
.footer-legal-links { display: flex; gap: var(--sp-lg); }

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    :root { --sp-xxl: 20px; --sp-section: 64px; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .hero-band__h1 { font-size: 28px; }
    .article-h1 { font-size: 26px; }
    .section__heading { font-size: 24px; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-lg) var(--sp-xxl); gap: var(--sp-md); z-index: 99; }
    .nav-menu.is-open { display: flex; }
    .top-nav { position: relative; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
