@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;500&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;
    --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; }
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-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo span { color: var(--signature-coral); }
.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; }

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    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;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover { border-color: #aaa; text-decoration: none; color: var(--ink); }

.btn-secondary-on-dark {
    display: inline-flex;
    align-items: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary-on-dark:hover { background: #f0f0f0; text-decoration: none; color: var(--ink); }

/* HERO BAND */
.hero-band {
    padding: var(--section) 0;
    background: var(--canvas);
}
.hero-band h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 680px;
    margin-bottom: 20px;
}
.hero-band p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTION LABEL */
.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* SECTION BANDS */
.section-white { padding: var(--section) 0; background: var(--canvas); }
.section-soft { padding: var(--section) 0; background: var(--surface-soft); }
.section-strong { padding: var(--section) 0; background: var(--surface-strong); }
.section-dark { padding: var(--section) 0; background: var(--surface-dark); color: var(--on-primary); }
.section-coral { padding: var(--section) 0; background: var(--signature-coral); color: var(--on-primary); }
.section-cream { padding: var(--section) 0; background: var(--signature-cream); }

/* SECTION TITLES */
.section-title {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-title-lg {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 20px;
}
.section-title-on-dark, .section-title-lg-on-dark {
    color: var(--on-primary);
}
.section-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 48px;
}
.section-subtitle-on-dark { color: rgba(255,255,255,0.8); }

/* ARTICLE CARD GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
}
.article-card-body { padding: 16px; }
.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    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: 8px;
}
.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 12px;
}
.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}
.article-card a.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.article-card a.article-card-link:hover { text-decoration: none; }

/* SIGNATURE CARDS */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: 48px;
    color: var(--on-primary);
}
.signature-coral-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}
.signature-coral-card p { font-size: 14px; line-height: 1.5; margin-bottom: 32px; opacity: 0.9; }

.signature-forest-card {
    background: var(--signature-forest);
    border-radius: var(--rounded-lg);
    padding: 48px;
    color: var(--on-primary);
}
.signature-forest-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}
.signature-forest-card p { font-size: 14px; line-height: 1.5; margin-bottom: 32px; opacity: 0.9; }

.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--rounded-lg);
    padding: 48px;
    color: var(--on-primary);
}
.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--on-primary);
}
.hero-card-dark p { font-size: 14px; line-height: 1.5; margin-bottom: 32px; opacity: 0.85; }

/* COMPARISON TABLE */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.comparison-table th {
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--hairline);
    color: var(--ink);
}
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
    color: var(--body);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .col-feature { font-weight: 500; color: var(--ink); width: 28%; }

/* INFO CARDS 3-up */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    padding: 24px;
    border: 1px solid var(--hairline);
}
.info-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 12px;
}
.info-card p { font-size: 14px; line-height: 1.6; color: var(--body); }

/* DEMO GRID CARDS */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo-card {
    border-radius: var(--rounded-md);
    padding: 16px;
    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 img { border-radius: var(--rounded-sm); width: 100%; object-fit: cover; margin-bottom: 12px; }
.demo-card h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.demo-card p { font-size: 13px; color: var(--body); line-height: 1.5; }

/* CONTACT FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.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-family: inherit;
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    outline: none;
    width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }

/* CTA BAND */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 480px;
}

/* FOOTER */
.footer {
    padding: var(--section) 0 48px;
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 280px; margin-top: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.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); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); }

/* ARTICLE PAGE */
.article-hero {
    padding: var(--section) 0 48px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}
.article-hero .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}
.article-hero .breadcrumb a { color: var(--muted); }
.article-hero h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}
.article-hero .meta { font-size: 13px; color: var(--muted); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    padding: 64px 0;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: 40px 0 16px;
    letter-spacing: 0.12px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin: 28px 0 12px;
}
.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 20px;
}
.article-content ul, .article-content ol {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-content li { margin-bottom: 8px; }
.article-content img {
    border-radius: var(--rounded-md);
    margin: 32px 0;
    width: 100%;
    object-fit: cover;
}
.article-content a { color: var(--link); }
.article-content strong { font-weight: 500; color: var(--ink); }

.article-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-box {
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--hairline);
}
.sidebar-box h4 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.sidebar-box ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-box ul li a { font-size: 14px; color: var(--link); }
.sidebar-box p { font-size: 14px; line-height: 1.6; color: var(--body); }

/* INTERNAL LINKS */
.related-articles { padding: var(--section) 0; background: var(--surface-soft); }
.related-articles h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 32px; }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: 20px 48px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
#cookie-banner p { font-size: 14px; line-height: 1.5; max-width: 760px; }
#cookie-banner a { color: #a8d8c4; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--link);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}
.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

/* STATIC PAGES */
.static-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}
.static-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    font-family: 'Inter Display', 'Inter', sans-serif;
    margin-bottom: 12px;
}
.static-hero p { font-size: 16px; color: var(--muted); }
.static-content { padding: 64px 0; max-width: 760px; }
.static-content h2 { font-size: 22px; font-weight: 500; color: var(--ink); margin: 36px 0 12px; }
.static-content p { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 16px; }
.static-content ul { font-size: 16px; line-height: 1.7; color: var(--body); padding-left: 24px; margin-bottom: 16px; }
.static-content li { margin-bottom: 6px; }

/* HAMBURGER */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-soft);
    border-top: 1px solid var(--hairline);
    padding: 12px 0;
    text-align: center;
}
.disclaimer-bar p { font-size: 12px; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .demo-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-sidebar { position: static; }
    .comparison-table { overflow-x: auto; display: block; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    :root { --section: 64px; }
    .nav-links { display: none; }
    .nav-right .btn-primary, .nav-right .btn-secondary { display: none; }
    .hamburger { display: block; margin-left: auto; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--canvas);
        padding: 32px 20px;
        z-index: 99;
        gap: 20px;
    }
    .nav-links.open a { font-size: 18px; }
    .hero-band h1 { font-size: 28px; }
    .section-title { font-size: 24px; }
    .section-title-lg { font-size: 32px; }
    .article-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .cta-band h2 { font-size: 24px; }
    .signature-coral-card, .signature-forest-card, .hero-card-dark { padding: 32px 24px; }
    .signature-coral-card h2, .signature-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 28px; }
    #cookie-banner { padding: 20px; flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
