@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 {
    --ink: #181d26;
    --body-text: #333840;
    --muted: #41454d;
    --canvas: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #e0e2e6;
    --surface-dark: #181d26;
    --hairline: #dddddd;
    --link: #1b61c9;
    --coral: #aa2d00;
    --forest: #0a2e0e;
    --cream: #f5e9d4;
    --peach: #fcab79;
    --mint: #a8d8c4;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-xxl: 48px;
    --sp-section: 96px;
    --max-w: 1280px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--body-text); background: var(--canvas); }

a { color: var(--link); text-decoration: none; }
address { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-xxl);
}

/* ── NAV ── */
.site-header {
    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%;
}
.site-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.site-logo span { color: var(--muted); font-weight: 400; }
.main-nav ul {
    display: flex;
    gap: var(--sp-xl);
}
.main-nav a {
    font-size: 14px;
    color: var(--body-text);
    font-weight: 500;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-xs);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* ── HERO ── */
.hero-band {
    padding: var(--sp-section) 0;
    background: var(--canvas);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xxl);
    align-items: center;
}
.hero-text { max-width: 560px; }
.hero-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-md);
}
.hero-h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}
.hero-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-text);
    margin-bottom: var(--sp-xl);
}
.hero-image img {
    border-radius: var(--r-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:active { background: #0d1218; color: #fff; }
.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color 0.15s;
}
.btn-pair { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center; }

/* ── SECTIONS ── */
.section { padding: var(--sp-section) 0; }
.section-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}
.section-sub {
    font-size: 16px;
    color: var(--body-text);
    margin-bottom: var(--sp-xl);
    max-width: 600px;
}
.section-header { margin-bottom: var(--sp-xl); }

/* ── ARTICLE CARDS ── */
.card-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;
}
.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-card-body { padding: var(--sp-md); }
.article-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-xs);
}
.article-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: var(--sp-xs);
}
.article-card-meta {
    font-size: 13px;
    color: var(--muted);
}
.article-card a { color: inherit; }

/* ── SIGNATURE CORAL CARD ── */
.sig-coral {
    background: var(--coral);
    color: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
}
.sig-coral .sig-h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: #fff;
}
.sig-coral p { margin-bottom: var(--sp-xl); opacity: 0.9; }

/* ── SIGNATURE FOREST CARD ── */
.sig-forest {
    background: var(--forest);
    color: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
}
.sig-forest .sig-h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: #fff;
}
.sig-forest p { margin-bottom: var(--sp-xl); opacity: 0.9; }

/* ── DARK CARD ── */
.sig-dark {
    background: var(--surface-dark);
    color: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
}
.sig-dark .sig-h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: #fff;
}
.sig-dark p { margin-bottom: var(--sp-xl); opacity: 0.85; }

/* ── CREAM CALLOUT ── */
.cream-callout {
    background: var(--cream);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
}
.cream-callout h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}
.cream-callout p { color: var(--body-text); }

/* ── DEMO GRID ── */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
    align-items: start;
}
.demo-card {
    border-radius: var(--r-md);
    padding: var(--sp-md);
    overflow: hidden;
}
.demo-card.peach { background: var(--peach); }
.demo-card.mint  { background: var(--mint);  }
.demo-card.soft  { background: var(--surface-soft); }
.demo-card img {
    border-radius: var(--r-sm);
    width: 100%;
    margin-bottom: var(--sp-sm);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.demo-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}
.demo-card p { font-size: 13px; color: var(--body-text); }

/* ── CTA BAND ── */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    text-align: center;
}
.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}
.cta-band p { color: var(--body-text); margin-bottom: var(--sp-xl); }

/* ── FORM ── */
.contact-form {
    display: grid;
    gap: var(--sp-md);
    max-width: 520px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-xs); }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group textarea {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    height: 44px;
    width: 100%;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #458fff;
}

