:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.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 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 6px 12px;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link--active {
    color: var(--ink);
    background: var(--surface-strong);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--rounded-md);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.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: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 32px;
}

.hero-img {
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
    font-family: var(--font-sans);
    line-height: 1;
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn--primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn--secondary {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
}

.btn--secondary:hover { background: var(--surface-strong); color: var(--ink); }

.btn--download {
    background: var(--ink);
    color: var(--canvas);
    height: 44px;
    padding: 12px 20px;
}

.btn--download:hover { background: #3a3930; color: var(--canvas); }

.section {
    padding: 80px 0;
}

.section--light { background: var(--canvas-soft); }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
    margin-bottom: 16px;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.card-link:hover { color: var(--primary-active); }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-img img { transform: scale(1.03); }

.article-card-body { padding: 24px; }

.article-card-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 10px;
}

.article-card-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    padding: 24px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
}

.feature-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
}

.feature-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.contact-section {
    padding: 80px 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}

.contact-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-info-value {
    font-size: 15px;
    color: var(--ink);
}

.form-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ink);
    font-family: var(--font-sans);
    transition: border-color 0.15s;
    outline: none;
    height: 44px;
}

.form-textarea {
    height: auto;
    resize: vertical;
    min-height: 100px;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--ink);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--semantic-error);
}

.form-error {
    font-size: 12px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.form-error.visible { display: block; }

.form-success {
    display: none;
    padding: 16px;
    background: #edfaf5;
    border: 1px solid #b3e8d4;
    border-radius: var(--rounded-md);
    color: var(--semantic-success);
    font-size: 14px;
    margin-top: 16px;
}

.form-success.visible { display: block; }

.form-submit {
    width: 100%;
    height: 44px;
    font-size: 15px;
    padding: 12px 20px;
}

.disclaimer {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
}

.page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}

.page-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.page-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--body);
    line-height: 1.55;
    max-width: 600px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
    padding: 64px 0;
}

.article-body h1 {
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -0.9px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.33px;
    color: var(--ink);
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
    letter-spacing: 0.08px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover { color: var(--primary-active); }

.article-img-block {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-img-block img {
    width: 100%;
    height: auto;
}

.article-img-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
}

.article-meta-item {
    font-size: 13px;
    color: var(--muted);
}

.article-sidebar {
    position: sticky;
    top: 84px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    font-size: 14px;
    color: var(--body);
    line-height: 1.45;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--ink); }

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-size: 14px;
    color: var(--body);
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: border-color 0.15s, color 0.15s;
}

.toc-link:hover,
.toc-link.active {
    color: var(--ink);
    border-left-color: var(--primary);
}

.highlight-box {
    background: var(--canvas-soft);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--ink);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.data-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--hairline);
}

.data-table td {
    padding: 12px 14px;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--canvas-soft); }

.content-section {
    padding: 80px 0;
}

.prose {
    max-width: 760px;
}

.prose h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.33px;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.prose ul,
.prose ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 6px;
}

.updated-notice {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
    max-width: 260px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

a.footer-link:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.cookie-banner.visible { display: flex; }

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.5;
}

.cookie-link { color: var(--primary); text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-actions .btn--primary {
    background: var(--primary);
    color: var(--on-primary);
}

.cookie-actions .btn--secondary {
    background: transparent;
    color: var(--canvas);
    border-color: rgba(255,255,255,0.3);
}

.cookie-actions .btn--secondary:hover {
    background: rgba(255,255,255,0.08);
    color: var(--canvas);
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--muted-soft); }

.schema-block { display: none; }

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 40px; }
    .cards-grid,
    .articles-grid,
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 32px; letter-spacing: -0.6px; }
    .section-title { font-size: 28px; }
    .page-title { font-size: 32px; }
    .cards-grid,
    .articles-grid,
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .cookie-banner { bottom: 12px; left: 12px; right: 12px; }
    .article-body h1 { font-size: 30px; }
    .article-body h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
    .hero-title { font-size: 28px; }
    .contact-section { padding: 48px 0; }
}
