@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;
}

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: 1280px; margin: 0 auto; padding: 0 48px; }

/* TOP NAV */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--body); font-weight: 400; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; color: var(--on-primary); }
.btn-secondary {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* HERO */
.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: 640px;
    margin-bottom: 20px;
}
.hero-band .hero-sub {
    font-size: 18px;
    font-weight: 400;
    color: var(--body);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: var(--section) 0; }
.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 580px;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* SIGNATURE CARDS */
.sig-coral {
    background: var(--sig-coral);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
    margin: 0 0 24px;
}
.sig-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; color: var(--on-primary); }
.sig-coral p { font-size: 14px; margin-bottom: 28px; opacity: 0.85; max-width: 560px; }
.sig-coral .btn-secondary { border-color: rgba(255,255,255,0.4); color: var(--on-primary); }
.sig-coral .btn-secondary:hover { border-color: #fff; color: var(--on-primary); }

.sig-forest {
    background: var(--sig-forest);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
}
.sig-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; color: var(--on-primary); }
.sig-forest p { font-size: 14px; margin-bottom: 28px; opacity: 0.85; max-width: 560px; }
.sig-forest .btn-secondary { border-color: rgba(255,255,255,0.4); color: var(--on-primary); }
.sig-forest .btn-secondary:hover { border-color: #fff; color: var(--on-primary); }

.sig-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.hero-card-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: 48px;
}
.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; margin-bottom: 28px; opacity: 0.8; max-width: 600px; }

.cream-band { background: var(--sig-cream); padding: var(--section) 0; }
.cream-band .section-title { color: var(--ink); }
.cream-band .section-sub { color: var(--body); }

/* 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 { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-soft); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 20px; }
.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 8px;
}
.article-card-title { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 10px; }
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); text-decoration: none; }
.article-card-excerpt { font-size: 13px; color: var(--body); line-height: 1.5; margin-bottom: 14px; }
.article-card-meta { font-size: 12px; color: var(--muted); }

/* DEMO GRID CARDS */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-card {
    border-radius: var(--rounded-md);
    padding: 24px;
    min-height: 180px;
}
.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; line-height: 1.35; }
.demo-card p { font-size: 13px; color: var(--body); line-height: 1.5; }

/* CTA BAND */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: 48px;
    text-align: center;
}
.cta-band h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 20px; line-height: 1.2; }
.cta-band p { font-size: 15px; 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: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row textarea {
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 10px 14px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}
.form-row input:focus, .form-row textarea:focus { border-color: #458fff; }
.form-row textarea { height: 100px; resize: vertical; }

/* ARTICLE PAGE */
.article-header { padding: var(--section) 0 48px; }
.article-header h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); max-width: 720px; margin-bottom: 20px; }
.article-header .article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-header .article-lead { font-size: 18px; color: var(--body); line-height: 1.6; max-width: 680px; }
.article-featured-img { margin-bottom: var(--section); }
.article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--rounded-md); }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 28px; font-weight: 400; color: var(--ink); margin: 40px 0 16px; line-height: 1.3; }
.article-body h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin: 30px 0 12px; line-height: 1.35; }
.article-body p { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { font-size: 15px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body a { color: var(--link); }
.article-body img { border-radius: var(--rounded-md); margin: 24px 0; }
.article-updated { font-size: 12px; color: var(--muted); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); }

/* TWO COL LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-img img { width: 100%; border-radius: var(--rounded-md); }

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: var(--section) 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 14px; font-size: 17px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 260px; margin-bottom: 16px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--muted); }
.footer-bottom-links a:hover { color: var(--ink); text-decoration: none; }

/* PAGE HEADER */
.page-header { padding: var(--section) 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-header h1 { font-size: 40px; font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.5; }
.page-content { max-width: 760px; margin-bottom: var(--section); }
.page-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 36px 0 14px; }
.page-content h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; }
.page-content li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-content a { color: var(--link); }
.page-updated { font-size: 12px; color: var(--muted); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb span { color: var(--hairline); }

/* 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: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
}
#cookie-banner p { font-size: 13px; line-height: 1.5; opacity: 0.85; max-width: 680px; }
#cookie-banner p a { color: #7ab4ff; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--link);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    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: 10px 18px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
}

/* DISCLAIMER */
.disclaimer {
    background: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* MOBILE NAV SHEET */
.mobile-nav-sheet {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--canvas);
    z-index: 200;
    padding: 24px 24px 40px;
    flex-direction: column;
}
.mobile-nav-sheet.open { display: flex; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); margin-bottom: 24px; }
.mobile-nav-sheet nav ul { list-style: none; }
.mobile-nav-sheet nav ul li { border-bottom: 1px solid var(--hairline); }
.mobile-nav-sheet nav ul li a { display: block; padding: 14px 0; font-size: 16px; color: var(--ink); }
.mobile-nav-sheet .mobile-nav-cta { margin-top: 28px; }

/* ABOUT TEAM */
.contact-info-block { background: var(--surface-soft); border-radius: var(--rounded-md); padding: 32px; border: 1px solid var(--hairline); margin-bottom: 32px; }
.contact-info-block h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.contact-info-block p, .contact-info-block address { font-size: 14px; color: var(--body); line-height: 1.7; font-style: normal; }
.contact-info-block a { color: var(--link); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .sig-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    :root { --section: 64px; }
    .nav-links, .nav-right { display: none; }
    .nav-hamburger { display: block; }
    .hero-band h1 { font-size: 28px; }
    .hero-band .hero-sub { font-size: 15px; }
    .section-title { font-size: 24px; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .sig-coral, .sig-forest, .hero-card-dark { padding: 32px 24px; }
    .sig-coral h2, .sig-forest h2, .hero-card-dark h2 { font-size: 24px; }
    .cta-band { padding: 32px 24px; }
    .cta-band h2 { font-size: 24px; }
    .article-header h1 { font-size: 28px; }
    .page-header h1 { font-size: 28px; }
    #cookie-banner { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
