@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;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
}

html {
    font-family: var(--font-sans);
    background-color: var(--canvas);
    color: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1;
}

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

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

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

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 20px;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
}

/* HERO */
.hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* SECTION */
.section {
    padding: 80px 0;
}

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

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

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

/* ARTICLE CARDS GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-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;
}

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

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

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 10px;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
    margin-bottom: 16px;
}

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

.article-card-link {
    display: block;
}

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

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

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

.feature-card-icon {
    width: 40px;
    height: 40px;
    background: var(--surface-strong);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-card-text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
}

/* ARTICLE PAGE */
.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hairline-soft);
}

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

.article-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
}

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

.article-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}

.article-intro {
    font-size: 18px;
    color: var(--body);
    max-width: 680px;
    line-height: 1.6;
}

.article-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.article-body {
    max-width: 720px;
}

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

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
    line-height: 1.3;
}

.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 20px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body img {
    border-radius: var(--radius-lg);
    margin: 28px 0;
    border: 1px solid var(--hairline);
}

.article-body .caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -16px;
    margin-bottom: 28px;
}

.article-info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 32px 0;
}

.article-info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.article-info-box ul {
    margin-left: 16px;
}

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

.article-data-table th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline-strong);
}

.article-data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
}

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

/* RELATED ARTICLES */
.related-section {
    padding: 60px 0;
    border-top: 1px solid var(--hairline-soft);
    margin-top: 60px;
}

/* CONTACT FORM */
.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 560px;
}

.contact-section h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.contact-section p {
    font-size: 15px;
    color: var(--body);
    margin-bottom: 28px;
}

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

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

.form-control {
    width: 100%;
    background: var(--canvas);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--ink);
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}

.form-control:focus {
    border-color: var(--ink);
}

.form-control.textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

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

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 48px 0 32px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

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

.footer-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 260px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

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

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

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

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}

.footer-legal-links a:hover {
    color: var(--body);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 560px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 24px rgba(38,37,30,0.15);
}

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

.cookie-banner p {
    font-size: 14px;
    color: #d6d5cc;
    line-height: 1.55;
    margin-bottom: 16px;
}

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

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

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

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

.btn-cookie-reject {
    background: transparent;
    color: #d6d5cc;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 9px 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.btn-cookie-reject:hover {
    border-color: rgba(255,255,255,0.5);
}

/* PAGE HERO (for inner pages) */
.page-hero {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.9px;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.15;
}

.page-hero p {
    font-size: 17px;
    color: var(--body);
    max-width: 520px;
    line-height: 1.6;
}

/* PAGE CONTENT */
.page-content {
    padding: 60px 0 80px;
}

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

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

.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 720px;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px 20px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    max-width: 720px;
}

.page-content li {
    margin-bottom: 6px;
}

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

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--body);
}

.breadcrumb-sep {
    color: var(--muted-soft);
}

/* DISCLAIMER BOX */
.disclaimer {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 32px 0;
    max-width: 720px;
}

/* BACK LINK */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--body);
}

/* UPDATE DATE */
.update-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline-soft);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .section-title {
        font-size: 28px;
    }

    .articles-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .article-title {
        font-size: 30px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 540px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-section {
        padding: 24px;
    }
}
