@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;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
}

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

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background-color: var(--canvas);
    -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);
    height: 64px;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    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;
}

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

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

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

.hero 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-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-image {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
}

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

/* SECTION TITLES */
.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;
    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;
}

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

.section-alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

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

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

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

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

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

/* ARTICLES GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

/* INFO BLOCKS */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.info-split.reverse {
    direction: rtl;
}

.info-split.reverse > * {
    direction: ltr;
}

.info-split img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--hairline);
}

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

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

.info-content ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.info-content ul li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--body);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    padding-left: 16px;
    position: relative;
}

.info-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.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);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    height: 44px;
    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::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

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

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

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

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

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

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

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

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

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

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-top: 12px;
    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);
    transition: color 0.15s;
}

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

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

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 16px 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner p {
    font-size: 14px;
    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);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

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

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

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

/* ARTICLE PAGE */
.article-hero {
    padding: 48px 0 0;
}

.article-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--hairline);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 16px;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

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

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

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

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

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

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

.article-content img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    margin: 24px 0;
}

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

.article-content th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline-strong);
}

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

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

.article-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.related-articles {
    padding: 64px 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
}

/* PAGE (about/privacy/terms) */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

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

.page-content .updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 36px 0 12px;
}

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

.page-content ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

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

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 56px;
        letter-spacing: -1.5px;
    }

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

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

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

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

    .info-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-split.reverse {
        direction: ltr;
    }

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

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

    .nav-hamburger {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

@media (max-width: 640px) {
    .cards-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-image img {
        height: 240px;
    }
}
