:root{
  --bg:#0c0d10; --bg-2:#14161b; --bg-3:#1c1f26; --line:#2a2e37;
  --text:#f3f4f6; --muted:#a3a8b3; --accent:#ff6a13; --accent-2:#ff8a3d;
  --display:"Barlow Condensed", "Arial Narrow", sans-serif;
  --body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px;width:100%}
.eyebrow{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--accent);font-size:1rem;display:block}
.accent{color:var(--accent)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--display);font-weight:700;font-size:1.2rem;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;padding:13px 26px;border-radius:999px;transition:transform .15s ease, background .15s ease;border:0;cursor:pointer}
.btn-primary{background:var(--accent);color:#111;box-shadow:0 8px 30px -8px rgba(255,106,19,.65)}
.btn-primary:hover{background:var(--accent-2);transform:translateY(-2px)}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(12,13,16,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}
.logo{font-family:var(--display);font-weight:800;font-size:1.6rem;letter-spacing:.08em;text-decoration:none;display:flex;align-items:center;gap:10px}
.logo-mark{width:30px;height:30px;border-radius:8px;background:var(--accent);display:grid;place-items:center;color:#111;font-size:1.2rem}
.nav{display:flex;gap:26px;align-items:center}
.nav a{text-decoration:none;color:var(--muted);font-weight:500;font-size:.95rem}
.nav a:hover,.nav a[aria-current]{color:var(--text)}
.nav .btn{padding:10px 20px;font-size:1.05rem;color:#111}
.menu-toggle{display:none;width:44px;height:44px;border-radius:10px;border:1px solid var(--line);background:var(--bg-2);color:var(--text);align-items:center;justify-content:center;cursor:pointer}
.menu-toggle svg{width:22px;height:22px}
.menu-toggle .i-close{display:none}
.menu-toggle[aria-expanded="true"] .i-open{display:none}
.menu-toggle[aria-expanded="true"] .i-close{display:block}

/* blog index */
.blog-hero{padding:80px 0 48px;background:radial-gradient(circle at 12% 0%,rgba(255,106,19,.16),transparent 50%)}
.blog-hero h1{font-family:var(--display);font-weight:800;text-transform:uppercase;line-height:.98;font-size:clamp(2.8rem,7vw,5rem);margin-top:14px}
.blog-hero p{color:var(--muted);font-size:1.15rem;max-width:620px;margin-top:18px}
.posts{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;padding-bottom:96px}
.posts.three{grid-template-columns:repeat(3,1fr);padding-bottom:0}
.post-card{display:flex;flex-direction:column;background:var(--bg-2);border:1px solid var(--line);border-radius:20px;overflow:hidden;text-decoration:none;transition:transform .2s ease,border-color .2s ease}
.post-card:hover{transform:translateY(-4px);border-color:#454b57}
.post-card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--bg-3)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.post-card:hover .thumb img{transform:scale(1.05)}
.post-card .body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card h2{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:1.65rem;line-height:1.05}
.post-card p{color:var(--muted);font-size:.95rem;line-height:1.55}
.post-card .more{margin-top:auto;padding-top:8px;color:var(--accent);font-weight:600;font-size:.95rem}
.meta{color:var(--muted);font-size:.85rem;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.meta .dot{opacity:.5}
.tag{display:inline-block;font-family:var(--display);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.85rem;color:var(--accent)}
.post-card.featured{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr}
.post-card.featured .thumb{aspect-ratio:auto;min-height:340px}
.post-card.featured .body{padding:40px;justify-content:center}
.post-card.featured h2{font-size:2.6rem}
.post-card.featured p{font-size:1.05rem}

/* article */
.article-head{padding:64px 0 36px;max-width:820px;margin:0 auto}
.crumbs{font-size:.9rem;color:var(--muted);margin-bottom:22px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--text)}
.article-head h1{font-family:var(--display);font-weight:800;text-transform:uppercase;line-height:1;font-size:clamp(2.4rem,6vw,4rem);margin:12px 0 18px}
.article-head .dek{color:#c9cdd5;font-size:1.2rem;margin-bottom:20px}
.article-cover{max-width:1000px;margin:0 auto 52px;border-radius:22px;overflow:hidden;aspect-ratio:16/8;background:var(--bg-3)}
.article-cover img{width:100%;height:100%;object-fit:cover}
.prose{max-width:720px;margin:0 auto;padding-bottom:40px}
.prose > * + *{margin-top:1.2em}
.prose h2{font-family:var(--display);font-weight:800;text-transform:uppercase;font-size:2rem;line-height:1.05;margin-top:1.9em}
.prose h3{font-size:1.15rem;font-weight:700;margin-top:1.6em}
.prose p,.prose li{color:#d4d7de}
.prose strong{color:var(--text)}
.prose ul,.prose ol{padding-left:1.3em;display:grid;gap:.55em}
.prose li::marker{color:var(--accent);font-weight:700}
.prose a{color:var(--accent);text-underline-offset:3px}
.callout{background:var(--bg-2);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:18px 22px;color:#d4d7de}
.callout strong{color:var(--accent)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:520px}
.prose th,.prose td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--line)}
.prose th{background:var(--bg-3);font-family:var(--display);text-transform:uppercase;letter-spacing:.06em;font-size:1rem}
.prose tr:last-child td{border-bottom:0}
.prose td{color:#d4d7de}
.source{font-size:.85rem;color:var(--muted)}

.product-cta{max-width:720px;margin:24px auto 0;display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center;background:radial-gradient(circle at 90% 50%,rgba(255,106,19,.2),transparent 60%),var(--bg-2);border:1px solid var(--line);border-radius:20px;padding:22px}
.product-cta img{border-radius:14px;background:#fff}
.product-cta h3{font-family:var(--display);font-weight:800;text-transform:uppercase;font-size:1.6rem;line-height:1.05}
.product-cta p{color:var(--muted);font-size:.95rem;margin:6px 0 14px}

.related{border-top:1px solid var(--line);margin-top:72px;padding:64px 0 96px}
.related h2{font-family:var(--display);font-weight:800;text-transform:uppercase;font-size:2.2rem;margin-bottom:28px}

footer{border-top:1px solid var(--line);padding:32px 0;color:var(--muted);font-size:.88rem}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}
footer a{text-decoration:none}
footer a:hover{color:var(--text)}

@media (max-width:980px){
  .posts.three{grid-template-columns:repeat(2,1fr)}
  .post-card.featured{grid-template-columns:1fr}
  .post-card.featured .thumb{min-height:0;aspect-ratio:16/9}
  .post-card.featured .body{padding:26px}
  .post-card.featured h2{font-size:2rem}
  .menu-toggle{display:inline-flex}
  .site-header{background:rgba(12,13,16,.97)}
  .nav{display:none;position:absolute;top:68px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#0c0d10;border-bottom:1px solid var(--line);padding:8px 24px 22px;box-shadow:0 24px 40px -20px rgba(0,0,0,.9)}
  .nav.open{display:flex}
  .nav a:not(.btn){display:block;padding:14px 4px;font-size:1.05rem;color:var(--text);border-bottom:1px solid var(--line)}
  .nav .btn{display:flex;margin-top:18px;padding:14px 20px;font-size:1.15rem}
}
@media (max-width:640px){
  body{font-size:16px}
  .posts,.posts.three{grid-template-columns:1fr}
  .blog-hero{padding:56px 0 36px}
  .article-head{padding:44px 0 28px}
  .article-cover{border-radius:0;margin-bottom:36px}
  .product-cta{grid-template-columns:1fr;text-align:center}
  .product-cta img{max-width:160px;margin:0 auto}
}
