@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;475;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;
    --border-strong:     #9297a0;
    --on-primary:        #ffffff;
    --link:              #1b61c9;
    --link-active:       #1a3866;
    --sig-coral:         #aa2d00;
    --sig-forest:        #0a2e0e;
    --sig-cream:         #f5e9d4;
    --sig-peach:         #fcab79;
    --sig-mint:          #a8d8c4;
    --sig-yellow:        #f4d35e;
    --sig-mustard:       #d9a441;
    --r-xs:   2px;
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   12px;
    --r-pill: 9999px;
    --sp-xxs:  4px;
    --sp-xs:   8px;
    --sp-sm:  12px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  32px;
    --sp-xxl: 48px;
    --sp-sec: 96px;
    --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-w:  1280px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--body); background: var(--canvas); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

/* TOP NAV */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}
.nav-brand {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--ink); }
.nav-menu { flex: 1; }
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}
.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* HERO */
.hero-band {
    padding: var(--sp-sec) 0;
    background: var(--canvas);
}
.hero-band .container { display: flex; align-items: center; gap: var(--sp-xxl); }
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
    max-width: 600px;
}
.hero-text p {
    font-size: 14px;
    color: var(--body);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: var(--sp-xl);
}
.hero-image { flex: 1; }
.hero-image img {
    width: 100%;
    border-radius: var(--r-md);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* BUTTONS */
.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(--r-lg);
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
}
.btn-primary:hover { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 15px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color .15s;
    text-align: center;
}
.btn-secondary:hover { color: var(--ink); border-color: var(--border-strong); }

.btn-pair { display: flex; gap: var(--sp-sm); flex-wrap: wrap; align-items: center; }

/* SECTION GENERIC */
.section { padding: var(--sp-sec) 0; }
.section-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}
.section-sub {
    font-size: 14px;
    color: var(--body);
    max-width: 600px;
    margin-bottom: var(--sp-xl);
    line-height: 1.6;
}

/* ARTICLE CARDS GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}
.article-card {
    background: var(--canvas);
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    padding: 0;
}
.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-card-body { padding: var(--sp-md); }
.article-card-tag {
    font-size: 11px;
    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-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: var(--sp-md);
}
.article-card-meta { font-size: 13px; color: var(--muted); }

/* SIGNATURE CORAL CARD */
.sig-coral {
    background: var(--sig-coral);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    color: var(--on-primary);
}
.sig-coral h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-lg);
}
.sig-coral p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--sp-xl);
    max-width: 560px;
}
.btn-on-dark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 24px;
    border-radius: var(--r-lg);
    border: 1px solid transparent;
    text-align: center;
}
.btn-on-dark:hover { color: var(--ink); }

/* DARK CARD */
.hero-card-dark {
    background: var(--surface-dark);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    color: var(--on-primary);
}
.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-lg);
}
.hero-card-dark p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: var(--sp-xl);
}

/* CREAM CALLOUT */
.cream-callout {
    background: var(--sig-cream);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
}
.cream-callout h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}
.cream-callout p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

/* DEMO GRID */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}
.demo-card {
    border-radius: var(--r-md);
    padding: var(--sp-md);
    overflow: hidden;
}
.demo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: calc(var(--r-md) - 4px);
    margin-bottom: var(--sp-sm);
}
.demo-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--sp-xxs);
}
.demo-card-desc { font-size: 14px; color: var(--body); line-height: 1.5; }

/* CTA BAND LIGHT */
.cta-band-light {
    background: var(--surface-strong);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    flex-wrap: wrap;
}
.cta-band-light h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

/* CONTACT FORM */
.contact-form {
    display: grid;
    gap: var(--sp-md);
    max-width: 560px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-xxs); }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group textarea {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color .15s;
}
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: #458fff; }

/* ARTICLE PAGE */
.article-hero {
    padding: var(--sp-sec) 0 var(--sp-xl);
    background: var(--canvas);
}
.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: var(--sp-lg);
}
.article-hero .article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }
.article-hero img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--r-md);
}

