: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;
    --link-active: #1a3866;
    --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;
    --rounded-pill: 9999px;
    --rounded-full: 50%;

    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-family);
    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 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 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    text-decoration: none;
}

.nav-menu a:hover { color: var(--ink); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-primary {
    display: inline-block;
    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;
    white-space: nowrap;
}

.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-block;
    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;
    white-space: nowrap;
}

.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn-secondary:active { background: var(--surface-soft); }

/* HAMBURGER */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

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

/* HERO */
.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;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

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

.hero-image img {
    border-radius: var(--rounded-lg);
    width: 100%;
    object-fit: cover;
    max-height: 420px;
}

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

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

.signature-coral-card p {
    font-size: 14px;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    opacity: 0.9;
}

.btn-secondary-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    text-decoration: none;
}

/* SECTIONS */
.section {
    padding: var(--spacing-section) 0;
}

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

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

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

.demo-card {
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
    overflow: hidden;
}

.demo-card:nth-child(1) { background: var(--signature-peach); }
.demo-card:nth-child(2) { background: var(--signature-mint); }
.demo-card:nth-child(3) { background: var(--signature-yellow); }
.demo-card:nth-child(4) { background: var(--signature-cream); }
.demo-card:nth-child(5) { background: var(--surface-soft); }
.demo-card:nth-child(6) { background: var(--canvas); border: 1px solid var(--hairline); }

.demo-card img {
    width: 100%;
    border-radius: var(--rounded-sm);
    margin-bottom: var(--spacing-md);
    object-fit: cover;
    height: 180px;
}

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

.demo-card p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: var(--spacing-sm);
}

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

/* 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-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: var(--spacing-md);
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    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);
}

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

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

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

.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-primary);
    margin-bottom: var(--spacing-lg);
    max-width: 640px;
}

.hero-card-dark p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

/* CREAM CALLOUT */
.cream-callout-card {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}

.cream-callout-card h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

.cream-callout-card p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: var(--spacing-lg);
}

/* LOGO STRIP */
.logo-strip {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.logo-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo-strip-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.logo-strip-items {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    align-items: center;
}

.logo-strip-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    margin: 0 var(--spacing-xxl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    max-width: 480px;
}

/* CONTACT FORM */
.contact-form {
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
    padding: var(--spacing-xl);
    max-width: 480px;
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.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);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--ink);
    outline: none;
}

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

.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-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}

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

.footer-contact {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-contact a { color: var(--muted); }

.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 a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

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

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

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

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

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

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

/* ARTICLE PAGE */
.article-header {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
}

.article-header .container {
    max-width: 800px;
}

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

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

.article-header-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
}

.article-header-image {
    width: 100%;
    border-radius: var(--rounded-lg);
    max-height: 460px;
    object-fit: cover;
}

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

.article-body .container {
    max-width: 800px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

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

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

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

.article-body a { color: var(--link); }
.article-body a:hover { color: var(--link-active); }

.article-body .article-image {
    margin: var(--spacing-xl) 0;
    border-radius: var(--rounded-md);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-body .callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.article-body .callout p {
    margin: 0;
}

/* PAGE HEADER */
.page-header {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
}

.page-header h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

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

/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted); }

/* PRIVACY / TERMS / ABOUT */
.prose {
    max-width: 800px;
}

.prose h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.prose h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

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

.prose ul, .prose ol {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.prose li {
    font-size: 14px;
    color: var(--body);
    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;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 200;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    flex: 1;
    min-width: 240px;
}

.cookie-banner a { color: var(--on-primary); text-decoration: underline; }

.cookie-banner-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.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;
}

.btn-legal-outline {
    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.4);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* ABOUT GRID */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* MOBILE */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    z-index: 150;
    padding: var(--spacing-xxl);
    flex-direction: column;
    gap: var(--spacing-lg);
}

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

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mobile-menu ul a {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-band .container { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 64px;
        --spacing-xxl: 24px;
    }
    .nav-menu { display: none; }
    .nav-actions { display: none; }
    .nav-hamburger { display: flex; }
    .demo-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .signature-coral-card { margin: 0; }
    .hero-card-dark { margin: 0; }
    .cta-band-light { margin: 0; flex-direction: column; align-items: flex-start; }
    .container { padding: 0 var(--spacing-md); }
    .article-header h1 { font-size: 28px; }
    .page-header h1 { font-size: 28px; }
    .hero-content h1 { font-size: 28px; }
    .cookie-banner { padding: var(--spacing-md); }
}
