@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;
    --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;
    --radius-xs: 2px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --sp-xxs: 4px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-xxl: 48px;
    --sp-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.25;
    color: var(--body);
    background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:active { color: var(--link-active); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

/* NAV */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.nav-logo span { color: var(--signature-coral); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-xs);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: 0.2s;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color 0.15s;
}

.btn-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--link);
    color: var(--on-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
}

/* HERO */
.hero-band {
    padding: var(--sp-section) 0;
    background: var(--canvas);
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 680px;
    margin-bottom: var(--sp-lg);
}

.hero-band p {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    max-width: 520px;
    margin-bottom: var(--sp-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* SECTION BANDS */
.section-band {
    padding: var(--sp-section) 0;
}

.section-band-soft {
    padding: var(--sp-section) 0;
    background: var(--surface-soft);
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-xl);
}

.section-sub {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}

/* SIGNATURE CARDS */
.signature-coral {
    background: var(--signature-coral);
    color: var(--on-primary);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
    margin: var(--sp-section) 0;
}

.signature-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-lg);
    color: var(--on-primary);
}

.signature-coral p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--sp-xl);
    color: rgba(255,255,255,0.85);
}

.signature-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
}

.signature-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-lg);
    color: var(--on-primary);
}

.signature-dark p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--sp-xl);
    color: rgba(255,255,255,0.75);
}

.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
}

/* ARTICLE CARD */
.article-card {
    background: var(--canvas);
    border-radius: var(--radius-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(--sp-md);
}

.article-card-cat {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-xs);
}

.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); }

.article-card-meta {
    font-size: 14px;
    color: var(--muted);
}

/* DEMO GRID CARDS */
.demo-card {
    border-radius: var(--radius-md);
    padding: var(--sp-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-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.demo-card-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: var(--sp-sm);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* CONTACT FORM */
.contact-form {
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
    max-width: 480px;
}

.form-group {
    margin-bottom: var(--sp-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hairline);
    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;
}

/* CTA BAND */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    margin: var(--sp-section) 0;
}

.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    flex: 1;
}

/* ARTICLE PAGE */
.article-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
    background: var(--surface-dark-elevated);
    color: var(--on-primary);
}

.article-hero h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--on-primary);
    max-width: 760px;
    margin-bottom: var(--sp-lg);
}

.article-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.article-body {
    padding: var(--sp-section) 0;
    max-width: 760px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xxl) 0 var(--sp-lg);
    line-height: 1.2;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-md);
    line-height: 1.35;
    letter-spacing: 0.12px;
}

.article-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-md);
}

.article-body ul,
.article-body ol {
    padding-left: var(--sp-xl);
    margin-bottom: var(--sp-md);
}

.article-body li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-xs);
}

.article-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: var(--sp-xl) 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: var(--sp-xxl);
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-box {
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
    margin-bottom: var(--sp-lg);
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { margin-bottom: var(--sp-xs); }
.sidebar-box a { font-size: 14px; color: var(--link); }

/* PAGE CONTENT */
.page-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
    background: var(--canvas);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}

.page-body {
    padding: var(--sp-section) 0;
    max-width: 760px;
}

.page-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xxl) 0 var(--sp-md);
    letter-spacing: 0.12px;
}

.page-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-md);
}

.page-body ul {
    padding-left: var(--sp-xl);
    margin-bottom: var(--sp-md);
}

.page-body li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-xs);
}

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-section) 0 var(--sp-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xxl);
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: var(--sp-md);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--sp-xs); }
.footer-col a {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.footer-col a:hover { color: var(--ink); }

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding-top: var(--sp-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer-legal p { font-size: 14px; color: var(--muted); }
.footer-legal-links { display: flex; gap: var(--sp-lg); }
.footer-legal-links a { font-size: 14px; color: var(--muted); }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: var(--sp-xl);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--radius-md);
    padding: var(--sp-lg) var(--sp-xl);
    width: calc(100% - var(--sp-xxl));
    max-width: 680px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    flex: 1;
}

#cookie-banner a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: var(--sp-xs);
    flex-shrink: 0;
}

/* UTILS */
.text-muted { color: var(--muted); }
.mt-section { margin-top: var(--sp-section); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-lg { margin-bottom: var(--sp-lg); }
.updated-tag {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-bottom: var(--sp-md);
}

.disclaimer {
    background: var(--surface-soft);
    border-left: 3px solid var(--hairline);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--sp-xxl) 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .hero-band h1 { font-size: 28px; }
    .article-hero h1 { font-size: 32px; }
    .section-title { font-size: 24px; }
    .signature-coral h2, .signature-dark h2 { font-size: 24px; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-lg); gap: var(--sp-md); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    #cookie-banner { flex-direction: column; align-items: flex-start; width: calc(100% - var(--sp-xl)); }
    .footer-legal { flex-direction: column; align-items: flex-start; }
}
