@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;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

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

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { display: block; max-width: 100%; height: auto; }

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

/* ========== TOP NAV ========== */
.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-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
}

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

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

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

.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { 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;
}

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

.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: 20px;
}

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

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.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: var(--rounded-pill);
    padding: 4px 10px;
    line-height: 1.4;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

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

/* ========== SECTION STYLES ========== */
.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;
    display: block;
}

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

.section-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 48px;
}

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

/* ========== ARTICLE CARDS ========== */
.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;
    transition: border-color 0.15s;
}

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

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-card-body {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-card-date {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

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

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

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

.link-arrow:hover { color: var(--primary); }
.link-arrow::after { content: ' →'; }

/* ========== FEATURE CARDS ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

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

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

/* ========== INFO BLOCK ========== */
.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.info-block-text h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

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

.info-block-text p:last-child { margin-bottom: 0; }

.info-block-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.info-block-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* ========== ARTICLE PAGE ========== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding: 80px 0;
}

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

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

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

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

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

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

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

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

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

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 8px;
}

.article-body a { color: var(--ink); text-decoration: underline; }
.article-body a:hover { color: var(--primary); }

.article-infobox {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

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

.article-infobox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-infobox li {
    font-size: 14px;
    color: var(--body);
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.article-infobox li:last-child { border-bottom: none; padding-bottom: 0; }
.article-infobox li strong { color: var(--ink); font-weight: 600; }

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

.sidebar-articles { list-style: none; padding: 0; margin-bottom: 24px; }

.sidebar-articles li { 
    border-bottom: 1px solid var(--hairline-soft);
    padding: 12px 0;
}

.sidebar-articles li:first-child { padding-top: 0; }
.sidebar-articles li:last-child { border-bottom: none; }

.sidebar-articles a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.sidebar-articles a:hover { color: var(--ink); }

.article-sources {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

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

.article-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sources li {
    font-size: 13px;
    color: var(--body);
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-sources li:last-child { border-bottom: none; }
.article-sources a { color: var(--body); text-decoration: underline; font-size: 13px; }
.article-sources a:hover { color: var(--ink); }

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

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

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 100px;
}

.contact-detail-value {
    font-size: 14px;
    color: var(--body);
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 0;
}

.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;
    height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
}

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

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

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

.form-error-msg {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
    display: none;
    background: #f0faf6;
    border: 1px solid #b8e2d4;
    border-radius: var(--rounded-md);
    padding: 16px;
    font-size: 14px;
    color: var(--semantic-success);
    margin-top: 16px;
}

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

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

.page-header .page-sub {
    font-size: 16px;
    color: var(--body);
}

.page-content {
    padding: 64px 0;
    max-width: 800px;
}

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

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

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

.page-content ul, .page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

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

.page-content a { color: var(--ink); text-decoration: underline; }

.update-date {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 12px;
    margin-bottom: 32px;
}

/* ========== 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(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

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

.footer-col h4 {
    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; padding: 0; margin: 0; }

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

.footer-col a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

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

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

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

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

.footer-bottom-links { display: flex; gap: 24px; }

/* ========== COOKIE BANNER ========== */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 800px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

#cookie-banner p {
    font-size: 14px;
    color: #ccc9bf;
    line-height: 1.5;
    flex: 1;
}

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

.cookie-actions { display: flex; gap: 12px; 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: 'Inter', sans-serif;
    transition: background 0.15s;
    white-space: nowrap;
}

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

.btn-cookie-reject {
    background: transparent;
    color: #ccc9bf;
    border: 1px solid #4a4840;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.btn-cookie-reject:hover { border-color: #807d72; color: var(--canvas); }

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    list-style: none;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: '/'; color: var(--muted-soft); font-size: 13px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { font-size: 13px; color: var(--body); }

/* ========== DISCLAIMER ========== */
.disclaimer {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 32px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-band h1 { font-size: 56px; letter-spacing: -1.4px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-hamburger { display: flex; }
    .nav-menu.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: 0;
    }
    .nav-menu.open li { border-bottom: 1px solid var(--hairline-soft); }
    .nav-menu.open a { display: block; padding: 12px 0; font-size: 16px; }

    .hero-band { padding: 48px 0; }
    .hero-band h1 { font-size: 36px; letter-spacing: -0.9px; }
    .hero-image-wrap { max-height: 280px; }
    .hero-image-wrap img { height: 280px; }

    .section { padding: 48px 0; }
    .section-title { font-size: 28px; letter-spacing: -0.5px; }

    .articles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .info-block { grid-template-columns: 1fr; gap: 32px; }
    .info-block-img img { height: 240px; }

    .article-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-header h1 { font-size: 28px; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }

    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
