*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:       #181d26;
    --body-txt:  #333840;
    --muted:     #41454d;
    --canvas:    #ffffff;
    --soft:      #f8fafc;
    --strong:    #e0e2e6;
    --dark:      #181d26;
    --hairline:  #dddddd;
    --link:      #1b61c9;
    --coral:     #aa2d00;
    --forest:    #0a2e0e;
    --cream:     #f5e9d4;
    --peach:     #fcab79;
    --mint:      #a8d8c4;
    --on-dark:   #ffffff;
    --r-sm:      6px;
    --r-md:      10px;
    --r-lg:      12px;
    --section:   96px;
    --max-w:     1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--body-txt);
    background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo span { color: var(--coral); }
.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body-txt);
    text-decoration: none;
    transition: color .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

.hero-band {
    padding: var(--section) 0;
    background: var(--canvas);
}
.hero-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}
.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}
.hero-band p {
    font-size: 16px;
    color: var(--body-txt);
    max-width: 480px;
    margin-bottom: 32px;
}
.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: var(--on-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: background .15s;
}
.btn-primary:hover { background: #0d1218; text-decoration: none; }
.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    text-decoration: none;
    margin-left: 12px;
    transition: border-color .15s;
}
.btn-secondary:hover { border-color: #9297a0; text-decoration: none; }
.hero-img {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.section-band { padding: var(--section) 0; }
.section-band.bg-soft { background: var(--soft); }
.section-band.bg-strong { background: var(--strong); }
.section-band.bg-cream { background: var(--cream); }

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.section-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-band .lead {
    font-size: 16px;
    color: var(--body-txt);
    max-width: 600px;
    margin-bottom: 48px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--canvas);
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.article-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.article-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}
.article-card p { font-size: 14px; color: var(--body-txt); flex: 1; }
.article-card .card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}
.article-card .card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--link);
}

.signature-coral {
    background: var(--coral);
    color: var(--on-dark);
    padding: var(--section) 0;
}
.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
}
.signature-coral p {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    max-width: 580px;
    margin-bottom: 32px;
}
.btn-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: opacity .15s;
}
.btn-on-dark:hover { opacity: .9; text-decoration: none; }

.signature-forest {
    background: var(--forest);
    color: var(--on-dark);
    padding: var(--section) 0;
}
.signature-forest .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.signature-forest h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.signature-forest p { font-size: 16px; color: rgba(255,255,255,.8); }
.forest-img { border-radius: var(--r-md); overflow: hidden; }
.forest-img img { width: 100%; height: 100%; object-fit: cover; }

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.demo-card {
    border-radius: var(--r-md);
    padding: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.demo-card.bg-peach { background: var(--peach); }
.demo-card.bg-mint  { background: var(--mint); }
.demo-card.bg-cream { background: var(--cream); }
.demo-card h3 { font-size: 16px; font-weight: 500; color: var(--ink); }
.demo-card p  { font-size: 14px; color: var(--body-txt); }

.dark-cta-band {
    background: var(--dark);
    color: var(--on-dark);
    padding: var(--section) 0;
    text-align: center;
}
.dark-cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-dark);
    margin-bottom: 16px;
}
.dark-cta-band p {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    max-width: 500px;
    margin: 0 auto 32px;
}

.contact-form-wrap {
    max-width: 540px;
    margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    height: 44px;
    width: 100%;
    outline: none;
    transition: border-color .15s;
}
.contact-form textarea { height: auto; min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #458fff; }
.contact-form button {
    background: var(--ink);
    color: var(--on-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    transition: background .15s;
    align-self: flex-start;
}
.contact-form button:hover { background: #0d1218; }

.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--ink);
    color: var(--on-dark);
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 999;
}
.cookie-banner p { font-size: 14px; color: rgba(255,255,255,.85); max-width: 700px; }
.cookie-banner p a { color: #93c5fd; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept, .btn-cookie-reject {
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}
.btn-cookie-accept { background: var(--link); color: var(--on-dark); }
.btn-cookie-reject { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,.4); }

.article-hero {
    padding: var(--section) 0 48px;
    background: var(--canvas);
}
.article-hero .article-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 16px;
}
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-featured-img {
    border-radius: var(--r-md);
    overflow: hidden;
    max-height: 480px;
}
.article-featured-img img { width: 100%; object-fit: cover; }

.article-body { padding: 48px 0 var(--section); }
.article-body .wrap { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.article-content h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 40px 0 12px; }
.article-content h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin: 28px 0 10px; }
.article-content p { font-size: 15px; line-height: 1.75; color: var(--body-txt); margin-bottom: 18px; }
.article-content ul { list-style: disc; padding-left: 20px; margin-bottom: 18px; }
.article-content ul li { font-size: 15px; line-height: 1.75; color: var(--body-txt); margin-bottom: 6px; }
.article-content a { color: var(--link); }
.article-content strong { font-weight: 500; color: var(--ink); }

.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--soft);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-card h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.sidebar-card ul { display: flex; flex-direction: column; gap: 10px; }
.sidebar-card ul li a { font-size: 14px; color: var(--link); }

.page-hero {
    padding: var(--section) 0 48px;
    background: var(--canvas);
}
.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-txt); max-width: 600px; }

.page-body { padding: 48px 0 var(--section); }
.page-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin: 36px 0 12px; }
.page-body p { font-size: 15px; line-height: 1.75; color: var(--body-txt); margin-bottom: 16px; }
.page-body ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.page-body ul li { font-size: 15px; line-height: 1.75; color: var(--body-txt); margin-bottom: 6px; }

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 32px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand { font-size: 18px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 12px; }
.footer-brand span { color: var(--coral); }
.footer-col p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.footer-contact { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--muted); }
.footer-col strong { font-size: 14px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--ink); }
.footer-legal {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 48px 0;
    border-top: 1px solid var(--hairline);
}
.footer-legal p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer-disclaimer { font-size: 12px; color: var(--muted); opacity: .7; }

@media (max-width: 1024px) {
    .wrap { padding: 0 32px; }
    .nav-inner { padding: 0 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding: 0 32px; }
    .footer-legal { padding: 24px 32px 0; }
    .articles-grid { grid-template-columns: 1fr 1fr; }
    .demo-grid { grid-template-columns: 1fr 1fr; }
    .article-body .wrap { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --section: 64px; }
    .wrap { padding: 0 20px; }
    .nav-inner { padding: 0 20px; gap: 16px; }
    .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); padding: 32px 20px; gap: 20px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto;
        padding: 4px;
    }
    .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .15s; }
    .hero-band .wrap { grid-template-columns: 1fr; }
    .hero-img { display: none; }
    .hero-band h1 { font-size: 28px; }
    .signature-forest .wrap { grid-template-columns: 1fr; }
    .forest-img { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; padding: 0 20px; gap: 32px; }
    .footer-legal { padding: 24px 20px 0; }
    .cookie-banner { flex-direction: column; padding: 20px; align-items: flex-start; }
    .article-hero h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
    .signature-coral .wrap,
    .signature-forest .wrap,
    .dark-cta-band .wrap { padding: 0 20px; }
}
