@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;
    --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; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: 'JetBrains Mono', monospace; }

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

/* NAV */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 64px; position: sticky; top: 0; z-index: 1000; }
.site-nav .nav-inner { 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-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: all 0.2s; }

/* HERO */
.hero { padding: 80px 0; background: var(--canvas); }
.hero h1 { font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 800px; margin-bottom: 24px; }
.hero-sub { font-size: 16px; 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; }
.hero-img { margin-top: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); }
.hero-img img { width: 100%; height: 400px; object-fit: cover; }

/* 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: 600px; }
.section-head { margin-bottom: 48px; }
.section-alt { background: var(--canvas-soft); }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; background: var(--surface-strong); color: var(--ink); border-radius: 9999px; padding: 4px 10px; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.5; color: var(--body); }
.card-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--primary); }
.card-link:hover { color: var(--primary-active); }
.card-img { border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.card-img img { width: 100%; height: 200px; object-fit: cover; }

/* ARTICLE CARD */
.article-card { display: flex; flex-direction: column; }
.article-card .card-meta { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); margin-top: 20px; }

/* TIPS LIST */
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.tips-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; }
.tip-num { flex-shrink: 0; width: 32px; height: 32px; background: var(--surface-strong); border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.tip-content h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tip-content p { font-size: 14px; color: var(--body); line-height: 1.5; }

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

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; }
.article-header .breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.article-header .breadcrumb a { color: var(--muted); }
.article-header .breadcrumb a:hover { color: var(--primary); }
.article-header h1 { font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: -1px; color: var(--ink); max-width: 760px; margin-bottom: 20px; }
.article-header .article-meta { font-size: 14px; color: var(--muted); }
.article-body { max-width: 760px; }
.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; color: var(--ink); margin: 32px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 20px; }
.article-body li { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 8px; }
.article-body .article-img { margin: 40px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); }
.article-body .article-img img { width: 100%; height: 360px; object-fit: cover; }
.article-body .img-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.article-body .info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; margin: 32px 0; }
.article-body .info-box strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.article-body .source-ref { font-size: 13px; color: var(--muted-soft); margin-top: 8px; }
.article-body .source-ref a { color: var(--muted); text-decoration: underline; }
.related-articles { padding: 64px 0; border-top: 1px solid var(--hairline); }
.related-articles .section-title { font-size: 26px; }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-info h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.form-info p { font-size: 16px; color: var(--body); line-height: 1.65; }
.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: 8px; }
.form-group input, .form-group textarea { width: 100%; background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 12px 16px; font-size: 16px; color: var(--ink); font-family: inherit; height: 44px; transition: border-color 0.15s; outline: none; }
.form-group textarea { height: auto; min-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); border: none; border-radius: 8px; padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; width: 100%; }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.form-msg.success { background: #d4edda; color: var(--success); }
.form-msg.loading { background: var(--surface-strong); color: var(--muted); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 20px 24px; z-index: 9999; display: none; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-text { font-size: 14px; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--canvas); text-decoration: underline; }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--primary); color: var(--on-primary); border: none; border-radius: 8px; padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-cookie-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 10px 18px; height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,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: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.5; margin-top: 12px; max-width: 260px; }
.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); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 14px; color: var(--muted); }

/* PAGE HEADER (about/privacy/terms) */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.page-header .section-label { margin-bottom: 12px; }
.page-header h1 { font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: -1px; color: var(--ink); max-width: 700px; margin-bottom: 16px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; }
.page-content { padding-bottom: 80px; }
.page-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 48px 0 16px; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.page-content p { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 20px; }
.page-content ul, .page-content ol { margin: 0 0 20px 24px; }
.page-content li { font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 8px; }
.page-content .update-note { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 3fr 1fr; gap: 64px; align-items: start; }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-card li a { font-size: 14px; color: var(--body); }
.sidebar-card li a:hover { color: var(--primary); }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 14px; color: var(--body); }
.toc-list a:hover { color: var(--primary); }

/* ABOUT TEAM */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; }
.stat-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 32px 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); }
.stat-label { font-size: 14px; color: var(--body); margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 40px; letter-spacing: -1px; }
    .section-title { font-size: 28px; }
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; padding: 24px; gap: 20px; }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: block; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .about-stats { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 34px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 32px; }
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-img img { height: 240px; }
}
