@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 {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0;
    background: var(--canvas);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.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(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
}

.hero-image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.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-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
    margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--hairline-strong);
}

.card-image {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 16px;
}

.card-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* INFO BLOCKS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-block {
    border-top: 2px solid var(--primary);
    padding-top: 20px;
}

.info-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

/* TABLE */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface-card);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--canvas-soft);
    border-bottom: 1px solid var(--hairline);
}

.data-table td {
    padding: 12px 16px;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--canvas-soft);
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--surface-strong);
    color: var(--ink);
    border-radius: var(--rounded-pill);
    padding: 3px 8px;
}

.badge-green {
    background: #d4edda;
    color: #1f6b3a;
}

.badge-yellow {
    background: #fff3cd;
    color: #856404;
}

/* ARTICLE PAGE */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 760px;
}

.article-header .article-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-image {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.article-image figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-block {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-block h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
}

.sidebar-block ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
}

.sidebar-block ul li:last-child {
    border-bottom: none;
}

.sidebar-block ul li a {
    color: var(--body);
    font-size: 14px;
}

.sidebar-block ul li a:hover {
    color: var(--primary);
}

/* FORM */
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 640px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    height: 44px;
    transition: border-color 0.15s;
    outline: none;
}

.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: 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-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    display: none;
    background: #d4edda;
    color: #1f6b3a;
    border: 1px solid #b8dcc4;
    border-radius: var(--rounded-md);
    padding: 16px;
    margin-top: 16px;
    font-size: 14px;
}

/* 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 h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    max-width: 280px;
}

.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;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-col ul li 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: 12px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom-links a:hover {
    color: var(--ink);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 200;
    display: none;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    min-width: 200px;
}

.cookie-text a {
    color: #f7f7f4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(247,247,244,0.3);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
    margin-bottom: 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li::after {
    content: '/';
    color: var(--hairline-strong);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li a {
    color: var(--muted);
}

.breadcrumb li a:hover {
    color: var(--ink);
}

/* PAGE HEADER */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    max-width: 560px;
}

/* PROSE for pages */
.prose {
    max-width: 760px;
    padding: 48px 0;
}

.prose h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline-soft);
}

.prose h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

.prose p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 20px;
}

.prose ul, .prose ol {
    margin: 0 0 20px 24px;
}

.prose li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 6px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    padding: 12px 0;
}

.disclaimer-bar p {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* LOADER */
.btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .section-title {
        font-size: 28px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: relative;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form {
        padding: 24px;
    }

    .article-header h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .page-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
