@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede9e4;
    --hairline: #d3cec6;
    --hairline-soft: #e0dbd4;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --accent: #ff5600;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-xxl: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVIGATION ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 56px;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-muted);
    padding: 6px 10px;
    border-radius: var(--rounded-md);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px;
    z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ink-muted);
    border-radius: var(--rounded-md);
}
.mobile-menu a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 64px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.6px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    letter-spacing: -0.1px;
    margin-bottom: 32px;
}

.hero-meta {
    font-size: 13px;
    color: var(--ink-subtle);
}

.hero-image-card {
    background: var(--surface-1);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--hairline);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--ink-muted);
    max-width: 600px;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 40px;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-1);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-image {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
    background: var(--surface-2);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-meta {
    font-size: 12px;
    color: var(--ink-tertiary);
    border-top: 1px solid var(--hairline-soft);
    padding-top: 16px;
    margin-top: auto;
}

.card-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.card-link:hover { color: var(--ink-muted); }

/* ===== INFO STRIP ===== */
.info-strip {
    background: var(--inverse-canvas);
    padding: 64px 0;
    color: var(--inverse-ink);
}

.info-strip .section-title { color: var(--inverse-ink); }
.info-strip .section-eyebrow { color: rgba(255,255,255,0.55); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.info-item-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--inverse-ink);
    line-height: 1.5;
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface-1);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    padding: 28px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--canvas);
    border-radius: var(--rounded-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 0;
}

.article-breadcrumb {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.article-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.article-breadcrumb span { color: var(--ink-tertiary); }

.article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-subtle);
    background: var(--surface-2);
    border-radius: var(--rounded-xs);
    padding: 3px 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
    max-width: 780px;
}

.article-lead {
    font-size: 18px;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 24px;
}

.article-meta-bar {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 13px;
    color: var(--ink-subtle);
}

.article-body {
    padding: 56px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 40px 0 16px;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 16px;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
}

.article-content li {
    font-size: 16px;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-content .callout {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.article-content .callout p { margin-bottom: 0; font-size: 15px; }

.article-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.article-content .data-table th {
    background: var(--surface-2);
    font-weight: 500;
    color: var(--ink);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}
.article-content .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--ink);
    vertical-align: top;
}
.article-content .data-table tr:last-child td { border-bottom: none; }

.article-image-block {
    background: var(--surface-1);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--hairline);
    overflow: hidden;
    margin: 32px 0;
}
.article-image-block img { width: 100%; height: auto; }
.article-image-caption {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--ink-subtle);
    border-top: 1px solid var(--hairline);
}

.article-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--surface-1);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    padding: 24px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.1px;
}

.sidebar-toc {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toc a {
    font-size: 13px;
    color: var(--ink-muted);
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s;
}
.sidebar-toc a:hover { color: var(--ink); text-decoration: none; }

.sidebar-ref-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-ref-list a {
    font-size: 13px;
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.sidebar-ref-list a:hover { color: var(--ink); }

/* ===== CONTACT FORM ===== */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.form-card {
    background: var(--surface-1);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--hairline);
    padding: 40px;
}

.form-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 44px;
}
.form-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.form-input::placeholder { color: var(--ink-tertiary); }

textarea.form-input {
    resize: vertical;
    min-height: 110px;
}

.btn-primary {
    background: var(--ink);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 20px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    display: none;
}
.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}
.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.contact-info-block { padding-top: 8px; }
.contact-info-block .section-title { font-size: 28px; margin-bottom: 20px; }
.contact-info-block p { font-size: 15px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 24px; }

.contact-detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.contact-detail-text { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.contact-detail-text strong { color: var(--ink); display: block; font-weight: 500; font-size: 13px; margin-bottom: 2px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 640px;
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    border-radius: var(--rounded-xl);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cookie-text {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    flex-grow: 1;
}
.cookie-text a { color: #fff; text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    min-height: 36px;
}
.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: var(--rounded-md);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    min-height: 36px;
}
.btn-cookie-accept:hover { opacity: 0.9; }
.btn-cookie-reject:hover { background: rgba(255,255,255,0.08); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 56px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
}

.footer-brand-desc {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.6;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    color: var(--ink-subtle);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--hairline-soft);
    padding-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.footer-legal {
    display: flex;
    gap: 16px;
}
.footer-legal a {
    font-size: 12px;
    color: var(--ink-tertiary);
    transition: color 0.15s;
}
.footer-legal a:hover { color: var(--ink-muted); text-decoration: none; }

/* ===== STATIC PAGES ===== */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-updated {
    font-size: 13px;
    color: var(--ink-subtle);
}

.page-body {
    padding: 56px 0 80px;
    max-width: 720px;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-body p {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-body ul, .page-body ol {
    margin: 0 0 16px 22px;
}

.page-body li {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ===== RELATED ARTICLES ===== */
.related-section {
    background: var(--surface-2);
    padding: 56px 0;
    border-top: 1px solid var(--hairline);
}

.related-section .section-title {
    font-size: 24px;
    margin-bottom: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-title { font-size: 42px; }
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-sidebar { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-image-card { display: none; }
    .hero-title { font-size: 34px; letter-spacing: -0.8px; }
    .card-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .section-title { font-size: 28px; }
    .article-title { font-size: 30px; }
    .form-card { padding: 24px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
    .page-title { font-size: 30px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 24px; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
