@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::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;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--canvas);
    color: var(--body);
    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);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

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

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.logo-dot { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu li a {
    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-menu li a:hover,
.nav-menu li a[aria-current="page"] {
    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-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    padding: 80px 0 80px;
    border-bottom: 1px solid var(--hairline);
}

.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 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero-title em {
    font-style: normal;
    color: var(--primary);
}

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

.hero-image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 80px 0;
}

.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;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.72px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

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

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img { transform: scale(1.03); }

.article-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-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: 3px 10px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 10px;
}

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

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

.info-item {
    background: var(--surface-card);
    padding: 32px 28px;
}

.info-item-icon {
    font-size: 22px;
    margin-bottom: 12px;
}

.info-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.info-item-text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
}

.article-page {
    padding: 64px 0 80px;
}

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

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

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }

.article-header { margin-bottom: 40px; }

.article-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: 3px 10px;
    margin-bottom: 16px;
}

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

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}

.article-hero-image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
    aspect-ratio: 16/7;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content { font-size: 16px; color: var(--body); line-height: 1.7; }
.article-content h2 { font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -0.325px; margin: 40px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary); }

.article-content .callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 15px;
    color: var(--body-strong);
}

.article-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.article-content .data-table th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-strong);
}

.article-content .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
}

.article-content .data-table tr:last-child td { border-bottom: none; }

.article-content .data-table-wrap {
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    margin: 32px 0;
}

.article-content .data-table-wrap .data-table { margin: 0; }

.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--hairline);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.form-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.11px;
    margin-bottom: 24px;
}

.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(--canvas-soft);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 10px 16px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    height: 44px;
    transition: border-color 0.15s;
    outline: none;
}

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    height: 44px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary); color: var(--on-primary); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }

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

.form-status.success {
    display: block;
    background: #e8f5f0;
    color: var(--success);
    border: 1px solid #b8ddd2;
}

.form-status.error {
    display: block;
    background: #fdf0f3;
    color: var(--error);
    border: 1px solid #f5c2cc;
}

.contact-info-block { padding-top: 8px; }
.contact-info-block h2 { font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -0.325px; margin-bottom: 16px; }
.contact-info-block p { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 24px; }
.contact-info-item { margin-bottom: 16px; font-size: 15px; }
.contact-info-item strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.page-section {
    padding: 64px 0 80px;
}

.page-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    margin-bottom: 8px;
}

.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
}

.page-content { font-size: 16px; color: var(--body); line-height: 1.7; }
.page-content h2 { font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.11px; margin: 36px 0 14px; }
.page-content h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.page-content p { margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 260px;
}

.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); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 720px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(38,37,30,0.15);
    flex-wrap: wrap;
}

.cookie-banner p { font-size: 14px; color: var(--canvas); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner a { color: var(--canvas); text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    height: 36px;
    transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
    background: transparent;
    color: var(--muted-soft);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--rounded-md);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    height: 36px;
    transition: color 0.15s, border-color 0.15s;
}

.btn-cookie-reject:hover { color: var(--canvas); border-color: rgba(255,255,255,0.4); }

.disclaimer {
    background: var(--surface-strong);
    border-top: 1px solid var(--hairline);
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 40px; letter-spacing: -0.8px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { 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;
        padding: 12px 24px 20px;
        gap: 4px;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li a { display: block; padding: 10px 12px; }
    .hero { padding: 48px 0; }
    .hero-title { font-size: 32px; letter-spacing: -0.5px; }
    .section { padding: 56px 0; }
    .section-title { font-size: 28px; }
    .articles-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 28px; }
    .contact-form { padding: 28px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
}

@media (max-width: 480px) {
    .container, .nav-inner { padding: 0 16px; }
    .hero-title { font-size: 26px; }
    .section-title { font-size: 24px; }
    .article-title { font-size: 24px; }
    .page-title { font-size: 26px; }
}
