@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;475;500;575&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;
    --info-border: #458fff;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
    --signature-peach: #fcab79;
    --signature-mint: #a8d8c4;
    --signature-yellow: #f4d35e;
    --signature-mustard: #d9a441;
    --rounded-xs: 2px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 12px;
    --rounded-pill: 9999px;
    --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-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--body); background: var(--canvas); line-height: 1.25; -webkit-font-smoothing: antialiased; }

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

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

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xxl);
}

.top-nav {
    height: 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xxl);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.nav-logo span { color: var(--signature-coral); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 1;
}

.nav-links > li > a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    transition: color 0.15s;
}
.nav-links > li > a:hover { color: var(--ink); }

.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    min-width: 300px;
    padding: var(--spacing-xs) 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 14px;
    color: var(--body);
}
.dropdown li a:hover { color: var(--ink); background: var(--surface-soft); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-on-dark {
    display: inline-flex;
    align-items: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    line-height: 1.4;
}
.btn-on-dark:hover { opacity: 0.9; color: var(--ink); }

.btn-legal {
    display: inline-flex;
    align-items: center;
    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;
    line-height: 1.2;
    letter-spacing: 0;
}
.btn-legal-reject {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--body);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: 1px solid var(--hairline);
    cursor: pointer;
    line-height: 1.2;
}

.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 {}
.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}
.hero-h1 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}
.hero-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}
.hero-actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }

.hero-image {
    border-radius: var(--rounded-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}
.section-h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
.section-h2-xl {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
.section-lead {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.25;
    max-width: 640px;
    margin-bottom: var(--spacing-xl);
}
.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.card-grid-3 {
    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);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: border-color 0.15s;
}
.article-card:hover { border-color: #b0b5be; }
.article-card-thumb {
    border-radius: calc(var(--rounded-md) - 4px);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: var(--spacing-xs);
}
.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    text-transform: uppercase;
}
.article-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); }
.article-card-meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-top: auto;
}

.signature-coral {
    background: var(--signature-coral);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}
.signature-coral .section-h2 { color: var(--on-primary); }
.signature-coral .section-lead { color: rgba(255,255,255,0.85); max-width: 560px; }

.signature-forest {
    background: var(--signature-forest);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}
.signature-forest .section-h2 { color: var(--on-primary); }
.signature-forest .section-lead { color: rgba(255,255,255,0.8); }

.hero-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
}
.hero-dark .section-h2 { color: var(--on-primary); }
.hero-dark .section-lead { color: rgba(255,255,255,0.8); }

.cream-callout {
    background: var(--signature-cream);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
}
.cream-callout .section-h2 { font-size: 24px; margin-bottom: var(--spacing-sm); }

.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xxl);
    text-align: center;
}
.cta-band-light .section-h2 { margin: 0 auto var(--spacing-lg); max-width: 560px; }

.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);
}
.demo-card-peach { background: var(--signature-peach); }
.demo-card-mint { background: var(--signature-mint); }
.demo-card-yellow { background: var(--signature-yellow); }
.demo-card-cream { background: var(--signature-cream); }
.demo-card-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}
.demo-card-body {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.25;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}
.stat-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-top: var(--spacing-xs);
}

.article-page-hero {
    background: var(--surface-dark-elevated);
    padding: var(--spacing-section) 0;
    position: relative;
    overflow: hidden;
}
.article-page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg,
        #aa2d00 0%, #aa2d00 8%,
        #0a2e0e 8%, #0a2e0e 18%,
        #d9a441 18%, #d9a441 26%,
        #1b61c9 26%, #1b61c9 34%,
        #a8d8c4 34%, #a8d8c4 44%,
        #f4d35e 44%, #f4d35e 54%,
        #fcab79 54%, #fcab79 64%,
        #1d1f25 64%, #1d1f25 100%
    );
    opacity: 0.18;
}
.article-page-hero .container { position: relative; z-index: 1; }
.article-hero-tag {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.16px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}
.article-hero-h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--on-primary);
    max-width: 780px;
    margin-bottom: var(--spacing-lg);
}
.article-hero-meta {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.16px;
}

.article-body {
    padding: var(--spacing-section) 0;
}
.article-body .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xxl);
    align-items: start;
}
.article-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}
.article-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}
.article-content p {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}
.article-content ul, .article-content ol {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.article-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-xs);
}
.article-content a { color: var(--link); }
.article-content a:hover { color: var(--link-active); }
.article-content figure {
    margin: var(--spacing-xl) 0;
}
.article-content figure img {
    border-radius: var(--rounded-md);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-content figcaption {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-top: var(--spacing-xs);
}

.article-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.sidebar-box {
    background: var(--surface-soft);
    border-radius: var(--rounded-md);
    padding: var(--spacing-md);
}
.sidebar-box-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}
.sidebar-box ul { list-style: disc; padding-left: var(--spacing-md); }
.sidebar-box li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-xs);
}
.sidebar-box a { color: var(--link); font-size: 14px; }

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--spacing-section) 0 var(--spacing-xxl);
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-xxl); }
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}
.footer-brand span { color: var(--signature-coral); }
.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
}
.footer-contact {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--ink); }
.footer-col-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--spacing-xs); }
.footer-col li a {
    font-size: 14px;
    color: var(--muted);
}
.footer-col li a:hover { color: var(--ink); }
.footer-legal {
    border-top: 1px solid var(--hairline);
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.footer-legal p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--spacing-md) var(--spacing-xxl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.hidden { display: none; }
.cookie-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}
.cookie-text a { color: rgba(255,255,255,0.65); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--spacing-xs); flex-shrink: 0; }

.breadcrumb {
    padding: var(--spacing-md) 0;
    font-size: 14px;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 var(--spacing-xs); }

.contact-form {
    background: var(--surface-soft);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-xl);
    max-width: 560px;
}
.form-group { margin-bottom: var(--spacing-md); }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}
.form-input {
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    outline: none;
    transition: border-color 0.15s;
    font-family: var(--font-body);
}
.form-input:focus { border-color: var(--info-border); }
.form-input::placeholder { color: var(--muted); }

.info-band {
    background: var(--surface-soft);
    padding: var(--spacing-section) 0;
}

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

.page-hero {
    background: var(--canvas);
    padding: var(--spacing-section) 0 var(--spacing-xl);
    border-bottom: 1px solid var(--hairline);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
.page-hero p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    max-width: 560px;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.prose h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--spacing-lg) 0 var(--spacing-xs);
}
.prose p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}
.prose ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.prose li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.25;
    margin-bottom: var(--spacing-xs);
}
.prose a { color: var(--link); }

.last-updated {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--hairline);
}

@media (max-width: 1024px) {
    .hero-band .container { grid-template-columns: 1fr; }
    .hero-image { max-height: 360px; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .article-body .container { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --spacing-section: 64px; }
    .container { padding: 0 var(--spacing-md); }
    .nav-inner { padding: 0 var(--spacing-md); }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: var(--canvas);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        z-index: 99;
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links > li > a { font-size: 18px; }
    .dropdown { display: none !important; position: static; border: none; box-shadow: none; padding: 0; min-width: auto; }
    .has-dropdown.open .dropdown { display: block !important; padding-left: var(--spacing-md); }
    .hero-h1 { font-size: 28px; }
    .article-hero-h1 { font-size: 28px; }
    .section-h2 { font-size: 24px; }
    .section-h2-xl { font-size: 32px; }
    .card-grid-3 { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; padding: var(--spacing-md); }
    .signature-coral, .signature-forest, .hero-dark { padding: var(--spacing-xl); }
}
