@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::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;
    --hairline: #dddddd;
    --ink: #181d26;
    --body: #333840;
    --muted: #41454d;
    --on-primary: #ffffff;
    --link: #1b61c9;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --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, Helvetica, Arial, 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;
}

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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-brand span {
    color: var(--signature-coral);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--body);
    font-size: 14px;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.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;
    display: inline-block;
    text-decoration: none;
}

.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;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:active {
    color: var(--ink);
}

.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 BAND */
.hero-band {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.hero-content {
    max-width: 720px;
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.hero-band p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* SECTION COMMON */
section {
    padding: var(--spacing-section) 0;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    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: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

/* ARTICLE CARDS GRID */
.articles-section {
    background: var(--canvas);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.article-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.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);
    flex: 1;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-sm);
}

/* SIGNATURE CORAL CARD */
.signature-coral {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    margin: 0;
}

.signature-coral-inner {
    max-width: 640px;
}

.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.signature-coral p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
}

.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;
    display: inline-block;
    text-decoration: none;
}

/* SIGNATURE FOREST BAND */
.signature-forest {
    background: var(--signature-forest);
    padding: var(--spacing-section) 0;
}

.signature-forest h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.signature-forest p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    padding: var(--spacing-section) 0;
}

.cream-callout h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.cream-callout p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.demo-card {
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    overflow: hidden;
}

.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(--surface-soft); }

.demo-card img {
    width: 100%;
    border-radius: var(--rounded-sm);
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
}

.demo-card-label {
    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;
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    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);
    max-width: 520px;
    margin-bottom: var(--spacing-xl);
}

/* CONTACT FORM */
.contact-section {
    background: var(--canvas);
    padding: var(--spacing-section) 0;
}

.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.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;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #458fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 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-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.footer-brand span {
    color: var(--signature-coral);
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    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;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-col a {
    font-size: 14px;
    color: var(--muted);
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    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 {
    font-size: 13px;
    color: var(--muted);
}

.footer-legal a {
    color: var(--muted);
}

/* ARTICLE PAGE */
.article-header {
    padding: var(--spacing-section) 0 var(--spacing-xl);
    background: var(--canvas);
}

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.article-header h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
}

.article-meta-bar {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.article-hero-img {
    width: 100%;
    border-radius: var(--rounded-md);
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: var(--spacing-xl) 0;
}

.article-body {
    max-width: 800px;
}

.article-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: var(--spacing-lg);
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.article-body ul, .article-body ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.article-body li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-body a {
    color: var(--link);
}

.article-img-inline {
    width: 100%;
    border-radius: var(--rounded-md);
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
}

/* PAGE HERO (about, privacy, terms) */
.page-hero {
    padding: var(--spacing-section) 0 var(--spacing-xl);
    background: var(--canvas);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.page-hero p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
}

.page-content {
    padding: 0 0 var(--spacing-section);
    max-width: 800px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
}

.page-content h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.page-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: var(--spacing-md);
}

.page-content ul, .page-content ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-lg) var(--spacing-xxl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 9999;
    flex-wrap: wrap;
}

#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    flex: 1;
    min-width: 280px;
}

#cookie-banner a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-reject {
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}

.btn-cookie-accept {
    background: var(--link);
    color: var(--on-primary);
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
}

/* SCHEMA / HIDDEN */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* MOBILE NAV OVERLAY */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    z-index: 200;
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-xxl);
    gap: var(--spacing-lg);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
}

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-soft);
    border-top: 1px solid var(--hairline);
    padding: var(--spacing-md) 0;
}

.disclaimer-bar p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid, .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 64px;
        --spacing-xxl: 24px;
    }
    .nav-links, .nav-right {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-band h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }
    .signature-coral h2, .signature-forest h2, .cream-callout h2 {
        font-size: 24px;
    }
    .articles-grid, .demo-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-header h1 {
        font-size: 28px;
    }
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .signature-coral, .signature-forest .container {
        padding: var(--spacing-xl);
    }
}
