: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;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-pill: 9999px;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background: var(--canvas);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.11px;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.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);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 820px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
}

.hero-image {
    margin-top: 48px;
    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(--section) 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.card-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--hairline-soft);
}

.card-img img {
    width: 100%;
    height: 200px;
    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: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 16px;
}

.card-meta {
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--hairline);
    padding-top: 16px;
    margin-top: 8px;
}

.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
}

.article-header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb span { color: var(--hairline-strong); }

.article-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.44px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-feat-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
}

.article-feat-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-feat-img figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    border-top: 1px solid var(--hairline);
    font-family: var(--font-sans);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    line-height: 1.25;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 8px;
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin: 32px 0;
}

.info-box-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.info-box p {
    margin-bottom: 0;
}

.inline-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin: 32px 0;
}

.inline-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.inline-img figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    border-top: 1px solid var(--hairline);
}

.related {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
    padding: 64px 0;
}

.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.44px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--body);
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 14px;
}

.page-body p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 18px;
}

.page-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 18px;
}

.page-body li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 6px;
}

.contact-form-section {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
    padding: 64px 0;
}

.contact-form-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-form-inner h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-form-inner p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s;
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--semantic-error);
}

.field-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-active);
    color: var(--on-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
}

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

.form-submit-btn {
    width: 100%;
    height: 44px;
    font-size: 15px;
}

.form-message {
    display: none;
    padding: 14px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    margin-top: 16px;
}

.form-message.success {
    background: #e6f4ef;
    color: var(--semantic-success);
    border: 1px solid #b5ddd1;
}

.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: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

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

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

.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--hairline);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    z-index: 999;
    padding: 20px 24px;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    color: var(--canvas-soft);
    line-height: 1.5;
}

.cookie-inner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btns .btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    height: 36px;
    font-size: 13px;
}

.cookie-btns .btn-secondary {
    background: transparent;
    color: var(--canvas);
    border-color: var(--canvas-soft);
    height: 36px;
    font-size: 13px;
}

.cookie-btns .btn-secondary:hover {
    border-color: var(--canvas);
    color: var(--canvas);
}

.features {
    background: var(--canvas);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.feature-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: var(--hairline);
    margin: 0;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; letter-spacing: -1.68px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .article-header h1 { font-size: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        z-index: 99;
    }

    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px 24px; }
    .nav-toggle { display: flex; }

    .site-nav { position: relative; }

    .hero h1 { font-size: 40px; letter-spacing: -1.2px; }
    .hero-image { display: none; }
    .section-title { font-size: 28px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .article-header h1 { font-size: 32px; letter-spacing: -0.96px; }
    .page-header h1 { font-size: 32px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 32px; letter-spacing: -0.96px; }
    .article-meta { flex-direction: column; gap: 4px; }
}