.article-body {
    padding: var(--sp-sec) 0;
}
.article-content {
    max-width: 760px;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-sm);
}
.article-content h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-xs);
}
.article-content p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}
.article-content ul {
    list-style: disc;
    padding-left: var(--sp-lg);
    margin-bottom: var(--sp-md);
}
.article-content ul li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: var(--sp-xxs);
}
.article-content a { color: var(--link); }
.article-content a:hover { color: var(--link-active); }
.article-content img {
    width: 100%;
    border-radius: var(--r-md);
    margin: var(--sp-xl) 0;
}

.article-with-sidebar {
    display: grid;
    grid-template-columns: 760px 1fr;
    gap: var(--sp-xxl);
    align-items: start;
}
.article-sidebar {}
.sidebar-card {
    background: var(--surface-soft);
    border-radius: var(--r-md);
    padding: var(--sp-xl);
    margin-bottom: var(--sp-lg);
}
.sidebar-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}
.sidebar-card ul li {
    margin-bottom: var(--sp-xs);
}
.sidebar-card ul li a { font-size: 14px; color: var(--link); }

/* STATIC PAGES */
.static-hero {
    padding: var(--sp-sec) 0 var(--sp-xl);
}
.static-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: var(--sp-sm);
}
.static-hero .meta { font-size: 13px; color: var(--muted); }
.static-body {
    padding: 0 0 var(--sp-sec);
}
.static-content {
    max-width: 760px;
}
.static-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-sm);
    line-height: 1.35;
}
.static-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-xs);
}
.static-content p, .static-content li {
    font-size: 14px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--sp-sm);
}
.static-content ul {
    list-style: disc;
    padding-left: var(--sp-lg);
    margin-bottom: var(--sp-md);
}
.static-content a { color: var(--link); }

/* FOOTER */
.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-sec) 0 var(--sp-xl);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xxl);
    margin-bottom: var(--sp-xl);
}
.footer-brand {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}
.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: var(--sp-lg);
}
.footer-contact p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--link); }
.footer-col-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}
.footer-col ul li { margin-bottom: var(--sp-xs); }
.footer-col ul li a { font-size: 14px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--link); }
.footer-legal {
    border-top: 1px solid var(--hairline);
    padding-top: var(--sp-lg);
}
.footer-legal p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--sp-lg) var(--sp-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
.cookie-banner.hidden { display: none; }
.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
.cookie-text a { color: var(--sig-mint); }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }
.btn-legal {
    display: inline-block;
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    cursor: pointer;
    border: none;
    min-width: 80px;
    text-align: center;
    transition: opacity .15s;
}
.btn-legal:hover { opacity: .88; }
.btn-legal-accept { background: var(--link); color: var(--on-primary); }
.btn-legal-reject {
    background: transparent;
    color: var(--on-primary);
    border: 1px solid var(--border-strong);
}

/* DISCLAIMER */
.disclaimer-band {
    background: var(--sig-cream);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    margin: var(--sp-xl) 0;
    font-size: 13px;
    color: var(--body);
    line-height: 1.6;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    gap: var(--sp-xs);
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--sp-lg);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { color: var(--border-strong); }

/* RELATED ARTICLES */
.related-section { padding: var(--sp-sec) 0 0; }
.related-section .section-title { margin-bottom: var(--sp-xl); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .article-with-sidebar { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
    .nav-inner { padding: 0 var(--sp-md); }
    .nav-hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        inset: 64px 0 0;
        background: var(--canvas);
        z-index: 99;
        padding: var(--sp-xl) var(--sp-md);
    }
    .nav-menu.open { display: block; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: var(--sp-md); }
    .nav-links a { font-size: 18px; }
    .hero-band .container { flex-direction: column; gap: var(--sp-xl); }
    .hero-text h1 { font-size: 28px; }
    .article-hero h1 { font-size: 28px; }
    .static-hero h1 { font-size: 28px; }
    .sig-coral h2 { font-size: 24px; }
    .hero-card-dark h2 { font-size: 24px; }
    .cta-band-light h2 { font-size: 24px; }
    .cta-band-light { flex-direction: column; align-items: flex-start; }
    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .form-row { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .nav-inner { gap: 0; }
}
