*, *::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;
    --info-border: #458fff;
    --success: #006400;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --rounded-full: 9999px;
    --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: '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: 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;
}

.nav-brand a {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.nav-menu a:active {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
}

.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;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-secondary:active {
    background: var(--surface-soft);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 5px;
}

.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;
    align-items: center;
    gap: var(--spacing-xxl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 420px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--rounded-md);
    object-fit: cover;
}

/* SECTION HEADINGS */
.section-header {
    margin-bottom: var(--spacing-xxl);
}

.section-tag {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 680px;
}

/* ARTICLES GRID */
.articles-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.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);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-md);
    background: var(--surface-soft);
}

.article-card-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-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.article-card-meta {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
}

.article-card-link {
    color: var(--link);
    font-size: 14px;
    font-weight: 500;
    margin-top: var(--spacing-sm);
    display: inline-block;
}

/* SIGNATURE CORAL CARD */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.signature-coral-section {
    padding: 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);
}

.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: 600px;
}

.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;
    display: inline-block;
    line-height: 1.4;
}

.btn-secondary-on-dark:active {
    background: var(--surface-soft);
    color: var(--ink);
}

/* 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 {
    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);
}

/* DARK CARD */
.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}

.dark-card-section {
    padding: var(--spacing-section) 0;
}

.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 {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.80);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

/* CREAM CALLOUT */
.cream-callout-card {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}

.cream-section {
    padding: var(--spacing-section) 0;
}

.cream-callout-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.cream-callout-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-md);
    max-width: 680px;
}

/* 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);
}

.demo-grid-card.peach { background: var(--signature-peach); }
.demo-grid-card.mint  { background: var(--signature-mint); }
.demo-grid-card.yellow { background: var(--signature-yellow); }
.demo-grid-card.cream { background: var(--signature-cream); }
.demo-grid-card.soft  { background: var(--surface-soft); }

.demo-grid-card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.demo-grid-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.demo-grid-card img {
    width: 100%;
    border-radius: var(--rounded-sm);
    margin-bottom: var(--spacing-sm);
    object-fit: cover;
}

/* DEMO GRID SECTION */
.demo-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.35;
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    text-align: center;
}

.cta-band-section {
    padding: var(--spacing-section) 0;
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.cta-band-light p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* CONTACT FORM */
.contact-section {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.contact-form {
    max-width: 560px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.form-input {
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    outline: none;
}

.form-input:focus {
    border-color: var(--info-border);
}

.form-success {
    display: none;
    background: #f0faf0;
    border: 1px solid var(--success);
    color: var(--success);
    padding: var(--spacing-md);
    border-radius: var(--rounded-sm);
    margin-top: var(--spacing-md);
    font-size: 14px;
}

/* 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 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin-top: var(--spacing-sm);
    max-width: 240px;
}

.footer-brand .brand-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
}

.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 li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a {
    font-size: 14px;
    color: var(--muted);
}

.footer-col a:active {
    color: var(--ink);
}

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding-top: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-legal p {
    font-size: 14px;
    color: var(--muted);
}

.footer-legal-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal-links a {
    font-size: 14px;
    color: var(--muted);
}

/* CONTACT INFO BLOCK */
.contact-info-block {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

.contact-info-block p {
    margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-md) var(--spacing-xxl);
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    flex: 1;
    min-width: 260px;
}

.cookie-text a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-xs);
    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;
}

/* ARTICLE PAGE */
.article-hero {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
}

.article-breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
}

.article-breadcrumb a {
    color: var(--muted);
}

.article-breadcrumb span {
    margin: 0 var(--spacing-xs);
}

.article-meta-top {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.article-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
    max-width: 760px;
}

.article-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 640px;
    margin-bottom: var(--spacing-lg);
}

.article-date {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-xxl);
}

.article-featured-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-xxl);
}

.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    letter-spacing: 0.12px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    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.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-body .inline-image {
    width: 100%;
    border-radius: var(--rounded-md);
    margin: var(--spacing-xl) 0;
}

.article-body .image-caption {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    margin-top: -var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.article-body a {
    color: var(--link);
}

/* STATIC PAGES */
.static-hero {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
}

.static-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.static-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
}

.static-body {
    padding-bottom: var(--spacing-section);
    max-width: 720px;
}

.static-body h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    letter-spacing: 0.12px;
}

.static-body h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.static-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--spacing-md);
}

.static-body ul,
.static-body ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.static-body li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.static-body a {
    color: var(--link);
}

/* DISCLAIMER BLOCK */
.disclaimer-block {
    background: var(--surface-soft);
    border-left: 3px solid var(--hairline);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
    margin: var(--spacing-xl) 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

/* ABOUT PAGE */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
    padding: var(--spacing-section) 0;
}

.two-col img {
    width: 100%;
    border-radius: var(--rounded-md);
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb span {
    margin: 0 6px;
}

/* RELATED ARTICLES */
.related-section {
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--hairline);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* 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;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-band .container {
        flex-direction: column;
    }

    .hero-image {
        flex: unset;
        width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .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);
        gap: var(--spacing-xl);
        z-index: 99;
        overflow-y: auto;
    }

    .nav-menu.open + .nav-actions {
        display: none;
    }

    .article-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner {
        padding: var(--spacing-md);
    }

    .cookie-inner {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}
