*, *::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;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--body);
    background: var(--canvas);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

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 var(--spacing-xxl);
}

/* TOP NAV */
.top-nav {
    height: 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    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: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    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-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    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;
    padding: 12px 24px;
    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 { background: var(--surface-soft); text-decoration: none; color: var(--ink); }

.btn-legal {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
}

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

.hero-band .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

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

.hero-content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

.signature-coral-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    max-width: 560px;
}

.signature-forest-card {
    background: var(--signature-forest);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}

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

.signature-forest-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-card-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}

.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--spacing-md);
}

.hero-card-dark p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    max-width: 580px;
}

/* SECTION TITLES */
.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

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

/* ARTICLE CARDS GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.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 {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--spacing-xs);
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
    text-decoration: none;
    display: block;
}

.article-card-title:hover { color: var(--link); text-decoration: none; }

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

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

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

.demo-grid-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    border: 1px solid var(--hairline);
}

.demo-grid-card.peach { background: var(--signature-peach); border-color: transparent; }
.demo-grid-card.mint { background: var(--signature-mint); border-color: transparent; }
.demo-grid-card.cream { background: var(--signature-cream); border-color: transparent; }

.demo-grid-card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

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

/* STAT ROW */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--canvas);
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
}

.stat-number {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    margin-top: var(--spacing-xs);
}

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

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

.cta-band-light p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* CONTACT FORM */
.contact-form {
    background: var(--surface-soft);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    max-width: 640px;
    margin: 0 auto;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.12px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

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

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

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #458fff;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: var(--spacing-md);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.footer-col ul li a:hover { color: var(--ink); }

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

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

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.footer-legal a:hover { color: var(--ink); }

/* ARTICLE PAGE */
.article-hero {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

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

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

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

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

.article-hero-img {
    margin-top: var(--spacing-xxl);
    border-radius: var(--rounded-md);
    overflow: hidden;
    aspect-ratio: 16/7;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: var(--spacing-section) 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-xxl);
    align-items: start;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    letter-spacing: 0.12px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.article-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.article-content ul, .article-content ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--spacing-xs);
}

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

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.sidebar-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--link);
}

/* PAGE HERO */
.page-hero {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

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

.page-hero p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 640px;
}

.page-content {
    padding: var(--spacing-section) 0;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    letter-spacing: 0.12px;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.page-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.page-content ul, .page-content ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--on-primary);
    padding: var(--spacing-md) var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    z-index: 1000;
    flex-wrap: wrap;
}

#cookie-banner p {
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

#cookie-banner a {
    color: rgba(255,255,255,0.75);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* UTILITY */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.text-muted { color: var(--muted); }
.mt-section { margin-top: var(--spacing-section); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

/* MOBILE NAV OVERLAY */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    z-index: 99;
    padding: var(--spacing-xxl);
    flex-direction: column;
    gap: var(--spacing-xl);
    overflow-y: auto;
}

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

.mobile-menu a {
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--hairline);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-md); }
    .hero-band .container { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-content h1 { font-size: 32px; }
    .section-title { font-size: 24px; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--spacing-md); text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-right .btn-primary { display: none; }
    .signature-coral-card h2, .signature-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
    .article-hero h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
    #cookie-banner { padding: var(--spacing-md); }
}
