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

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;
    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-color: 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-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

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

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

.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-color: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

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

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
    display: block;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

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

.hero-band .badge-pill {
    margin-bottom: 24px;
}

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

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

/* BADGE PILL */
.badge-pill {
    display: inline-block;
    background-color: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
}

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

.section-border {
    border-bottom: 1px solid var(--hairline);
}

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

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

.section-subhead {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}

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

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

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

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

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

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

/* ARTICLE CARDS */
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

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

.article-card-body .read-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    border-top: 1px solid var(--hairline-soft);
    padding-top: 16px;
    margin-top: auto;
}

/* ARTICLE PAGE */
.article-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-hero h1 {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
    max-width: 820px;
    margin-bottom: 20px;
}

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

.article-meta .dot {
    color: var(--hairline-strong);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 64px 0 80px;
    align-items: start;
}

.article-body {
    min-width: 0;
}

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

.article-body h2:first-child {
    margin-top: 0;
}

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

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

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

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

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(245, 78, 0, 0.3);
}

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

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

.article-body .img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
    line-height: 1.4;
}

.info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
}

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

.info-box strong {
    color: var(--ink);
}

.code-block {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink);
    margin: 24px 0;
    overflow-x: auto;
    line-height: 1.5;
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 80px;
}

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

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

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

.sidebar-card ul li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
}

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

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--body);
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-card ul li a:hover {
    color: var(--primary);
}

/* FORM */
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
}

.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;
    height: 44px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
}

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

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

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

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

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

.form-message.success {
    background: #e8f5f1;
    color: var(--success);
    border: 1px solid #b8dfd4;
}

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

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

.footer-col h5 {
    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;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-col ul 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;
    flex-wrap: wrap;
    gap: 12px;
}

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

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

.footer-bottom a:hover {
    color: var(--body);
}

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

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

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

.cookie-inner p {
    font-size: 14px;
    color: rgba(247, 247, 244, 0.8);
    line-height: 1.5;
    flex: 1;
    min-width: 240px;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

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

.btn-cookie-reject {
    background: transparent;
    color: rgba(247, 247, 244, 0.7);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(247, 247, 244, 0.25);
    cursor: pointer;
}

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

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

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

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

.breadcrumb .sep {
    color: var(--hairline-strong);
}

/* PAGE CONTENT (about, privacy, terms) */
.page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

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

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

.page-content {
    max-width: 720px;
    padding: 64px 0 80px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 40px 0 14px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 10px;
}

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

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

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

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(245, 78, 0, 0.3);
}

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

/* DISCLAIMER BAR */
.disclaimer-bar {
    background: var(--canvas-soft);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 0;
}

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

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

    .article-sidebar {
        position: static;
    }

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

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

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

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

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

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

    .nav-menu {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .top-nav {
        position: relative;
    }

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

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

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

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

    .section {
        padding: 56px 0;
    }

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

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

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

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

    .article-hero h1 {
        font-size: 26px;
    }

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