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

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 {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* NAV */
.site-nav {
    background-color: 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: 17px;
    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);
    line-height: 1.4;
    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-color: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

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

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

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

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

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

.section-alt {
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.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;
    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: 560px;
    margin-bottom: 48px;
}

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

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-canvas {
    background-color: var(--canvas);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.card p, .card-canvas p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

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

.card-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: var(--surface-strong);
    margin-bottom: 8px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ARTICLE CARDS */
.article-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

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

.article-card-img {
    aspect-ratio: 16/9;
    background-color: var(--surface-strong);
    overflow: hidden;
}

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

.article-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

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

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

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

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

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

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

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

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

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

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

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

.article-body .article-img img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

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

.article-body .info-box {
    background-color: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    margin: 28px 0;
}

.article-body .info-box p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 0;
}

.article-body .info-box strong {
    color: var(--ink);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
    padding: 0 0 80px;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-box {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    margin-bottom: 16px;
}

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

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

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

.sidebar-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

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

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

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

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

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

.data-table td:first-child {
    font-weight: 500;
    color: var(--ink);
}

/* FORM */
.contact-section {
    padding: 80px 0;
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

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

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

.field-error {
    font-size: 12px;
    color: var(--semantic-error);
    display: none;
}

.field-error.visible {
    display: block;
}

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

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

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

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    display: none;
}

.form-message.success {
    background-color: #e8f7f1;
    border: 1px solid #9fd4bd;
    color: var(--semantic-success);
    display: block;
}

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

/* TEXT UTILITIES */
.text-muted {
    color: var(--muted);
}

.text-ink {
    color: var(--ink);
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 13px;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

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

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

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

.breadcrumb-sep {
    color: var(--hairline-strong);
}

/* FOOTER */
.site-footer {
    background-color: 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: 40px;
    margin-bottom: 48px;
}

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

.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;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

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

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background-color: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    box-shadow: 0 4px 24px rgba(38,37,30,0.08);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

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

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

.btn-cookie-accept {
    background-color: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
}

.btn-cookie-reject {
    background-color: var(--surface-card);
    color: var(--body);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
}

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

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

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

.page-body {
    max-width: 720px;
    padding-bottom: 80px;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 12px;
}

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

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

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--hairline-soft);
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-hamburger {
        display: flex;
    }

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

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .article-header h1 {
        font-size: 30px;
    }

    .page-header h1 {
        font-size: 30px;
    }

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }
}
