@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* TOP NAV */
.site-nav {
    background-color: 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%;
}

.site-nav__logo {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.site-nav__logo span {
    color: var(--primary);
}

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

.site-nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s;
}

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

.site-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

.site-nav__mobile {
    display: none;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
}

.site-nav__mobile.open {
    display: block;
}

.site-nav__mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-nav__mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

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

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

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

.hero__desc {
    font-size: 18px;
    color: var(--body);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 32px;
}

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

.hero__image {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

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

.section--alt {
    background-color: var(--surface-card);
}

.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;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.72px;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 16px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.5;
}

/* ARTICLE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.article-card {
    background-color: 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__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card__body {
    padding: 24px;
}

.article-card__tag {
    display: inline-block;
    background-color: var(--surface-strong);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

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

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

.article-card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* INFO BLOCKS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

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

.info-card__number {
    font-size: 36px;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: -0.72px;
    line-height: 1;
    margin-bottom: 12px;
}

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

.info-card__text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

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

.article-content h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.article-content .article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
}

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

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

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

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

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

.article-content img {
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-content .caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
}

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

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

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

.article-content tr:nth-child(even) td {
    background-color: var(--canvas-soft);
}

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

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

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

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

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

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

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

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

/* FORM */
.contact-form {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 680px;
}

.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-color: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    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::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

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

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

.btn-primary:disabled {
    opacity: 0.65;
    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: #e8f5f0;
    color: var(--semantic-success);
    border: 1px solid #b3ddd0;
    display: block;
}

.form-message.error {
    background-color: #fdeef1;
    color: var(--semantic-error);
    border: 1px solid #f0b9c5;
    display: block;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ink);
    color: var(--canvas);
    z-index: 999;
    padding: 20px 24px;
    display: none;
}

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

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

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

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
}

.btn-cookie-reject {
    background-color: transparent;
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: 1px solid rgba(247,247,244,0.3);
    cursor: pointer;
}

/* 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__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

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

.footer-brand__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 280px;
}

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

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

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

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

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

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

.page-header__desc {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
}

/* PROSE (for about/privacy/terms) */
.prose {
    max-width: 760px;
    padding: 64px 0;
}

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

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

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

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

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

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

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

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

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

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

.breadcrumb span {
    margin: 0 6px;
}

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

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

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

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

    .article-sidebar {
        position: static;
    }

    .hero__title {
        font-size: 42px;
    }
}

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

    .site-nav__hamburger {
        display: flex;
    }

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

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

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

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

    .hero__desc {
        font-size: 16px;
    }

    .section__title {
        font-size: 26px;
    }

    .contact-form {
        padding: 24px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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