*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #181d26;
    --body: #333840;
    --muted: #41454d;
    --canvas: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #e0e2e6;
    --surface-dark: #181d26;
    --surface-dark-elevated: #1d1f25;
    --hairline: #dddddd;
    --coral: #aa2d00;
    --forest: #0a2e0e;
    --cream: #f5e9d4;
    --peach: #fcab79;
    --mint: #a8d8c4;
    --yellow: #f4d35e;
    --link: #1b61c9;
    --on-dark: #ffffff;
    --r-xs: 2px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-xxl: 48px;
    --sp-section: 96px;
    --max-w: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 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:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
}

/* TOP NAV */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}
.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-xxl);
}
.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    font-size: 14px;
    color: var(--body);
}
.nav-menu a { color: var(--body); }
.nav-menu a.active { color: var(--ink); font-weight: 500; }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: var(--sp-xs);
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 var(--sp-md); }
    .nav-hamburger { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0; right: 0; bottom: 0;
        background: var(--canvas);
        padding: var(--sp-xxl) var(--sp-lg);
        gap: var(--sp-lg);
        font-size: 18px;
        z-index: 99;
    }
    .nav-menu.open { display: flex; }
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: var(--on-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary:hover { text-decoration: none; background: #0d1218; }

.btn-secondary {
    display: inline-block;
    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;
    white-space: nowrap;
}
.btn-secondary:hover { text-decoration: none; border-color: #9297a0; }

.btn-legal {
    display: inline-block;
    background: var(--link);
    color: #fff;
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    border: none;
    cursor: pointer;
}

/* HERO */
.hero-band {
    padding: var(--sp-section) 0;
    background: var(--canvas);
}
.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 720px;
    margin-bottom: var(--sp-lg);
}
.hero-band p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    max-width: 560px;
    margin-bottom: var(--sp-xl);
}
.hero-actions { display: flex; gap: var(--sp-md); flex-wrap: wrap; }

/* SECTION BANDS */
.section-band {
    padding: var(--sp-section) 0;
}
.section-band--soft { background: var(--surface-soft); }
.section-band--cream { background: var(--cream); }
.section-band--dark { background: var(--surface-dark); color: var(--on-dark); }
.section-band--dark h2 { color: var(--on-dark); }
.section-band--dark p { color: rgba(255,255,255,.8); }

.section-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-sm);
}
.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}
.section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 680px;
    margin-bottom: var(--sp-xl);
}

/* SIGNATURE CARDS */
.sig-coral {
    background: var(--coral);
    color: var(--on-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    margin: var(--sp-section) 0;
}
.sig-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-lg); color: var(--on-dark); }
.sig-coral p { color: rgba(255,255,255,.85); margin-bottom: var(--sp-xl); }

.sig-forest {
    background: var(--forest);
    color: var(--on-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    margin: var(--sp-section) 0;
}
.sig-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-lg); color: var(--on-dark); }
.sig-forest p { color: rgba(255,255,255,.85); margin-bottom: var(--sp-xl); }

/* ARTICLE CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .cards-grid { grid-template-columns: 1fr; } }

.article-card {
    background: var(--canvas);
    border-radius: var(--r-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(--sp-md); }
.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    color: var(--muted);
    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-meta {
    font-size: 13px;
    color: var(--muted);
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}
@media (max-width: 1024px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .demo-grid { grid-template-columns: 1fr; } }

.demo-card {
    border-radius: var(--r-md);
    padding: var(--sp-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}
.demo-card--peach  { background: var(--peach); }
.demo-card--mint   { background: var(--mint); }
.demo-card--yellow { background: var(--yellow); }
.demo-card p { font-weight: 400; margin-top: var(--sp-xs); color: var(--body); font-size: 13px; }

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    text-align: center;
    margin: var(--sp-section) 0 0;
}
.cta-band-light h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-lg); }

/* ARTICLE PAGE */
.article-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
    background: var(--canvas);
}
.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 840px;
    margin-bottom: var(--sp-md);
}
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }
.article-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--r-md);
    margin-bottom: var(--sp-xl);
}
.article-body { max-width: 760px; }
.article-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-md); }
.article-body h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-sm); }
.article-body p  { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: var(--sp-md); }
.article-body li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-xs); }
.article-body a  { color: var(--link); }
.article-body blockquote {
    border-left: 3px solid var(--hairline);
    padding-left: var(--sp-lg);
    margin: var(--sp-xl) 0;
    color: var(--muted);
    font-style: italic;
}
.article-img-block {
    margin: var(--sp-xl) 0;
}
.article-img-block img {
    width: 100%;
    border-radius: var(--r-md);
}
.article-img-caption {
    font-size: 12px;
    color: var(--muted);
    margin-top: var(--sp-xs);
}
.article-related {
    padding: var(--sp-section) 0;
    border-top: 1px solid var(--hairline);
    margin-top: var(--sp-section);
}
.article-related h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-lg); }

/* CONTACT FORM */
.contact-form {
    max-width: 540px;
}
.form-group {
    margin-bottom: var(--sp-md);
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}
.form-group input, .form-group textarea {
    width: 100%;
    height: 44px;
    padding: 12px var(--sp-md);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    outline: none;
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #458fff;
}

/* PAGE CONTENT */
.page-content {
    padding: var(--sp-section) 0;
    max-width: 760px;
}
.page-content h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-xl); }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-md); }
.page-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-sm); }
.page-content p  { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.page-content ul { padding-left: 20px; margin-bottom: var(--sp-md); }
.page-content li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-xs); }
.page-updated { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-lg); }

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding-top: var(--sp-section);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl) var(--sp-xxl);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xxl);
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; padding: 0 var(--sp-md) var(--sp-xxl); }
}
.footer-brand { font-size: 18px; font-weight: 500; color: var(--ink); display: block; margin-bottom: var(--sp-sm); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-xs); font-size: 14px; color: var(--muted); }
.footer-col strong { color: var(--ink); font-weight: 500; margin-bottom: var(--sp-xs); }
.footer-col a { color: var(--muted); }
.footer-col p { font-size: 13px; line-height: 1.6; }
.footer-legal {
    border-top: 1px solid var(--hairline);
    text-align: center;
    padding: var(--sp-lg) var(--sp-xxl);
    font-size: 13px;
    color: var(--muted);
}

/* COOKIE BANNER */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface-dark);
    color: var(--on-dark);
    padding: var(--sp-md) var(--sp-xxl);
    z-index: 999;
    border-top: 1px solid #2d3240;
    align-items: center;
    gap: var(--sp-lg);
    flex-wrap: wrap;
}
#cookie-banner.visible { display: flex; }
#cookie-banner p { font-size: 13px; line-height: 1.6; flex: 1; color: rgba(255,255,255,.85); }
.cookie-actions { display: flex; gap: var(--sp-xs); flex-shrink: 0; }

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--hairline);
    text-align: center;
    padding: var(--sp-xs) var(--sp-xxl);
    font-size: 12px;
    color: var(--muted);
}

/* UTILS */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xxl);
    align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.text-muted { color: var(--muted); }
.mt-section { margin-top: var(--sp-section); }
.mb-lg { margin-bottom: var(--sp-lg); }
