*, *::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: #333840;
    --muted: #41454d;
    --on-primary: #ffffff;
    --link: #1b61c9;
    --link-active: #1a3866;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --border-strong: #9297a0;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --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);
    background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* 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;
    height: 100%;
    gap: 32px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logo span { color: var(--signature-coral); }
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex: 1;
}
.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}
.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;
    display: inline-block;
    line-height: 1.4;
    transition: background 0.15s;
}
.btn-primary:hover, .btn-primary:active { background: var(--primary-active); 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;
    display: inline-block;
    line-height: 1.4;
}
.btn-secondary:hover { color: var(--ink); border-color: var(--border-strong); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: transform 0.2s;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: var(--canvas);
    z-index: 99;
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}

/* HERO BAND */
.hero-band {
    padding: var(--section) 0;
    background: var(--canvas);
}
.hero-band .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-content h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero-content p {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image img {
    border-radius: var(--rounded-md);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* SECTION TITLES */
.section-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 600px;
}

/* SIGNATURE CORAL CARD */
.signature-coral {
    background: var(--signature-coral);
    padding: var(--section) 0;
}
.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: 16px;
}
.signature-coral p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; margin-bottom: 32px; max-width: 600px; }
.btn-secondary-on-dark {
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
}

/* SIGNATURE FOREST CARD */
.signature-forest {
    background: var(--signature-forest);
    padding: var(--section) 0;
}
.signature-forest h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: 16px;
}
.signature-forest p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; margin-bottom: 32px; max-width: 600px; }

/* SURFACE DARK */
.surface-dark {
    background: var(--surface-dark);
    padding: var(--section) 0;
}
.surface-dark h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.surface-dark p { color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 32px; }

/* CREAM CALLOUT */
.cream-callout {
    background: var(--signature-cream);
    padding: var(--section) 0;
}
.cream-callout h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cream-callout p { color: var(--body); line-height: 1.6; }

/* ARTICLES GRID */
.articles-section {
    padding: var(--section) 0;
    background: var(--canvas);
}
.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;
}
.article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-card-body { padding: 16px; }
.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}
.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 8px;
}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--signature-coral); }
.article-card-meta { font-size: 13px; color: var(--muted); }

/* DEMO GRID */
.demo-grid {
    padding: var(--section) 0;
    background: var(--canvas);
}
.demo-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.demo-card {
    border-radius: var(--rounded-md);
    padding: 16px;
    overflow: hidden;
}
.demo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--rounded-sm);
    margin-bottom: 12px;
}
.demo-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}
.demo-card p { font-size: 14px; color: var(--body); line-height: 1.5; }
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-yellow { background: var(--signature-yellow); }

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    padding: var(--section) 0;
}
.cta-band-light .container { text-align: center; }
.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-band-light p { color: var(--body); margin-bottom: 32px; line-height: 1.6; }

/* CONTACT FORM */
.contact-section {
    padding: var(--section) 0;
    background: var(--canvas);
}
.contact-form {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-group input, .form-group 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: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }
.form-submit { align-self: flex-start; }

/* ARTICLE PAGE */
.article-hero {
    padding: var(--section) 0 48px;
    background: var(--canvas);
}
.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 800px;
}
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.article-meta span { margin-right: 16px; }
.article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: 48px;
}
.article-body { max-width: 720px; }
.article-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 40px 0 16px;
    line-height: 1.35;
}
.article-body h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin: 28px 0 12px;
    line-height: 1.5;
}
.article-body p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 20px; }
.article-body li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.article-body a { color: var(--link); }
.article-body a:hover { color: var(--link-active); }
.article-back { margin-bottom: 24px; display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink); }
.article-back:hover { color: var(--signature-coral); }

/* PAGE CONTENT */
.page-section {
    padding: var(--section) 0;
    background: var(--canvas);
}
.page-section .container { max-width: 800px; }
.page-section h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 32px;
    line-height: 1.2;
}
.page-section h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 40px 0 16px;
    line-height: 1.35;
}
.page-section p { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.page-section ul { padding-left: 20px; margin-bottom: 16px; }
.page-section li { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* FOOTER */
.site-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: 32px;
    margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

/* 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: 999;
    flex-wrap: wrap;
}
#cookie-banner p { font-size: 14px; line-height: 1.5; flex: 1; min-width: 240px; }
#cookie-banner p a { color: var(--signature-peach); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
    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;
    white-space: nowrap;
}
.btn-cookie-reject {
    background: transparent;
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    white-space: nowrap;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; }

/* DISCLAIMER */
.disclaimer {
    background: var(--surface-soft);
    border-left: 3px solid var(--hairline);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 32px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    :root { --section: 64px; }
    .nav-links, .nav-right { display: none; }
    .hamburger { display: flex; }
    .hero-band .container { grid-template-columns: 1fr; gap: 32px; }
    .hero-image { display: none; }
    .hero-content h1 { font-size: 28px; }
    .section-title { font-size: 28px; }
    .signature-coral h2, .signature-forest h2, .surface-dark h2, .cream-callout h2, .cta-band-light h2 { font-size: 24px; }
    .articles-grid { grid-template-columns: 1fr; }
    .demo-grid-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    #cookie-banner { padding: 16px; }
    .article-hero h1 { font-size: 28px; }
    .page-section h1 { font-size: 28px; }
}
