*,*::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;
    --radius-xs: 2px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-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 { 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);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
}

/* ---- NAV ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--sp-lg);
    margin-left: auto;
}

.nav-links a {
    font-size: 14px;
    color: var(--body);
    font-weight: 400;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--sp-xs);
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 var(--sp-md); }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--canvas);
        padding: var(--sp-xl) var(--sp-md);
        gap: var(--sp-lg);
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 18px; }
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    min-height: 48px;
}

.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
    min-height: 48px;
}

.btn-legal {
    display: inline-flex;
    align-items: center;
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* ---- HERO ---- */
.hero-band {
    padding: var(--sp-section) 0;
    background: var(--canvas);
}

.hero-band .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xxl);
    align-items: center;
}

.hero-content { }

.hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
}

.hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}

.hero-sub {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: var(--sp-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius-md);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-band .container {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 28px; }
    .hero-image { order: -1; }
}

/* ---- SIGNATURE CARD CORAL ---- */
.signature-coral {
    background: var(--signature-coral);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
    color: var(--on-primary);
    margin: 0 0 var(--sp-section);
}

.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: var(--on-primary);
}

.signature-coral p {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: var(--sp-xl);
    opacity: 0.9;
    max-width: 560px;
}

/* ---- SIGNATURE CARD FOREST ---- */
.signature-forest {
    background: var(--signature-forest);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
    color: var(--on-primary);
}

.signature-forest h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: var(--on-primary);
}

.signature-forest p {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: var(--sp-xl);
    opacity: 0.9;
    max-width: 560px;
}

/* ---- SECTION GENERIC ---- */
.section-band {
    padding: var(--sp-section) 0;
}

.section-band-soft {
    padding: var(--sp-section) 0;
    background: var(--surface-soft);
}

.section-band-cream {
    padding: var(--sp-section) 0;
    background: var(--signature-cream);
}

.section-band-dark {
    padding: var(--sp-section) 0;
    background: var(--surface-dark);
    color: var(--on-primary);
}

.section-band-dark h2,
.section-band-dark p {
    color: var(--on-primary);
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.section-sub {
    font-size: 14px;
    color: var(--body);
    max-width: 600px;
    margin-bottom: var(--sp-xl);
}

.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-sm);
}

/* ---- ARTICLE CARDS GRID ---- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: var(--canvas);
    border-radius: var(--radius-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;
    color: var(--muted);
    text-transform: uppercase;
    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-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); }

.article-card-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--sp-md);
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.16px;
}

/* ---- DEMO GRID CARDS ---- */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.demo-card {
    border-radius: var(--radius-md);
    padding: var(--sp-md);
}

.demo-card:nth-child(1) { background: var(--signature-peach); }
.demo-card:nth-child(2) { background: var(--signature-mint); }
.demo-card:nth-child(3) { background: var(--signature-cream); }

.demo-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.demo-card-text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .demo-grid { grid-template-columns: 1fr; }
}

/* ---- CREAM CALLOUT ---- */
.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
}

.cream-callout h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.cream-callout p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
}

/* ---- CTA BAND ---- */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
    text-align: center;
}

.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.cta-band p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: var(--sp-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- 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%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    height: 44px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #458fff;
}

/* ---- ARTICLE PAGE ---- */
.article-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
}

.article-hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
}

.article-hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-md);
    max-width: 760px;
}

.article-hero-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 640px;
    margin-bottom: var(--sp-lg);
    line-height: 1.5;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.16px;
}

.article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-section);
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-xxl);
    align-items: start;
    padding-bottom: var(--sp-section);
}

.article-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-md);
    line-height: 1.35;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-sm);
}

.article-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--sp-md);
}

.article-content ul,
.article-content ol {
    margin: 0 0 var(--sp-md) var(--sp-lg);
}

.article-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--sp-xs);
}

.article-content a {
    color: var(--link);
}

.article-sidebar { }

.sidebar-card {
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    margin-bottom: var(--sp-md);
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: var(--sp-xs);
}

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--link);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .article-body {
        grid-template-columns: 1fr;
    }
    .article-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .article-hero-title { font-size: 26px; }
}

/* ---- PAGES (ABOUT / PRIVACY / TERMS) ---- */
.page-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: var(--sp-section);
}

.page-title {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.page-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 600px;
    line-height: 1.5;
}

.page-body {
    max-width: 760px;
    padding-bottom: var(--sp-section);
}

.page-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-md);
}

.page-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-sm);
}

.page-body p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--sp-md);
}

.page-body ul {
    margin: 0 0 var(--sp-md) var(--sp-lg);
}

.page-body li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--sp-xs);
}

.page-updated {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: var(--sp-xl);
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-section) 0 var(--sp-xl);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xl);
}

.footer-brand {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: var(--sp-md);
}

.footer-contact {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--ink); }

.footer-heading {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: var(--sp-xs); }

.footer-col ul li a {
    font-size: 14px;
    color: var(--muted);
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: var(--sp-lg);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--sp-sm);
}

.footer-legal a {
    font-size: 14px;
    color: var(--muted);
    margin-right: var(--sp-sm);
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    max-width: 700px;
    margin-top: var(--sp-md) !important;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-inner { padding: 0 var(--sp-md); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
    position: fixed;
    bottom: var(--sp-md);
    left: var(--sp-md);
    right: var(--sp-md);
    max-width: 640px;
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    z-index: 999;
    display: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

#cookie-banner.visible { display: block; }

#cookie-banner p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: var(--sp-md);
    color: var(--on-primary);
}

#cookie-banner p a { color: #90b8f8; }

.cookie-actions {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--sp-md);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 4px; }

/* ---- SCHEMA IMAGE CAPTION ---- */
.img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--sp-xs);
    font-weight: 500;
    letter-spacing: 0.16px;
}

/* ---- HIGHLIGHT STAT ---- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
    margin: var(--sp-xl) 0;
}

.stat-item { }

.stat-num {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: var(--sp-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .stat-row { grid-template-columns: 1fr; }
}
