:root {
    --primary: #181d26;
    --primary-active: #0d1218;
    --canvas: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #e0e2e6;
    --surface-dark: #181d26;
    --hairline: #dddddd;
    --ink: #181d26;
    --body-color: #333840;
    --muted: #41454d;
    --link: #1b61c9;
    --link-active: #1a3866;
    --on-primary: #ffffff;
    --coral: #aa2d00;
    --forest: #0a2e0e;
    --cream: #f5e9d4;
    --peach: #fcab79;
    --mint: #a8d8c4;
    --yellow: #f4d35e;
    --mustard: #d9a441;
    --r-xs: 2px;
    --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-width: 1280px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body-color);
    background: var(--canvas);
}

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

address { font-style: normal; }

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.12px;
}

.main-nav ul {
    display: flex;
    gap: var(--sp-lg);
}

.main-nav a {
    font-size: 14px;
    color: var(--ink);
    font-weight: 400;
}

.main-nav a.active,
.main-nav a:hover { color: var(--link); }

.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, opacity 0.2s;
}

.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: 16px;
    line-height: 1.5;
    color: var(--body-color);
    max-width: 560px;
    margin-bottom: var(--sp-xl);
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); 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;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

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

.section-band { padding: var(--sp-section) 0; }
.section-band--soft { background: var(--surface-soft); }
.section-band--strong { background: var(--surface-strong); }
.section-band--dark { background: var(--surface-dark); color: var(--on-primary); }
.section-band--coral { background: var(--coral); color: var(--on-primary); }
.section-band--cream { background: var(--cream); }
.section-band--forest { background: var(--forest); color: var(--on-primary); }

.section-band h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
    margin-bottom: var(--sp-md);
}

.section-band--dark h2,
.section-band--coral h2,
.section-band--forest h2 { color: var(--on-primary); }

.section-band p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: var(--sp-md);
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--sp-xl);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.article-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-card-body {
    padding: var(--sp-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-tag {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: var(--sp-xs);
}

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

.article-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body-color);
    flex: 1;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--sp-sm);
}

.article-card a.card-link {
    display: block;
    margin-top: var(--sp-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--link);
}

.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);
    background: var(--canvas);
    border: 1px solid var(--hairline);
}

.demo-card--peach { background: var(--peach); border-color: transparent; }
.demo-card--mint { background: var(--mint); border-color: transparent; }
.demo-card--cream { background: var(--cream); border-color: transparent; }
.demo-card--yellow { background: var(--yellow); border-color: transparent; }
.demo-card--mustard { background: var(--mustard); border-color: transparent; }

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

.demo-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body-color);
}

.demo-card img {
    border-radius: var(--r-sm);
    margin-bottom: var(--sp-sm);
    width: 100%;
}

.sig-card {
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
}

.sig-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}

.sig-card p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: var(--sp-xl);
}

.btn-secondary-ondark {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-secondary-ondark:hover { opacity: 0.9; color: var(--ink); }

.form-section { padding: var(--sp-section) 0; }

.form-section h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.form-section p {
    font-size: 14px;
    color: var(--body-color);
    margin-bottom: var(--sp-xl);
}

.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
    line-height: 1.4;
    height: 44px;
    width: 100%;
}

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

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #458fff;
    box-shadow: 0 0 0 2px rgba(69,143,255,0.2);
}

.article-page { padding: var(--sp-section) 0; }

.article-page .article-header { margin-bottom: var(--sp-xl); }

.article-page h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-md);
    max-width: 800px;
}

.article-page .article-meta { margin-bottom: var(--sp-xl); }

.article-page .article-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-md);
    margin-bottom: var(--sp-xxl);
}

.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: var(--sp-xxl) 0 var(--sp-md);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--sp-xl) 0 var(--sp-sm);
}

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

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

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

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

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

.article-body .highlight-box {
    background: var(--surface-soft);
    border-left: 3px solid var(--primary);
    padding: var(--sp-lg);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin: var(--sp-xl) 0;
}

.article-body .highlight-box p { margin: 0; }

.related-articles { padding: var(--sp-section) 0; background: var(--surface-soft); }

.related-articles h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-xl);
}

.cta-band {
    background: var(--surface-strong);
    border-radius: var(--r-lg);
    padding: var(--sp-xxl);
    text-align: center;
    margin: var(--sp-section) auto;
    max-width: var(--max-width);
}

.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.cta-band p {
    font-size: 14px;
    color: var(--body-color);
    margin-bottom: var(--sp-xl);
}

.page-content { padding: var(--sp-section) 0; max-width: 800px; }

.page-content h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--sp-xl);
}

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

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

.page-content ul {
    padding-left: var(--sp-lg);
    list-style: disc;
    margin-bottom: var(--sp-md);
}

.page-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body-color);
    margin-bottom: 4px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--sp-lg) var(--sp-xxl);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}

.cookie-banner a { color: var(--mint); }

.cookie-actions { display: flex; gap: var(--sp-xs); 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(--r-xs);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-legal-reject {
    background: transparent;
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    white-space: nowrap;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-section) 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
    padding-bottom: var(--sp-xxl);
}

.footer-col strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-sm);
}

.footer-col p,
.footer-col address {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.footer-col ul li { margin-bottom: 6px; }

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

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

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding: var(--sp-lg) 0;
}

.footer-legal p {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--sp-lg);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { color: var(--muted); }

@media (max-width: 1024px) {
    .card-grid,
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }

    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--canvas);
        z-index: 99;
        overflow-y: auto;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        padding: var(--sp-xl) var(--sp-lg);
        gap: 0;
    }

    .main-nav ul li { border-bottom: 1px solid var(--hairline); }

    .main-nav a {
        display: block;
        padding: var(--sp-md) 0;
        font-size: 16px;
    }

    .hero-band h1 { font-size: 28px; }
    .section-band h2,
    .sig-card h2,
    .form-section h2,
    .article-page h1 { font-size: 24px; }

    .card-grid,
    .demo-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }

    .cookie-banner {
        flex-direction: column;
        padding: var(--sp-md);
    }

    .cookie-actions { width: 100%; justify-content: flex-end; }
}
