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

/* 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;
    line-height: 1.4;
}

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

.nav-menu a:hover {
    color: var(--primary);
}

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

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

.nav-mobile {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}

.nav-mobile.open {
    display: block;
}

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

.nav-mobile ul a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

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

.hero-band .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    line-height: 1.4;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 24px;
}

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

.hero-band .hero-sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.5;
    max-width: 520px;
    margin: 0 auto 32px;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

.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;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

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

.feature-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: 16px;
}

/* ARTICLE CARD */
.article-card {
    background: 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 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

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

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

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

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

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

/* ARTICLE PAGE */
.article-page {
    padding: 80px 0;
}

.article-header {
    max-width: 740px;
    margin: 0 auto 48px;
}

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

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

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

.article-hero-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

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

.article-content {
    max-width: 740px;
    margin: 0 auto;
}

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

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

.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    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.6;
    margin-bottom: 8px;
}

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

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

.article-content blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--surface-card);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-content blockquote p {
    font-size: 18px;
    color: var(--ink);
    font-style: italic;
    margin: 0;
}

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

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

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

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

.contact-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.form-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 40px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    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.error,
.form-group textarea.error {
    border-color: var(--semantic-error);
}

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

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

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

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

.form-success {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    text-align: center;
}

.form-success p {
    font-size: 16px;
    color: var(--semantic-success);
    font-weight: 500;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 16px 24px;
    z-index: 1000;
    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);
    border-bottom: 1px solid rgba(247,247,244,0.4);
}

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

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: none;
    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;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: 1px solid rgba(247,247,244,0.3);
    cursor: pointer;
    transition: border-color 0.15s;
}

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

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

.footer-brand .wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

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

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-col ul 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);
    line-height: 1.4;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 0;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb ul li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

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

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

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

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

/* STATIC PAGES */
.static-page {
    padding: 80px 0;
}

.static-page-header {
    max-width: 740px;
    margin: 0 auto 48px;
}

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

.static-page-header p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.5;
}

.static-content {
    max-width: 740px;
    margin: 0 auto;
}

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

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

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

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

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

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

.static-content a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ABOUT */
.about-hero {
    background: var(--canvas);
    padding: 80px 0 48px;
    text-align: center;
}

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

.about-hero p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* DISCLAIMER */
.disclaimer-bar {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    margin-bottom: 32px;
}

.disclaimer-bar p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

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

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

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

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

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

    .top-nav .nav-menu {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .top-nav {
        position: relative;
    }

    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

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

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

    .article-header h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .static-page-header h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .form-title {
        font-size: 26px;
    }

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

@media (max-width: 640px) {
    .hero-band h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

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

    .section {
        padding: 48px 0;
    }

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

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

    .article-hero-img img {
        height: 260px;
    }
}
