*, *::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;
    --border-strong: #9297a0;
    --on-primary: #ffffff;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --link: #1b61c9;
    --link-active: #1a3866;
    --info: #254fad;
    --info-border: #458fff;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --rounded-pill: 9999px;
    --rounded-full: 50%;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", 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 { max-width: 100%; height: auto; display: block; }

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

@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-md); }
}

/* 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;
    height: 100%;
    gap: var(--spacing-xl);
}

.nav-brand {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1.4;
}

.nav-brand:active { color: var(--ink); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    flex: 1;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.25;
}

.nav-menu a:active { color: var(--ink); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-shadow: 0 1px 4px rgba(24,29,38,0.12);
    transition: background 0.15s;
}

.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:active { border-color: var(--border-strong); color: var(--ink); }

.btn-secondary-on-dark {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-legal {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* HERO BAND */
.hero-band {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
    max-width: 640px;
}

.hero-band p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* SECTION HEADINGS */
.section-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.display-md {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
}

/* BODY SECTIONS */
.body-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

/* SIGNATURE CORAL CARD */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
    margin: 0 0 var(--spacing-section) 0;
}

.signature-coral-card h2 { color: var(--on-primary); margin-bottom: var(--spacing-md); }
.signature-coral-card p { color: var(--on-primary); opacity: 0.88; margin-bottom: var(--spacing-xl); font-size: 14px; line-height: 1.25; }

/* SIGNATURE FOREST CARD */
.signature-forest-card {
    background: var(--signature-forest);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.signature-forest-card h2 { color: var(--on-primary); margin-bottom: var(--spacing-md); }
.signature-forest-card p { color: var(--on-primary); opacity: 0.88; margin-bottom: var(--spacing-xl); font-size: 14px; line-height: 1.25; }

/* HERO CARD DARK */
.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.hero-card-dark h2 { color: var(--on-primary); margin-bottom: var(--spacing-md); font-size: 32px; font-weight: 400; line-height: 1.2; }
.hero-card-dark p { color: var(--on-primary); opacity: 0.82; margin-bottom: var(--spacing-xl); font-size: 14px; line-height: 1.25; }

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}

.cream-callout h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.cream-callout p { color: var(--body); font-size: 14px; line-height: 1.25; }

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.demo-grid-card {
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    overflow: hidden;
}

.demo-grid-card img {
    border-radius: var(--rounded-md);
    width: 100%;
    object-fit: cover;
    margin-bottom: var(--spacing-xs);
}

.demo-grid-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xxs);
}

.demo-grid-card-body { font-size: 14px; color: var(--body); line-height: 1.25; }

.card-peach { background: var(--signature-peach); }
.card-mint { background: var(--signature-mint); }
.card-yellow { background: var(--signature-yellow); }
.card-cream { background: var(--signature-cream); }
.card-canvas { background: var(--canvas); border: 1px solid var(--hairline); }

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    text-align: center;
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

/* ARTICLE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-sm);
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-xxs);
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.article-card-title a { color: inherit; }
.article-card-title a:active { color: var(--link-active); }

.article-card-meta { font-size: 14px; color: var(--muted); line-height: 1.25; }

/* LOGO STRIP */
.logo-strip {
    padding: var(--spacing-xl) 0;
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.logo-strip .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.logo-strip-label {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

/* FOOTER */
footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--spacing-section) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand-col .nav-brand {
    display: block;
    margin-bottom: var(--spacing-md);
}

.footer-brand-col p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--spacing-xs); }

.footer-col ul li a {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.25;
}

.footer-col ul li a:active { color: var(--ink); }

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 14px;
    color: var(--muted);
}

.footer-legal a { color: var(--muted); }
.footer-legal a:active { color: var(--ink); }

/* TEXT INPUT */
.text-input {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    width: 100%;
    outline: none;
    font-family: inherit;
}

.text-input:focus { border-color: var(--info-border); }

/* CONTACT FORM */
.contact-form {
    background: var(--surface-soft);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xl);
    max-width: 540px;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
    line-height: 1.35;
}

.form-field { margin-bottom: var(--spacing-md); }

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

/* ARTICLE PAGE */
.article-body-section {
    padding: var(--spacing-section) 0;
}

.article-content {
    max-width: 720px;
}

.article-content h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.article-content h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.article-content ul, .article-content ol {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.article-content img {
    border-radius: var(--rounded-md);
    width: 100%;
    margin: var(--spacing-xl) 0;
}

.article-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:active { color: var(--link-active); }
.breadcrumb span { color: var(--muted); }

/* STATIC PAGES */
.page-content {
    max-width: 800px;
    padding: var(--spacing-section) 0;
}

.page-content h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
}

.page-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.page-content ul {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.page-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-md) var(--spacing-xxl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    justify-content: space-between;
    z-index: 200;
    flex-wrap: wrap;
}

.cookie-banner p { font-size: 14px; line-height: 1.25; color: var(--on-primary); flex: 1; }
.cookie-banner a { color: #7ba7e8; }

.cookie-actions { display: flex; gap: var(--spacing-xs); flex-shrink: 0; }

/* TWO-COLUMN */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-section);
    align-items: center;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* DIVIDER BAND */
.divider-band { padding: var(--spacing-section) 0; }

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

/* INLINE CALLOUT */
.inline-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.inline-callout p { font-size: 14px; color: var(--body); line-height: 1.6; margin: 0; }

/* MOBILE MENU OVERLAY */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    z-index: 99;
    padding: var(--spacing-xl);
    overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--hairline); }
.mobile-menu ul li a {
    display: block;
    padding: var(--spacing-md) 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--body);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-actions { display: none; }
    .nav-hamburger { display: flex; }
    .hero-band h1 { font-size: 28px; }
    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: var(--spacing-xl); }
    .two-col-reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-banner { padding: var(--spacing-md); }
    .article-content h1 { font-size: 28px; }
    .page-content h1 { font-size: 28px; }
    .cta-band-light h2 { font-size: 24px; }
    .display-md { font-size: 24px; }
    .hero-card-dark h2 { font-size: 24px; }
}