@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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
}

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

/* NAV */
.top-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; height: 64px; }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; }
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; 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-band { background: var(--canvas); padding: 80px 0; border-bottom: 1px solid var(--hairline); }
.hero-band h1 { font-size: 72px; font-weight: 400; line-height: 1.1; letter-spacing: -2.16px; color: var(--ink); max-width: 800px; }
.hero-band .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; padding: 4px 10px; border-radius: 9999px; margin-bottom: 20px; }
.hero-band p { font-size: 16px; color: var(--body); line-height: 1.5; max-width: 560px; margin-top: 20px; }
.hero-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 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: 20px; }
.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: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -0.325px; color: var(--ink); margin-bottom: 12px; }
.section-body { font-size: 16px; color: var(--body); line-height: 1.5; max-width: 680px; }

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

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; 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); margin-bottom: 10px; line-height: 1.4; }
.feature-card p { font-size: 14px; color: var(--body); line-height: 1.5; }
.feature-card .card-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }

/* ARTICLE CARDS */
.article-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s; }
.article-card:hover { border-color: var(--hairline-strong); }
.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 .cat { 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: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.article-card-body .read-link { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.article-card-body .read-link:hover { color: var(--primary); }

/* BUTTONS */
.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; display: inline-flex; align-items: center; line-height: 1; transition: background 0.15s; text-decoration: none; }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary { 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; display: inline-flex; align-items: center; line-height: 1; transition: border-color 0.15s; text-decoration: none; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* TECH TABLE */
.tech-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; }
.tech-table th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.tech-table td { padding: 14px 16px; border-bottom: 1px solid var(--hairline-soft); color: var(--body); vertical-align: top; }
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:nth-child(even) td { background: var(--canvas-soft); }

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

/* INFO BOX */
.info-box { background: var(--surface-card); border: 1px solid var(--hairline); border-left: 3px solid var(--primary); border-radius: var(--rounded-md); padding: 16px 20px; margin: 24px 0; font-size: 14px; color: var(--body); }
.info-box strong { color: var(--ink); }

/* FORM */
.form-section { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 40px; max-width: 560px; }
.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); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: var(--rounded-md); padding: 12px 16px; font-size: 16px; font-family: inherit; height: 44px; outline: none; transition: border-color 0.15s; }
.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); }
.form-msg { display: none; padding: 12px 16px; border-radius: var(--rounded-md); font-size: 14px; margin-top: 16px; }
.form-msg.success { background: #e8f5f1; color: var(--semantic-success); border: 1px solid #b8ddd6; }
.form-msg.loading { background: var(--canvas-soft); color: var(--muted); border: 1px solid var(--hairline); }

/* 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: 40px; }
.footer-brand { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 14px; color: var(--body); line-height: 1.5; }
.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; }
.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(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline-soft); 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 { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--canvas); padding: 16px 24px; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.cookie-banner p { flex: 1; line-height: 1.5; }
.cookie-banner p a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: var(--rounded-md); border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.15s; }
.cookie-accept:hover { background: var(--primary-active); }
.cookie-reject { background: transparent; color: var(--canvas); padding: 8px 16px; border-radius: var(--rounded-md); border: 1px solid rgba(255,255,255,0.3); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color 0.15s; }
.cookie-reject:hover { border-color: rgba(255,255,255,0.6); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; }

/* ARTICLE PAGE */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-content h1 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.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: 18px; 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: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content img { border-radius: var(--rounded-lg); border: 1px solid var(--hairline); margin: 24px 0; }
.article-content figcaption { font-size: 13px; color: var(--muted); margin-top: -16px; margin-bottom: 24px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

.sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin-bottom: 24px; }
.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; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul li a { font-size: 14px; color: var(--body); transition: color 0.15s; display: block; line-height: 1.4; }
.sidebar-card ul li a:hover { color: var(--ink); }

/* PAGE CONTENT */
.page-content h1 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); line-height: 1.2; margin-bottom: 24px; }
.page-content h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); line-height: 1.3; margin: 36px 0 12px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 16px; max-width: 720px; }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .hero-band h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 28px; }
  .form-section { padding: 24px; }
}
