*, *::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;
    --info-border: #458fff;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --rounded-pill: 9999px;
    --rounded-full: 50%;
}

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);
}

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);
}

/* 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 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.nav-brand {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    text-decoration: none;
}

.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;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary:active { background: var(--primary-active); }

.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;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.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;
    text-decoration: none;
    display: inline-block;
}

.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 .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 720px;
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

.hero-band p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

.display-xl { font-size: 48px; font-weight: 500; line-height: 1.1; }
.display-lg { font-size: 40px; font-weight: 400; line-height: 1.2; }
.display-md { font-size: 32px; font-weight: 400; line-height: 1.2; }
.title-lg { font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: 0.12px; }
.title-md { font-size: 20px; font-weight: 400; line-height: 1.5; }
.title-sm { font-size: 18px; font-weight: 500; line-height: 1.4; }
.label-md { font-size: 16px; font-weight: 500; line-height: 1.4; }
.body-md { font-size: 14px; font-weight: 400; line-height: 1.25; }
.caption { font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: 0.16px; }

/* SECTIONS */
.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

/* SIGNATURE CARDS */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.signature-coral-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.signature-coral-card p {
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

.signature-forest-card {
    background: var(--signature-forest);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.signature-forest-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.signature-forest-card p {
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.hero-card-dark p {
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

/* CREAM CALLOUT */
.cream-callout-card {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}

.cream-callout-card h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

/* DEMO GRID CARDS */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.demo-card {
    border-radius: var(--rounded-md);
    overflow: hidden;
    background: var(--canvas);
}

.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-yellow { background: var(--signature-yellow); }
.demo-card-cream { background: var(--signature-cream); }

.demo-card-inner {
    padding: var(--spacing-md);
}

.demo-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--rounded-md) var(--rounded-md) 0 0;
}

.demo-card .label-md {
    margin-bottom: var(--spacing-xs);
    color: var(--ink);
}

.demo-card .body-md {
    color: var(--body);
}

/* 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: 12px;
    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-title a {
    color: var(--ink);
    text-decoration: none;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-sm);
}

/* 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-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xxl);
    flex-wrap: wrap;
}

.logo-strip-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 560px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.text-input {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    width: 100%;
    font-family: inherit;
}

.text-input:focus {
    outline: none;
    border-color: var(--info-border);
}

textarea.text-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* FOOTER */
.footer {
    background: var(--canvas);
    padding: var(--spacing-section) 0 var(--spacing-xl);
    border-top: 1px solid var(--hairline);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    margin-top: var(--spacing-sm);
    max-width: 280px;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--hairline);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

/* ARTICLE PAGE */
.article-page {
    padding: var(--spacing-section) 0;
}

.article-header {
    max-width: 760px;
    margin-bottom: var(--spacing-xxl);
}

.article-header .article-tag {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--spacing-sm);
}

.article-header h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.article-header .article-meta {
    font-size: 13px;
    color: var(--muted);
}

.article-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-xxl);
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: 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-body .callout-cream {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.article-body .callout-cream p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--ink);
}

/* BREADCRUMB */
.breadcrumb {
    padding: var(--spacing-md) 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 var(--spacing-xs);
}

/* INTERNAL LINKS SECTION */
.related-articles {
    margin-top: var(--spacing-section);
    padding-top: var(--spacing-xxl);
    border-top: 1px solid var(--hairline);
}

.related-articles h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

/* PAGE CONTENT */
.page-content {
    padding: var(--spacing-section) 0;
    max-width: 760px;
}

.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 h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.page-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-md);
}

.page-content ul, .page-content ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.page-content a { color: var(--link); }

/* ABOUT CONTACT BLOCK */
.about-contact-block {
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.about-contact-block p {
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    color: var(--body);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-lg) var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    z-index: 200;
}

#cookie-banner p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    line-height: 1.5;
}

#cookie-banner p a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    white-space: nowrap;
}

/* SCHEMA / HERO IMG SECTION */
.hero-img-wrap {
    margin-top: var(--spacing-xl);
    border-radius: var(--rounded-md);
    overflow: hidden;
}

.hero-img-wrap img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* DISCLAIMER */
.disclaimer-banner {
    background: var(--surface-soft);
    border-top: 1px solid var(--hairline);
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-md); }

    .nav-menu, .nav-actions { display: none; }
    .nav-hamburger { display: flex; }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--canvas);
        padding: var(--spacing-xl);
        z-index: 99;
        gap: var(--spacing-xl);
    }

    .nav-menu.open .nav-actions {
        display: flex;
        flex-direction: column;
        margin-top: var(--spacing-xl);
    }

    .hero-band { padding: 64px 0; }
    .hero-band h1 { font-size: 28px; }

    .demo-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }

    .cta-band-light { flex-direction: column; align-items: flex-start; }
    .cta-band-light h2 { font-size: 24px; }

    .footer-grid { grid-template-columns: 1fr; }

    .article-header h1 { font-size: 28px; }
    .section { padding: 64px 0; }

    .form-row { grid-template-columns: 1fr; }

    #cookie-banner { flex-direction: column; padding: var(--spacing-md); }

    .logo-strip-inner { gap: var(--spacing-lg); }

    .signature-coral-card, .signature-forest-card, .hero-card-dark { padding: var(--spacing-xl); }
    .signature-coral-card h2, .signature-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
}

@media (min-width: 1440px) {
    .container { padding: 0 var(--spacing-section); }
}
