@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;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--canvas);
    color: var(--body);
    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 24px; }

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1;
}
.nav-wordmark span { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul a { font-size: 15px; font-weight: 500; color: var(--ink); }

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}
.hero-label {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-image-wrap {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* SECTION LABELS */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* SECTIONS */
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-heading {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-body {
    font-size: 16px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.6;
}

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}
.card-body { font-size: 14px; color: var(--body); line-height: 1.5; }
.card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}
.card-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.card-img img { width: 100%; height: 200px; object-fit: cover; }

/* ARTICLE CARD LINK */
.article-card { display: block; text-decoration: none; transition: border-color 0.15s; }
.article-card:hover { border-color: var(--hairline-strong); }
.article-card:hover .card-title { color: var(--primary); }

/* FACTS */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; margin-top: 40px; }
.fact-item { background: var(--surface-card); padding: 28px 24px; }
.fact-num { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 8px; }
.fact-label { font-size: 14px; color: var(--body); }

/* DIAGRAM */
.diagram-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
    text-align: center;
}
.diagram-wrap img { max-width: 560px; margin: 0 auto; }
.diagram-caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; }
.article-header .article-label {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 20px;
}
.article-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}
.article-meta { font-size: 14px; color: var(--muted); }
.article-meta span { margin-right: 16px; }

.article-body { padding: 0 0 80px; }
.article-body .content-wrap { max-width: 720px; }
.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}
.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.35;
}
.article-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }

.article-body .callout {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}
.article-body .callout p { margin: 0; font-size: 15px; }

.article-img-block { margin: 40px 0; }
.article-img-block img { width: 100%; border-radius: 8px; border: 1px solid var(--hairline); }
.article-img-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; }
.article-body th { text-align: left; padding: 10px 14px; background: var(--canvas-soft); border: 1px solid var(--hairline); color: var(--ink); font-weight: 600; }
.article-body td { padding: 10px 14px; border: 1px solid var(--hairline); color: var(--body); }
.article-body tr:nth-child(even) td { background: var(--canvas-soft); }

.article-body .ref-list { list-style: none; margin: 0; padding: 0; }
.article-body .ref-list li { font-size: 14px; color: var(--body); padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.article-body .ref-list li:last-child { border-bottom: none; }
.article-body .ref-list a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* PAGE (about/privacy/terms) */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.15;
}
.page-body { padding: 56px 0 80px; }
.page-body .content-wrap { max-width: 720px; }
.page-body h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; }
.page-body p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.page-body ul { margin: 0 0 18px 24px; }
.page-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }
.page-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* CONTACT FORM */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline); }
.form-wrap {
    max-width: 560px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 40px;
    margin-top: 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);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { height: 100px; resize: vertical; }
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.form-status { margin-top: 16px; font-size: 14px; display: none; }
.form-status.success { color: var(--success); display: block; }
.form-status.error-msg { color: var(--error); display: block; }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-brand-name span { color: var(--primary); }
.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.3px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-soft);
    font-size: 13px;
    color: var(--muted);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 560px;
    width: calc(100% - 48px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
#cookie-banner p { font-size: 14px; line-height: 1.5; color: var(--canvas); }
#cookie-banner a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    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: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.15s;
}
.btn-cookie-reject:hover { color: var(--canvas); }
#cookie-banner.hidden { display: none; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* DISCLAIMER */
.disclaimer {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 40px 0 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero h1 { font-size: 36px; letter-spacing: -0.9px; }
    .hero { padding: 48px 0; }
    .hero-image-wrap img { height: 240px; }
    section { padding: 56px 0; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .article-title { font-size: 32px; letter-spacing: -0.5px; }
    .section-heading { font-size: 28px; }
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .page-title { font-size: 32px; }
}

@media (max-width: 640px) {
    .form-wrap { padding: 24px; }
    .hero h1 { font-size: 32px; }
}