/* ── ARTICLE PAGE ── */
.article-hero {
    padding: var(--sp-section) 0 var(--sp-xl);
    background: var(--canvas);
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-xxl);
    align-items: start;
}
.article-content h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}
.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--sp-xl);
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}
.article-featured-img {
    width: 100%;
    border-radius: var(--r-lg);
    margin-bottom: var(--sp-xl);
    aspect-ratio: 16/9;
    object-fit: cover;
}
.article-body h2 {
    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 h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-sm);
}
.article-body p { margin-bottom: var(--sp-md); line-height: 1.7; }
.article-body ul,
.article-body ol {
    padding-left: var(--sp-xl);
    margin-bottom: var(--sp-md);
}
.article-body li { margin-bottom: var(--sp-xs); line-height: 1.7; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--link); }
.article-body figure { margin: var(--sp-xl) 0; }
.article-body figure img { border-radius: var(--r-md); width: 100%; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: var(--sp-xs); text-align: center; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-md); font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--hairline); padding: var(--sp-sm) var(--sp-md); text-align: left; }
.article-body th { background: var(--surface-soft); font-weight: 600; }

.article-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
    background: var(--surface-soft);
    border-radius: var(--r-md);
    padding: var(--sp-md);
    margin-bottom: var(--sp-lg);
}
.sidebar-widget h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.sidebar-widget ul li { margin-bottom: var(--sp-xs); }
.sidebar-widget a { color: var(--body-text); font-size: 14px; }

/* ── STATIC PAGES ── */
.page-hero { padding: var(--sp-xxl) 0 var(--sp-xl); }
.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}
.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-md);
}
.page-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: var(--sp-lg) 0 var(--sp-sm);
}
.page-content p { margin-bottom: var(--sp-md); line-height: 1.7; }
.page-content ul { padding-left: var(--sp-xl); margin-bottom: var(--sp-md); }
.page-content ul li { list-style: disc; margin-bottom: var(--sp-xs); line-height: 1.7; }
.page-content a { color: var(--link); }
.disclaimer {
    background: var(--surface-soft);
    border-left: 3px solid var(--hairline);
    padding: var(--sp-md);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin-bottom: var(--sp-md);
    font-size: 13px;
    color: var(--muted);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding-top: var(--sp-section);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-section);
}
.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}
.footer-brand span { color: var(--muted); font-weight: 400; }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-col ul li { margin-bottom: var(--sp-xs); }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col address p { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.footer-col address a { color: var(--muted); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: var(--sp-lg) 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: var(--sp-sm);
}
.footer-bottom a { color: var(--muted); }

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: #fff;
    padding: var(--sp-lg) var(--sp-xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xl);
    z-index: 9999;
    flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; opacity: 0.9; flex: 1; }
.cookie-banner a { color: #8ab4f8; }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--link);
    color: #fff;
    border: none;
    padding: 12px 10px;
    border-radius: 2px;
    font-size: 13.12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-cookie-reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 10px;
    border-radius: 2px;
    font-size: 13.12px;
    font-weight: 600;
    cursor: pointer;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    padding: var(--sp-md) 0 0;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* ── RELATED ARTICLES ── */
.related-section { padding: var(--sp-section) 0 var(--sp-xxl); }
.related-section .section-title { margin-bottom: var(--sp-xl); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .container { padding: 0 var(--sp-xl); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-md); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: var(--sp-sm) 0; border-bottom: 1px solid var(--hairline); }
    .nav-toggle { display: flex; }
    .card-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-h1 { font-size: 28px; }
    .section-title { font-size: 24px; }
    .sig-coral, .sig-forest, .sig-dark { padding: var(--sp-xl); }
    .sig-coral .sig-h2, .sig-forest .sig-h2, .sig-dark .sig-h2 { font-size: 24px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-md); }
    .form-row { grid-template-columns: 1fr; }
    .article-content h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
    .footer-bottom-inner { flex-direction: column; gap: var(--sp-xs); }
    .hero-band { padding: var(--sp-xxl) 0; }
    .section { padding: var(--sp-xxl) 0; }
}
