@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;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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;
    min-height: 100vh;
}

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 */
.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nav-wordmark 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;
    line-height: 1.4;
    color: var(--body);
    transition: color 0.15s;
}

.nav-menu a:hover {
    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-top: 1px solid var(--hairline);
    padding: 16px 24px;
}

.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-band {
    padding: 80px 0;
    background: var(--canvas);
}

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

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

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

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

.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;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    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: 24px;
}

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

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

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

/* ARTICLE CARD */
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

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

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

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

.article-card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}

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

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

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

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta-cat {
    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;
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    margin-bottom: 48px;
    border: 1px solid var(--hairline);
}

.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: 48px 0 16px;
}

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

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

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
}

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

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    transition: color 0.15s;
}

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

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 32px 0;
}

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

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

.article-image-block {
    margin: 40px 0;
}

.article-image-block img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.article-image-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}

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

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

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

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

.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 20px;
}

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

.contact-detail {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.contact-detail strong {
    color: var(--ink);
    min-width: 60px;
}

.contact-form-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
}

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

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

.form-input {
    display: block;
    width: 100%;
    background: 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;
}

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

textarea.form-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-input::placeholder {
    color: var(--muted-soft);
}

.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
    display: none;
}

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

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

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

.form-success {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--success);
    margin-top: 16px;
    display: none;
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.about-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.about-text h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

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

/* STATIC PAGES (privacy, terms) */
.static-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    line-height: 1.25;
    color: var(--ink);
    margin: 48px 0 16px;
}

.static-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
}

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

.static-content ul {
    margin: 0 0 20px 24px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
}

.static-content li {
    margin-bottom: 8px;
}

.static-content a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
}

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

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

.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);
    transition: color 0.15s;
}

.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;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 28px;
    border-radius: var(--rounded-lg);
    max-width: 560px;
    width: calc(100% - 48px);
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

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

.cookie-banner a {
    color: var(--canvas);
    border-bottom: 1px solid rgba(247,247,244,0.4);
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

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

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

.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: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}

.cookie-reject:hover {
    border-color: rgba(247,247,244,0.6);
}

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

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

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

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

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

.related-section h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 32px;
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
}

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    padding: 12px 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

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

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

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

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

    .nav-hamburger {
        display: flex;
    }

    .hero-band {
        padding: 48px 0;
    }

    .hero-band h1 {
        font-size: 36px;
        letter-spacing: -0.9px;
    }

    .section {
        padding: 56px 0;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-header h1 {
        font-size: 34px;
        letter-spacing: -0.6px;
    }

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

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-band h1 {
        font-size: 30px;
    }

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

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

    .contact-form-card {
        padding: 24px;
    }
}
