*, *::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;
    --sig-coral: #aa2d00;
    --sig-forest: #0a2e0e;
    --sig-cream: #f5e9d4;
    --sig-peach: #fcab79;
    --sig-mint: #a8d8c4;
    --sig-yellow: #f4d35e;
    --sig-mustard: #d9a441;
    --r-xs: 2px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --r-pill: 9999px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 96px;
    --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
    font-family: '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:active { color: var(--link-active); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-xxl);
}

/* TOP NAV */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-xxl);
    height: 64px;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}
.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}
.nav-links a:active { color: var(--ink); }
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* HERO BAND */
.hero-band {
    padding: var(--space-section) 0;
    background: var(--canvas);
}
.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xxl); align-items: center; }
.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.hero-h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}
.hero-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}
.hero-img {
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 15px 23px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    margin-left: var(--space-sm);
    transition: border-color 0.15s;
}
.btn-secondary:active { border-color: var(--ink); color: var(--ink); }

.btn-legal {
    display: inline-block;
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    border: none;
    cursor: pointer;
}
.btn-legal-reject {
    background: var(--surface-strong);
    color: var(--ink);
}

/* SECTION RHYTHM */
.section { padding: var(--space-section) 0; }
.section-alt { padding: var(--space-section) 0; background: var(--surface-soft); }

.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-sm);
}
.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}
.section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
}

/* ARTICLE CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.article-card {
    background: var(--canvas);
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-xs);
}
.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}
.article-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    flex: 1;
    margin-bottom: var(--space-md);
}
.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.article-card-link {
    display: block;
    margin-top: var(--space-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

/* SIGNATURE CORAL CARD */
.sig-coral-card {
    background: var(--sig-coral);
    border-radius: var(--r-lg);
    padding: var(--space-xxl);
    color: var(--on-primary);
    margin: 0 0 var(--space-lg);
}
.sig-coral-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
.sig-coral-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 560px;
    margin-bottom: var(--space-xl);
}
.btn-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 23px;
    border-radius: var(--r-lg);
    border: none;
}

/* SIGNATURE FOREST CARD */
.sig-forest-card {
    background: var(--sig-forest);
    border-radius: var(--r-lg);
    padding: var(--space-xxl);
    color: var(--on-primary);
}
.sig-forest-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
.sig-forest-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 560px;
}

/* DARK CARD */
.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--r-lg);
    padding: var(--space-xxl);
    color: var(--on-primary);
}
.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--on-primary);
}
.hero-card-dark p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: var(--space-xl);
}

/* CREAM CALLOUT */
.cream-callout {
    background: var(--sig-cream);
    border-radius: var(--r-md);
    padding: var(--space-lg);
}
.cream-callout h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}
.cream-callout p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* DEMO GRID (feature snippets) */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.demo-card {
    border-radius: var(--r-md);
    padding: var(--space-md);
}
.demo-card-peach { background: var(--sig-peach); }
.demo-card-mint  { background: var(--sig-mint); }
.demo-card-yellow { background: var(--sig-yellow); }
.demo-card-mustard { background: var(--sig-mustard); }
.demo-card p.demo-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}
.demo-card p.demo-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--r-lg);
    padding: var(--space-xxl);
    text-align: center;
    margin: var(--space-section) 0 0;
}
.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

/* CONTACT FORM */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 640px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input, .form-group textarea {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    padding: 12px 16px;
    height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--hairline);
    width: 100%;
    font-family: inherit;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #458fff;
}

/* ARTICLE PAGE */
.article-hero {
    padding: var(--space-section) 0 var(--space-xxl);
    background: var(--canvas);
}
.article-hero .container { max-width: 800px; }
.article-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:active { color: var(--ink); }
.article-h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}
.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--space-xl);
}
.article-feature-img {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: var(--space-xl);
}
.article-feature-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 800px; margin: 0 auto; padding-bottom: var(--space-section); }
.article-body h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--space-xl) 0 var(--space-md);
}
.article-body h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin: var(--space-lg) 0 var(--space-sm);
}
.article-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--space-md);
}
.article-body ul {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}
.article-body ul li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 4px;
}
.article-body a { color: var(--link); }
.article-body .article-img {
    border-radius: var(--r-md);
    overflow: hidden;
    margin: var(--space-xl) 0;
}
.article-body .article-img img { width: 100%; height: auto; }
.article-body .article-img figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: var(--space-xs) 0 0;
}
.article-updated {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--hairline);
}

/* RELATED */
.related-section { padding: var(--space-section) 0; background: var(--surface-soft); }

/* PAGE (about, privacy, terms) */
.page-hero { padding: var(--space-section) 0 var(--space-xxl); background: var(--canvas); }
.page-hero .container { max-width: 800px; }
.page-h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-md);
}
.page-body { max-width: 800px; margin: 0 auto; padding-bottom: var(--space-section); }
.page-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--space-xl) 0 var(--space-md);
}
.page-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--space-lg) 0 var(--space-sm);
}
.page-body p, .page-body li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--space-md);
}
.page-body ul { list-style: disc; padding-left: var(--space-xl); }
.page-body a { color: var(--link); }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--space-section) 0 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-xxl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xxl);
    padding-bottom: var(--space-xl);
}
.footer-brand {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--space-md);
}
.footer-contact {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}
.footer-contact a { color: var(--muted); }
.footer-col-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--muted); line-height: 1.25; }
.footer-legal {
    border-top: 1px solid var(--hairline);
    padding: var(--space-md) 0;
    font-size: 13px;
    color: var(--muted);
}

/* COOKIE BANNER */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--space-md) var(--space-xxl);
}
.cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--sig-mint); }
.cookie-btns { display: flex; gap: var(--space-sm); flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container { padding: 0 var(--space-lg); }
    .nav-inner { padding: 0 var(--space-lg); }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .demo-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-band .container { grid-template-columns: 1fr; }
    .hero-img { display: none; }
}

@media (max-width: 767px) {
    .container { padding: 0 var(--space-md); }
    .nav-inner { padding: 0 var(--space-md); }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--canvas);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-xl) var(--space-xl);
        gap: var(--space-xl);
        z-index: 99;
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 20px; font-weight: 400; }
    .nav-hamburger { display: flex; }
    .hero-band { padding: var(--space-xxl) 0; }
    .hero-h1 { font-size: 28px; }
    .section { padding: var(--space-xxl) 0; }
    .section-alt { padding: var(--space-xxl) 0; }
    .section-title { font-size: 24px; }
    .cards-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .contact-form { grid-template-columns: 1fr; }
    .cookie-banner { padding: var(--space-md); }
    .sig-coral-card h2, .sig-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
    .article-h1 { font-size: 28px; }
    .page-h1 { font-size: 28px; }
    .cta-band-light h2 { font-size: 24px; }
}
