@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 { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; }

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; height: 100%; gap: 32px; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.nav-brand span { color: var(--primary); }
.nav-menu { display: flex; gap: 24px; list-style: none; flex: 1; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.4; transition: color 0.15s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* HERO */
.hero-band { padding: 80px 0; background: var(--canvas); }
.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-headline { font-size: 48px; font-weight: 400; line-height: 1.1; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 20px; }
.hero-sub { font-size: 16px; color: var(--body); line-height: 1.5; margin-bottom: 32px; max-width: 440px; }
.hero-image { border-radius: var(--rounded-lg); overflow: hidden; border: 1px solid var(--hairline); }
.hero-image img { width: 100%; height: 340px; object-fit: cover; }

/* BADGE PILL */
.badge-pill { 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: var(--rounded-pill); padding: 4px 10px; margin-bottom: 16px; }

/* SECTION */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.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; letter-spacing: -0.72px; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--body); line-height: 1.5; max-width: 560px; }
.section-header { margin-bottom: 48px; }

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

.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: 14px; color: var(--body); line-height: 1.5; }
.feature-card .card-icon { font-size: 24px; margin-bottom: 16px; }

/* 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-body .badge-pill { margin-bottom: 12px; }
.article-card-body h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 16px; }
.article-meta { font-size: 13px; color: var(--muted); }
.article-link { color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.article-link:hover { color: var(--primary); }

/* BUTTON */
.btn-primary { display: inline-block; 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; line-height: 1.4; text-decoration: none; transition: background 0.15s; }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary { display: inline-block; background: var(--surface-card); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 18px; height: 40px; border-radius: var(--rounded-md); border: 1px solid var(--hairline-strong); cursor: pointer; line-height: 1.4; text-decoration: none; transition: border-color 0.15s; }
.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 40px; }
.article-hero h1 { font-size: 42px; font-weight: 400; letter-spacing: -0.84px; color: var(--ink); line-height: 1.15; margin-bottom: 20px; max-width: 800px; }
.article-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.article-meta-row .badge-pill { margin-bottom: 0; }
.article-meta-row span { font-size: 13px; color: var(--muted); }
.article-featured-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--rounded-lg); border: 1px solid var(--hairline); margin-bottom: 48px; }

.article-content { max-width: 760px; }
.article-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); line-height: 1.25; margin: 40px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 28px 0 12px; }
.article-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; letter-spacing: 0.08px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--primary-active); }
.article-content strong { color: var(--body-strong); font-weight: 600; }

.callout-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: 28px 0; }
.callout-box p { margin: 0; font-size: 15px; color: var(--body); }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { display: flex; gap: 10px; font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 8px; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.checklist li::before { content: "✓"; color: var(--semantic-success); font-weight: 600; flex-shrink: 0; margin-top: 2px; }

.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.info-table th { background: var(--surface-strong); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--hairline-strong); }
.info-table td { padding: 12px 16px; font-size: 14px; color: var(--body); border-bottom: 1px solid var(--hairline-soft); }
.info-table tr:last-child td { border-bottom: none; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding-bottom: 80px; }
.article-sidebar { padding-top: 0; }
.sidebar-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 20px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; letter-spacing: 0.88px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--hairline-soft); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { display: block; padding: 8px 0; font-size: 14px; color: var(--body); transition: color 0.15s; }
.sidebar-card ul li a:hover { color: var(--primary); }

/* FORM */
.contact-section { padding: 80px 0; background: var(--canvas-soft); }
.contact-form { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 40px; max-width: 600px; margin: 0 auto; }
.contact-form h2 { font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.325px; }
.contact-form .form-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--body-strong); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; background: var(--surface-card); color: var(--ink); font-family: inherit; font-size: 16px; 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 input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { height: auto; min-height: 120px; resize: vertical; }
.form-message { display: none; background: var(--surface-card); border: 1px solid var(--hairline); border-left: 3px solid var(--semantic-success); border-radius: var(--rounded-md); padding: 16px 20px; margin-top: 20px; font-size: 15px; color: var(--body-strong); }
.form-message.show { display: block; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 999; flex-wrap: wrap; }
.cookie-banner p { font-size: 14px; color: var(--canvas); max-width: 700px; line-height: 1.5; }
.cookie-banner p a { color: var(--muted-soft); text-decoration: underline; }
.cookie-banner p a:hover { color: var(--canvas); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-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; }
.cookie-btn-accept:hover { background: var(--primary-active); }
.cookie-btn-reject { background: transparent; color: var(--canvas); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.3); cursor: pointer; }
.cookie-btn-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 repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.88px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--hairline-soft); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); }
.footer-bottom-links a:hover { color: var(--primary); }

/* PAGE CONTENT */
.page-hero { padding: 60px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 48px; }
.page-hero h1 { font-size: 42px; font-weight: 400; letter-spacing: -0.84px; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.page-hero p { font-size: 16px; color: var(--body); max-width: 560px; }
.page-content { padding-bottom: 80px; max-width: 760px; }
.page-content h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted-soft); }

/* RELATED ARTICLES */
.related-section { padding: 48px 0 80px; border-top: 1px solid var(--hairline); margin-top: 48px; }
.related-section h2 { font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.11px; margin-bottom: 32px; }

/* LOADING SPINNER */
.btn-loading { position: relative; pointer-events: none; opacity: 0.7; }
.btn-loading::after { content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-band .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-headline { font-size: 40px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { 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: 4px; z-index: 99; }
    .nav-menu.open { display: flex; }
    .nav-hamburger { display: flex; margin-left: auto; }
    .hero-headline { font-size: 32px; }
    .section-title { font-size: 28px; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .article-sidebar { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 30px; }
    .contact-form { padding: 24px 20px; }
}
@media (max-width: 640px) {
    .hero-band { padding: 48px 0; }
    .section { padding: 48px 0; }
    .hero-headline { font-size: 28px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
