@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;
    --sig-coral: #aa2d00;
    --sig-forest: #0a2e0e;
    --sig-cream: #f5e9d4;
    --sig-peach: #fcab79;
    --sig-mint: #a8d8c4;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --section: 96px;
    --max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    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-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* 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;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

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

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--canvas);
    z-index: 200;
    padding: 80px 48px 48px;
    flex-direction: column;
    gap: 24px;
}

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

.nav-mobile a {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 16px;
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--ink);
}

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

.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: 14px 28px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

.btn-secondary-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.btn-secondary-on-dark:hover { text-decoration: none; color: var(--ink); opacity: 0.9; }

/* HERO BAND */
.hero-band {
    padding: var(--section) 0;
    background: var(--canvas);
}

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

.hero-band p {
    font-size: 18px;
    font-weight: 400;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* SECTION BANDS */
.section-band {
    padding: var(--section) 0;
}

.section-band.bg-soft { background: var(--surface-soft); }
.section-band.bg-strong { background: var(--surface-strong); }
.section-band.bg-cream { background: var(--sig-cream); }

.section-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.12px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* SIGNATURE CARDS */
.sig-coral-card {
    background: var(--sig-coral);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
}

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

.sig-coral-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 520px;
}

.sig-forest-card {
    background: var(--sig-forest);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
}

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

.sig-forest-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 520px;
}

.sig-dark-card {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
}

.sig-dark-card h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-primary);
    margin-bottom: 16px;
}

.sig-dark-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-bottom: 32px;
}

/* ARTICLE CARDS GRID */
.articles-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.2s;
}

.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

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

.article-card-body {
    padding: 20px;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--sig-coral);
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-card-title a { color: var(--ink); text-decoration: none; }
.article-card-title a:hover { color: var(--sig-coral); text-decoration: none; }

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.demo-card.peach { background: var(--sig-peach); }
.demo-card.mint { background: var(--sig-mint); }
.demo-card.cream { background: var(--sig-cream); }

.demo-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
}

.demo-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.demo-card img {
    width: 100%;
    border-radius: var(--rounded-md);
    margin-top: 16px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: 48px;
    text-align: center;
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
}

.cta-band-light p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* CONTACT FORM */
.contact-form {
    max-width: 560px;
}

.form-row { margin-bottom: 16px; }

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-row input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    outline: none;
    font-family: inherit;
}

.form-row input:focus {
    border-color: #458fff;
    box-shadow: 0 0 0 2px rgba(69,143,255,0.15);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 500;
}

.cookie-banner p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
}

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

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.btn-cookie {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 13.12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-family: inherit;
}

/* ARTICLE PAGE */
.article-hero {
    padding: var(--section) 0 48px;
}

.article-hero .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

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

.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 20px;
}

.article-hero .article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: 48px;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: var(--section);
}

.article-body h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-body p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li {
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 8px;
}

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

.article-body img {
    width: 100%;
    border-radius: var(--rounded-md);
    margin: 24px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--sig-coral);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--surface-soft);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
    font-style: normal;
    color: var(--body);
}

/* FOOTER */
.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--section) 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

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

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}
.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

/* PAGE CONTENT */
.page-hero {
    padding: var(--section) 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 0;
}

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

.page-hero p {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
}

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

.page-body h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    margin: 36px 0 12px;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-body p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-body ul {
    margin: 0 0 16px 24px;
}

.page-body ul li {
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 8px;
}

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

.disclaimer-banner p {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* RELATED ARTICLES */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .hero-band { padding: 64px 0; }
    .hero-band h1 { font-size: 28px; }
    .hero-band p { font-size: 16px; }

    .section-band { padding: 64px 0; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }

    .sig-coral-card, .sig-forest-card, .sig-dark-card { padding: 32px 24px; }
    .sig-coral-card h2, .sig-forest-card h2, .sig-dark-card h2 { font-size: 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding: 64px 0 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .cookie-banner { flex-direction: column; padding: 20px; }
    .cookie-actions { width: 100%; justify-content: flex-start; }

    .article-hero h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
    .article-body h2 { font-size: 22px; }

    .cta-band-light { padding: 40px 24px; }
    .cta-band-light h2 { font-size: 24px; }
}
