*, *::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;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body);
    background-color: 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;
    gap: var(--spacing-xl);
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.nav-logo span {
    color: var(--signature-coral);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: var(--body);
    font-size: 14px;
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.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;
    transition: background 0.15s;
}

.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;
}

.btn-legal {
    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;
}

.btn-reject {
    background: transparent;
    color: var(--muted);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: 1px solid var(--hairline);
    cursor: pointer;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* HERO */
.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: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--rounded-md);
    width: 100%;
    object-fit: cover;
    max-height: 420px;
}

/* SECTION TITLES */
.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--body);
    max-width: 580px;
}

/* ARTICLES GRID */
.articles-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.articles-header {
    margin-bottom: var(--spacing-xxl);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.article-card:active {
    box-shadow: 0 4px 16px rgba(24,29,38,0.10);
}

.article-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: var(--spacing-md);
}

.article-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    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-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-sm);
}

/* SIGNATURE CARDS */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    margin: var(--spacing-section) 0;
}

.signature-coral-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
    max-width: 560px;
}

.signature-coral-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.btn-secondary-on-dark {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.signature-forest-card {
    background: var(--signature-forest);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}

.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 {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.80);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

/* DEMO GRID */
.demo-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.demo-card {
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    overflow: hidden;
}

.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 h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.demo-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.demo-card img {
    border-radius: var(--rounded-sm);
    margin-bottom: var(--spacing-sm);
    width: 100%;
    object-fit: cover;
    height: 160px;
}

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-section) var(--spacing-xxl);
    margin: var(--spacing-section) 0;
}

.cream-callout h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.cream-callout p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

/* CTA BAND */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl) var(--spacing-section);
    margin: var(--spacing-section) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    max-width: 480px;
}

/* CONTACT FORM */
.contact-section {
    padding: var(--spacing-section) 0;
    background: var(--surface-soft);
}

.contact-form {
    max-width: 560px;
    margin-top: var(--spacing-xxl);
}

.form-row {
    margin-bottom: var(--spacing-md);
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.form-row input,
.form-row textarea {
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    font-family: inherit;
    outline: none;
}

.form-row textarea {
    height: 120px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #458fff;
}

/* FOOTER */
.site-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;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: var(--spacing-sm);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.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);
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
}

/* 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;
    justify-content: space-between;
    gap: var(--spacing-md);
    z-index: 999;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
}

.cookie-banner p a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* ARTICLE PAGE */
.article-hero {
    padding: var(--spacing-section) 0 var(--spacing-xl);
    background: var(--canvas);
}

.article-hero .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

.article-hero .breadcrumb a {
    color: var(--muted);
}

.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: var(--spacing-md);
}

.article-hero .article-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
}

.article-hero .hero-img {
    border-radius: var(--rounded-md);
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-body {
    padding: var(--spacing-xxl) 0 var(--spacing-section);
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-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);
}

.article-content h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-md);
}

.article-content ul, .article-content ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-xl);
}

.article-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-content a {
    color: var(--link);
}

.article-content img {
    border-radius: var(--rounded-md);
    margin: var(--spacing-xl) 0;
    width: 100%;
}

.article-content .callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.article-content .callout p {
    margin-bottom: 0;
    font-size: 15px;
}

/* PAGE CONTENT */
.page-hero {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.page-hero p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
}

.page-body {
    padding: var(--spacing-xxl) 0 var(--spacing-section);
}

.page-content {
    max-width: 720px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-md);
}

.page-content ul, .page-content ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-xl);
}

.page-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.page-content a {
    color: var(--link);
}

/* RELATED ARTICLES */
.related-section {
    padding: var(--spacing-section) 0;
    background: var(--surface-soft);
}

/* MOBILE NAV */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--canvas);
    z-index: 200;
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-xxl);
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-links a {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-links, .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .hero-band .container {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-band-light {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
    }

    .signature-coral-card {
        padding: var(--spacing-xl);
    }

    .cream-callout {
        padding: var(--spacing-xl);
    }

    .section-title {
        font-size: 24px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
