@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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--canvas);
    color: var(--body);
    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; }

code, pre { font-family: 'JetBrains Mono', monospace; }

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

/* TOP NAV */
.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.nav-brand span { color: var(--primary); }

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

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

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
}

.nav-hamburger svg { width: 24px; height: 24px; }

/* HERO */
.hero-band {
    padding: 80px 0;
    background: var(--canvas);
}

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

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

.hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    overflow: hidden;
    margin-top: 48px;
}

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

/* SECTIONS */
section { padding: 80px 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;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-body {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    max-width: 640px;
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.15s;
}

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

.feature-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover { color: var(--primary-active); }

/* ARTICLE GRID */
.articles-section { padding: 80px 0; }
.articles-section .section-divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin-bottom: 48px;
}

/* CONTENT AREA */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.content-main h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.content-main h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 12px;
}

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

.content-main ul, .content-main ol {
    margin: 0 0 20px 24px;
    color: var(--body);
}

.content-main li { margin-bottom: 8px; line-height: 1.5; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.article-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    overflow: hidden;
    margin-bottom: 32px;
}

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

.article-img figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 16px;
    border-top: 1px solid var(--hairline-soft);
    background: var(--canvas-soft);
}

/* SIDEBAR */
.content-sidebar { position: sticky; top: 80px; }

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; }

.sidebar-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
    color: var(--body);
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card li a { color: var(--body); }
.sidebar-card li a:hover { color: var(--ink); }

.external-link::after {
    content: ' ↗';
    font-size: 11px;
    color: var(--muted-soft);
}

/* HIGHLIGHT BOX */
.highlight-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 32px 0;
}

.highlight-box p {
    font-size: 16px;
    color: var(--body-strong);
    line-height: 1.5;
    margin: 0;
}

/* DATA TABLE */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--canvas-soft);
    border-bottom: 1px solid var(--hairline);
    font-weight: 600;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.88px;
    text-transform: uppercase;
}

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

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

/* CONTACT FORM */
.contact-section { padding: 80px 0; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.form-intro h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.form-intro p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
}

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

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

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

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--canvas-soft);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    height: 44px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}

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

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

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

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    height: 40px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    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(--semantic-success); display: block; }
.form-status.error { color: var(--semantic-error); display: block; }
.form-status.loading { color: var(--muted); 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 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-top: 12px;
    max-width: 240px;
}

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

.footer-col ul { list-style: none; }

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

.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding-top: 24px;
    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 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 999;
    display: none;
}

.cookie-banner.visible { display: block; }

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

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

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

.cookie-actions { display: flex; gap: 12px; }

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

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

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

/* PAGE HEADER */
.page-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

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

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

/* SIMPLE CONTENT */
.simple-content { max-width: 720px; }

.simple-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.simple-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.simple-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.simple-content ul, .simple-content ol {
    margin: 0 0 16px 24px;
    color: var(--body);
}

.simple-content li { margin-bottom: 8px; line-height: 1.5; }

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

/* INTRO BAND */
.intro-band {
    padding: 80px 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.intro-band .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.intro-band h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 20px;
}

.intro-band p { font-size: 16px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }

.intro-band img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--hairline);
}

/* STATS ROW */
.stats-row {
    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: 48px;
}

.stat-item {
    background: var(--surface-card);
    padding: 32px 24px;
    text-align: center;
}

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

.stat-item .stat-value {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .intro-band .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-band h1 { font-size: 32px; letter-spacing: -0.72px; }
    .hero-image img { height: 240px; }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
        gap: 16px;
        z-index: 99;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    section { padding: 48px 0; }
    .hero-band { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
