@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;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, 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: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* 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;
    height: 100%;
    gap: 32px;
}

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex: 1;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }

.btn-secondary {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover { text-decoration: none; color: var(--ink); border-color: #bbb; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO */
.hero-band {
    padding: 96px 0;
    background: var(--canvas);
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 680px;
    margin-bottom: 20px;
}

.hero-band p {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* SECTIONS */
.section {
    padding: 96px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
}

/* ARTICLE CARD GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-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: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 10px;
}

.article-card-title a { color: var(--ink); text-decoration: none; }
.article-card-title a:hover { text-decoration: underline; }

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    flex: 1;
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* SIGNATURE CARDS */
.signature-coral {
    background: var(--signature-coral);
    color: var(--on-primary);
    padding: 96px 0;
}

.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    max-width: 560px;
    margin-bottom: 16px;
}

.signature-coral p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin-bottom: 32px;
}

.btn-secondary-on-dark {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary-on-dark:hover { text-decoration: none; color: var(--ink); }

.signature-forest {
    background: var(--signature-forest);
    color: var(--on-primary);
    padding: 96px 0;
}

.signature-forest h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    max-width: 560px;
    margin-bottom: 16px;
}

.signature-forest p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    max-width: 480px;
    margin-bottom: 32px;
}

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: 24px;
}

.cream-callout h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}

.cream-callout p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.demo-card {
    border-radius: var(--rounded-md);
    padding: 24px;
    overflow: hidden;
}

.demo-card.peach { background: var(--signature-peach); }
.demo-card.mint { background: var(--signature-mint); }
.demo-card.cream { background: var(--signature-cream); }

.demo-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.demo-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* CTA BAND */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: 48px;
    text-align: center;
    margin: 0 48px;
}

.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
}

.cta-band p {
    font-size: 14px;
    color: var(--body);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}

.form-field textarea { height: auto; min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: #458fff; }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 96px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 999;
}

#cookie-banner p { font-size: 13px; line-height: 1.5; max-width: 700px; }
#cookie-banner a { color: #7eb8f7; }

.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

.btn-legal {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}

.btn-legal-reject {
    background: transparent;
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

/* ARTICLE PAGE */
.article-hero {
    padding: 72px 0 48px;
    background: var(--canvas);
}

.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 16px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.article-content {
    max-width: 760px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 40px 0 12px;
    line-height: 1.35;
    letter-spacing: 0.12px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin: 28px 0 10px;
    line-height: 1.5;
}

.article-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 0 0 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
}

.article-content li { margin-bottom: 6px; }

.article-content a { color: var(--link); }

.article-content img {
    border-radius: var(--rounded-md);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: 24px 0;
}

.article-content blockquote {
    border-left: 3px solid var(--hairline);
    padding: 8px 16px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ABOUT / PAGES */
.page-hero {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
}

.page-content {
    padding: 64px 0;
    max-width: 760px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 36px 0 12px;
    line-height: 1.35;
    letter-spacing: 0.12px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 24px 0 8px;
}

.page-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 14px;
}

.page-content ul {
    margin: 0 0 14px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
}

/* DISCLAIMER */
.disclaimer-box {
    background: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 24px 0;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* RELATED ARTICLES */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* SCHEMA / HIDDEN */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-band { margin: 0 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero-band { padding: 64px 0; }
    .hero-band h1 { font-size: 28px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 24px; }
    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { margin: 0; border-radius: 0; padding: 48px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .signature-coral, .signature-forest { padding: 64px 0; }
    .signature-coral h2, .signature-forest h2 { font-size: 24px; }
    .nav-links, .nav-right { display: none; }
    .nav-right.open, .nav-links.open { display: flex; }
    .hamburger { display: flex; margin-left: auto; }
    .top-nav .container { flex-wrap: wrap; height: auto; padding: 12px 16px; }
    .nav-links.open {
        flex-direction: column;
        width: 100%;
        padding: 12px 0;
        gap: 16px;
    }
    .nav-right.open {
        flex-direction: column;
        width: 100%;
        padding-bottom: 12px;
        gap: 8px;
    }
    .article-hero h1 { font-size: 26px; }
    .page-hero h1 { font-size: 26px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
