*, *::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;
    --surface-dark-elevated: #1d1f25;
    --hairline: #dddddd;
    --ink: #181d26;
    --body-color: #333840;
    --muted: #41454d;
    --on-primary: #ffffff;
    --link: #1b61c9;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --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 { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body-color);
    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 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;
}
.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.nav-logo span { color: var(--signature-coral); }
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body-color);
    text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.btn-primary {
    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;
    display: inline-block;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); text-decoration: none; }
.btn-secondary {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }
.btn-secondary-on-dark {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary-on-dark:hover { opacity: 0.9; text-decoration: none; }
.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;
}

/* HAMBURGER */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    z-index: 99;
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
}

/* HERO BAND */
.hero-band {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}
.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: var(--spacing-lg);
}
.hero-band p {
    font-size: 14px;
    font-weight: 400;
    color: var(--body-color);
    max-width: 560px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: var(--spacing-xxl);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}
.hero-meta-item {
    padding: var(--spacing-xl);
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
}
.hero-meta-item strong {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}
.hero-meta-item span {
    font-size: 14px;
    color: var(--body-color);
}

/* SECTION */
.section-band {
    padding: var(--spacing-section) 0;
}
.section-band.surface-soft { background: var(--surface-soft); }
.section-band.surface-cream { background: var(--signature-cream); }
.section-band.surface-strong { background: var(--surface-strong); }

.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}
.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-color);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

/* ARTICLE CARDS */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}
.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-card-body {
    padding: var(--spacing-md);
}
.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--muted);
    text-transform: uppercase;
    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-sm);
    text-decoration: none;
    display: block;
}
.article-card-title:hover { color: var(--link); text-decoration: none; }
.article-card-excerpt {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}
.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.16px;
}

/* SIGNATURE CARDS */
.signature-coral-card {
    background: var(--signature-coral);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}
.signature-coral-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
.signature-coral-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
    opacity: 0.9;
}

.signature-forest-card {
    background: var(--signature-forest);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}
.signature-forest-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
.signature-forest-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
    opacity: 0.9;
}

.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    color: var(--on-primary);
}
.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
.hero-card-dark p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
    opacity: 0.85;
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
}
.demo-card {
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    overflow: hidden;
}
.demo-card.peach { background: var(--signature-peach); }
.demo-card.mint { background: var(--signature-mint); }
.demo-card.yellow { background: var(--signature-yellow); }
.demo-card img {
    width: 100%;
    border-radius: var(--rounded-sm);
    margin-bottom: var(--spacing-sm);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.demo-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}
.demo-card-desc {
    font-size: 14px;
    color: var(--body-color);
    margin-top: var(--spacing-xs);
    line-height: 1.5;
}

/* TWO COL */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}
.cream-callout h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
    line-height: 1.35;
    letter-spacing: 0.12px;
}
.cream-callout p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
}

/* CTA BAND */
.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);
    line-height: 1.2;
}
.cta-band-light p {
    font-size: 14px;
    color: var(--body-color);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 480px;
}
.text-input {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    width: 100%;
    font-family: inherit;
}
.text-input:focus {
    outline: none;
    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-xxl);
    margin-bottom: var(--spacing-xxl);
}
.footer-brand h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}
.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 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); text-decoration: none; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--hairline);
}
.footer-bottom p { font-size: 14px; color: var(--muted); }
.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}
.footer-bottom-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--ink); }

/* ARTICLE PAGE */
.article-page {
    padding: var(--spacing-section) 0;
}
.article-header { margin-bottom: var(--spacing-xxl); }
.article-header h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
    max-width: 760px;
}
.article-header-meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-bottom: var(--spacing-xl);
}
.article-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--spacing-xxl);
}
.article-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-xxl);
    align-items: start;
}
.article-content h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    line-height: 1.2;
}
.article-content h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
    line-height: 1.35;
    letter-spacing: 0.12px;
}
.article-content p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}
.article-content ul, .article-content ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-xl);
}
.article-content li {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.7;
    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-xl);
    margin-bottom: var(--spacing-lg);
}
.sidebar-card h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--hairline);
}
.sidebar-card ul li:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-card ul li a {
    font-size: 14px;
    color: var(--body-color);
    text-decoration: none;
    line-height: 1.5;
}
.sidebar-card ul li a:hover { color: var(--link); }

/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { color: var(--muted); }

/* PAGE CONTENT */
.page-content {
    padding: var(--spacing-section) 0;
    max-width: 800px;
}
.page-content h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}
.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xxl) 0 var(--spacing-md);
    line-height: 1.35;
}
.page-content p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}
.page-content ul {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-xl);
}
.page-content li {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-lg) var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    z-index: 200;
    flex-wrap: wrap;
}
#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}
#cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-buttons { display: flex; gap: var(--spacing-sm); }
.cookie-buttons button {
    font-family: inherit;
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}
#cookie-accept { background: var(--link); color: var(--on-primary); }
#cookie-reject { background: transparent; color: var(--on-primary); border: 1px solid rgba(255,255,255,0.4); }

/* SCHEMA IMAGE */
.article-inline-img {
    width: 100%;
    border-radius: var(--rounded-md);
    margin: var(--spacing-xl) 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* RELATED ARTICLES */
.related-articles {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xxl);
    border-top: 1px solid var(--hairline);
}
.related-articles h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-meta { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .article-body { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --spacing-section: 64px; }
    .container { padding: 0 var(--spacing-md); }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .hero-band h1 { font-size: 28px; }
    .section-title { font-size: 24px; }
    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-meta { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--spacing-md); text-align: center; }
    .article-header h1 { font-size: 28px; }
    .signature-coral-card h2, .signature-forest-card h2, .hero-card-dark h2 { font-size: 24px; }
    #cookie-banner { flex-direction: column; }
}
