*, *::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;
    --sig-coral: #aa2d00;
    --sig-forest: #0a2e0e;
    --sig-cream: #f5e9d4;
    --sig-peach: #fcab79;
    --sig-mint: #a8d8c4;
    --sig-yellow: #f4d35e;
    --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', -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 { max-width: 100%; height: auto; display: block; }

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

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

/* ── TOP NAV ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    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);
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo span { color: var(--sig-coral); }
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--sp-lg);
    margin-left: auto;
    align-items: center;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    text-decoration: none;
    transition: color .15s;
}
.nav-menu a[aria-current="page"],
.nav-menu a:hover { color: var(--ink); }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .2s;
}

/* ── HERO BAND ── */
.hero-band {
    padding: var(--sp-section) 0;
    background: var(--canvas);
}
.hero-band .container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
    max-width: 720px;
}
.hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .16px;
    color: var(--muted);
    text-transform: uppercase;
}
.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}
.hero-band p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 580px;
}
.btn-pair { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center; }
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: background .15s;
    min-height: 48px;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }
.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    text-decoration: none;
    transition: border-color .15s;
    min-height: 48px;
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

/* ── SIGNATURE CARDS ── */
.sig-coral {
    background: var(--sig-coral);
    color: var(--on-primary);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    margin: 0 0 var(--sp-section);
}
.sig-coral h2, .sig-coral h3 { color: var(--on-primary); }
.sig-coral p { color: rgba(255,255,255,.85); }
.sig-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
}
.sig-dark h2, .sig-dark h3 { color: var(--on-primary); }
.sig-dark p { color: rgba(255,255,255,.8); }
.sig-cream {
    background: var(--sig-cream);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
}
.btn-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 24px;
    border-radius: var(--r-lg);
    text-decoration: none;
    margin-top: var(--sp-md);
    min-height: 48px;
}
.btn-on-dark:hover { opacity: .9; text-decoration: none; color: var(--ink); }

/* ── SECTIONS ── */
.section { padding: var(--sp-section) 0; }
.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-sm);
}
.section h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}
.section h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: .12px;
    margin-bottom: var(--sp-sm);
}
.section p { line-height: 1.6; margin-bottom: var(--sp-md); }

/* ── ARTICLE CARDS GRID ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}
.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 {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-card-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; gap: var(--sp-xs); }
.card-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16px;
    text-transform: uppercase;
    color: var(--muted);
}
.article-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
}
.article-card p { font-size: 14px; color: var(--body); flex: 1; margin: 0; }
.card-meta { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .16px; margin-top: auto; padding-top: var(--sp-sm); }
.article-card a { text-decoration: none; }
.article-card a:hover h3 { color: var(--link); }

/* ── DEMO GRID ── */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
    align-items: start;
}
.demo-card {
    border-radius: var(--r-md);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}
.demo-card-peach { background: var(--sig-peach); }
.demo-card-mint { background: var(--sig-mint); }
.demo-card-yellow { background: var(--sig-yellow); }
.demo-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); }
.demo-card p { font-size: 13px; color: var(--body); line-height: 1.5; }
.demo-card-num { font-size: 32px; font-weight: 500; color: var(--ink); }

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

/* ── CONTACT FORM ── */
.contact-section { padding: var(--sp-section) 0; background: var(--surface-soft); }
.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}
.contact-form label { font-size: 14px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    outline: none;
    font-family: inherit;
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #458fff; }
.contact-form button {
    align-self: flex-start;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border: none;
    border-radius: var(--r-lg);
    cursor: pointer;
    min-height: 48px;
    font-family: inherit;
    transition: background .15s;
}
.contact-form button:hover { background: var(--primary-active); }

/* ── 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: 800px;
}
.article-meta { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .16px; margin-top: var(--sp-md); }
.article-img-full {
    width: 100%;
    max-height: 460px;
    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; line-height: 1.35; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); }
.article-body h3 { font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); }
.article-body p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.article-body ul, .article-body ol { padding-left: var(--sp-xl); margin-bottom: var(--sp-md); }
.article-body li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: 4px; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body a { color: var(--link); }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: var(--sp-md);
}
.article-body th {
    background: var(--surface-soft);
    padding: var(--sp-sm) var(--sp-md);
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}
.article-body td {
    padding: var(--sp-sm) var(--sp-md);
    border-bottom: 1px solid var(--hairline);
    color: var(--body);
}
.article-updated { font-size: 13px; color: var(--muted); margin-top: var(--sp-xxl); padding-top: var(--sp-md); border-top: 1px solid var(--hairline); }
.related-articles { padding: var(--sp-section) 0; }
.related-articles h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-xl); }

/* ── PAGE CONTENT (about/privacy/terms) ── */
.page-hero { padding: var(--sp-section) 0 var(--sp-xl); background: var(--canvas); }
.page-hero h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); }
.page-content { padding: 0 0 var(--sp-section); max-width: 800px; }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); }
.page-content h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); }
.page-content p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.page-content ul, .page-content ol { padding-left: var(--sp-xl); margin-bottom: var(--sp-md); }
.page-content li { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: 4px; }
.page-content a { color: var(--link); }
.page-updated { font-size: 13px; color: var(--muted); margin-top: var(--sp-xl); padding-top: var(--sp-md); border-top: 1px solid var(--hairline); }

/* ── ARTICLES INDEX ── */
.articles-hero {
    background: var(--surface-dark);
    padding: var(--sp-section) 0;
}
.articles-hero h1 { font-size: 48px; font-weight: 500; line-height: 1.1; color: var(--on-primary); }
.articles-hero p { font-size: 16px; color: rgba(255,255,255,.8); margin-top: var(--sp-md); max-width: 560px; }

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--sp-md) var(--sp-xxl);
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    flex-wrap: wrap;
    z-index: 999;
    font-size: 13px;
    line-height: 1.5;
}
#cookie-banner p { flex: 1; min-width: 260px; }
#cookie-banner a { color: #9e9eff; }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }
.btn-cookie-accept, .btn-cookie-reject {
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-cookie-accept { background: var(--link); color: var(--on-primary); }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); }

/* ── FOOTER ── */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-section) 0 0;
}
.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);
    padding-bottom: var(--sp-xl);
}
.footer-brand { font-size: 18px; font-weight: 500; color: var(--ink); display: block; margin-bottom: var(--sp-sm); }
.footer-brand span { color: var(--sig-coral); }
.footer-col p, .footer-col address { font-size: 14px; color: var(--muted); line-height: 1.6; font-style: normal; margin-top: var(--sp-sm); }
.footer-col address a { color: var(--muted); }
.footer-col strong { font-size: 14px; font-weight: 500; color: var(--ink); display: block; margin-bottom: var(--sp-sm); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--ink); }
.footer-legal {
    border-top: 1px solid var(--hairline);
    padding: var(--sp-xl) 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-legal a { color: var(--muted); }

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

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
    .nav-inner { padding: 0 var(--sp-md); }
    .footer-inner { padding: 0 var(--sp-md); }
    .hero-band h1 { font-size: 28px; }
    .section h2 { font-size: 24px; }
    .nav-hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        gap: 0;
        padding: var(--sp-md) var(--sp-lg);
        margin: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: var(--sp-sm) 0; font-size: 16px; }
    .cards-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .articles-hero h1 { font-size: 32px; }
    .article-hero h1 { font-size: 28px; }
    .sig-coral, .sig-dark { padding: var(--sp-xl); }
    .cta-band { padding: var(--sp-xl); }
    #cookie-banner { padding: var(--sp-md); }
}
