*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-base: 16px;
    --spacing-md: 20px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 80px;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-item a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s ease;
}

.nav-item a:hover,
.nav-item--active a {
    color: var(--ink);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--primary-active);
    color: var(--on-primary);
}

.btn--secondary {
    background: var(--surface-card);
    color: var(--ink);
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
}

.btn--secondary:hover {
    background: var(--canvas-soft);
    color: var(--ink);
}

.btn--sm {
    font-size: 13px;
    padding: 7px 14px;
    height: 34px;
}

.hero {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 860px;
    margin-bottom: var(--spacing-lg);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: var(--spacing-xl);
}

.hero-image {
    margin-top: var(--spacing-xxl);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

.hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.section {
    padding: var(--spacing-section) 0;
}

.section--alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
}

.section-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
}

.section-head {
    margin-bottom: var(--spacing-xxl);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.card--article {
    padding: 0;
    overflow: hidden;
}

.card--article .card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card--article:hover .card-image img {
    transform: scale(1.03);
}

.card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-xs);
}

.card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--primary);
}

.card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
}

.card-link {
    display: inline-block;
    margin-top: var(--spacing-base);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.card-link:hover {
    color: var(--primary-active);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-sm);
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-base);
    font-size: 20px;
}

.card-feat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.card-feat-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.article-header {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.article-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

.article-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.4px;
    color: var(--ink);
    max-width: 820px;
    margin-bottom: var(--spacing-base);
}

.article-intro {
    font-size: 18px;
    line-height: 1.5;
    color: var(--body);
    max-width: 660px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--hairline-soft);
    font-size: 13px;
    color: var(--muted);
}

.article-hero-image {
    margin-top: var(--spacing-xxl);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-hero-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-image-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.article-body {
    padding: var(--spacing-section) 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xxl);
    align-items: start;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-xl);
}

.article-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-active);
}

.article-content strong {
    font-weight: 600;
    color: var(--body-strong);
}

.article-info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.article-info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-sm);
}

.article-info-box p,
.article-info-box li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
}

.sidebar-widget-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-links a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--body);
}

.sidebar-links a:hover {
    color: var(--primary);
}

.sidebar-updated {
    font-size: 13px;
    color: var(--muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    font-size: 14px;
}

.data-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-base);
    border-bottom: 1px solid var(--hairline-strong);
    background: var(--canvas-soft);
}

.data-table td {
    padding: var(--spacing-sm) var(--spacing-base);
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
    line-height: 1.4;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface-strong);
    padding: 2px 6px;
    border-radius: var(--rounded-xs);
}

.related-articles {
    padding: var(--spacing-section) 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
}

.contact-section {
    padding: var(--spacing-section) 0;
}

.form-group {
    margin-bottom: var(--spacing-base);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.15s ease;
}

.form-input {
    padding: 12px 16px;
    height: 44px;
}

.form-textarea {
    padding: 12px 16px;
    min-height: 140px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.form-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-success {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    text-align: center;
    display: none;
}

.form-success.visible {
    display: block;
}

.form-success p {
    font-size: 16px;
    color: var(--semantic-success);
    font-weight: 500;
}

.form-loading {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--muted);
    font-size: 14px;
}

.form-loading.visible {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--hairline);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.disclaimer {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-sm);
    line-height: 1.4;
}

.page-header {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    border-bottom: 1px solid var(--hairline);
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted);
}

.page-content {
    padding: var(--spacing-section) 0;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.page-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
    max-width: 720px;
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-xl);
    max-width: 720px;
}

.page-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.updated-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: var(--spacing-base);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    z-index: 999;
    padding: var(--spacing-base) var(--spacing-lg);
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.cookie-inner p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.cookie-inner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px var(--spacing-lg) var(--spacing-xxl);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xl);
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-address {
    font-style: normal;
}

.footer-address p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-xxl);
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--ink);
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--hairline-strong);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xxl) 0;
}

.stat-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-xs);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
        letter-spacing: -1.4px;
    }

    .article-title {
        font-size: 42px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--spacing-base) 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 16px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -0.72px;
    }

    .section-title {
        font-size: 28px;
    }

    .article-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid--2 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .article-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
