@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;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --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-xl: 16px;
    --rounded-pill: 9999px;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-base: 16px;
    --spacing-md: 20px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 80px;
}

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; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* NAVIGATION */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-logo span.accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.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;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-xs);
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    display: block;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: var(--spacing-lg) var(--spacing-xl);
    z-index: 99;
    flex-direction: column;
    gap: var(--spacing-base);
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--body); padding: var(--spacing-xs) 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero-band {
    padding: var(--spacing-section) 0;
    background: var(--canvas);
}

.hero-content {
    max-width: 760px;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
}

.hero-band h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.hero-band .hero-sub {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: var(--spacing-xxl);
}

/* SECTION TITLES */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
}

/* CARDS */
.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.card-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

/* ARTICLE CARDS */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-xs);
}

.article-card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
}

.article-card-link {
    display: inline-block;
    margin-top: var(--spacing-base);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 2px;
    transition: border-color 0.15s, color 0.15s;
}

.article-card-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* FEATURE GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-base);
}

/* SECTION BANDS */
.section-band {
    padding: var(--spacing-section) 0;
}

.section-band--alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

/* DIVIDER */
.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* BADGE */
.badge {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
}

/* HERO IMAGE */
.hero-image-wrap {
    margin-top: var(--spacing-xxl);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ARTICLE PAGE */
.article-page {
    padding: var(--spacing-section) 0;
}

.article-page-header {
    max-width: 760px;
    margin-bottom: var(--spacing-xxl);
}

.article-page-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-lg);
}

.article-page-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.article-page-intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin-bottom: var(--spacing-section);
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-xxl);
    align-items: start;
}

.article-body {
    max-width: 680px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.article-body ul, .article-body ol {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
    list-style: disc;
}

.article-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
}

.article-body a:hover { color: var(--primary); border-color: var(--primary); }

.article-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
}

.sidebar-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
}

.sidebar-nav-list li {
    border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-nav-list li:last-child { border-bottom: none; }

.sidebar-nav-list a {
    display: block;
    padding: var(--spacing-xs) 0;
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.sidebar-nav-list a:hover { color: var(--ink); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: var(--spacing-base);
}

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid var(--hairline);
}

.data-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
    vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* INFO BOX */
.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: var(--rounded-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* FORM */
.contact-form-wrap {
    max-width: 560px;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.15s;
    height: 44px;
}

.form-group textarea { height: 120px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:active { background: var(--primary-active); }

.btn-download {
    display: inline-flex;
    align-items: center;
    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;
    transition: opacity 0.15s;
}

.btn-download:hover { opacity: 0.85; color: var(--canvas); }

.form-message {
    display: none;
    margin-top: var(--spacing-base);
    padding: var(--spacing-base);
    border-radius: var(--rounded-md);
    font-size: 14px;
    color: var(--semantic-success);
    background: #f0faf6;
    border: 1px solid #c3e6d8;
}

.form-message.visible { display: block; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: var(--spacing-lg) var(--spacing-xl);
    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: var(--spacing-xl);
    flex-wrap: wrap;
}

.cookie-text { font-size: 14px; line-height: 1.5; flex: 1; }
.cookie-text a { color: var(--canvas-soft); border-bottom: 1px solid rgba(247,247,244,0.3); }

.cookie-buttons { display: flex; gap: var(--spacing-xs); flex-shrink: 0; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(247,247,244,0.4);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.btn-cookie-reject:hover { border-color: var(--canvas); }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px var(--spacing-xl) 48px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.footer-brand-name span { color: var(--primary); }

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-col-links a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col-links a:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-base);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--ink); }

/* PAGE HEADER */
.page-header {
    padding: var(--spacing-xxl) 0 var(--spacing-section);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: var(--spacing-section);
}

.page-header h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
    max-width: 760px;
}

.page-header p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.about-body h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
    margin-top: var(--spacing-xxl);
}

.about-body h2:first-child { margin-top: 0; }

.about-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.about-body ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
}

.about-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

/* PRIVACY / TERMS */
.legal-body {
    max-width: 760px;
}

.legal-body h2 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.legal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.legal-body ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
}

.legal-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.legal-body a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.legal-body a:hover { color: var(--primary); }

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* SOURCES */
.sources-list {
    font-size: 13px;
    color: var(--muted);
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-base);
}

.sources-list li { margin-bottom: var(--spacing-xs); }
.sources-list a { color: var(--muted); border-bottom: 1px solid var(--hairline); font-size: 13px; }
.sources-list a:hover { color: var(--ink); }

/* CODE BLOCKS */
code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-xs);
    padding: 2px 6px;
    color: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
    .article-page-title { font-size: 42px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .article-content { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-base); }
    .hero-band h1 { font-size: 36px; letter-spacing: -0.72px; }
    .section-title { font-size: 28px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .articles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
    .article-page-title { font-size: 32px; letter-spacing: -0.72px; }
    .page-header h1 { font-size: 36px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .hero-band h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
