:root {
  color-scheme: dark;
  --bg: #09101d;
  --bg-deep: #060a13;
  --surface: rgba(17, 27, 45, 0.72);
  --surface-strong: #111b2e;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f7fb;
  --muted: #9caabd;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-bright: #ffc45c;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --blue: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --radius: 20px;
  --max-width: 1180px;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-deep: #e9eef6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-soft: rgba(15, 23, 42, 0.05);
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);
  --text: #101827;
  --muted: #627086;
  --muted-strong: #3a4658;
  --accent: #d97706;
  --accent-bright: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.13);
  --blue: #0284c7;
  --shadow: 0 24px 70px rgba(48, 70, 100, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(circle at 80% 10%, var(--accent-soft), transparent 31%), linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%); pointer-events: none; }
.background-grid { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.background-orb { position: absolute; border-radius: 999px; filter: blur(90px); opacity: .28; transition: background .6s ease; }
.background-orb-one { width: 430px; height: 430px; top: -180px; right: -100px; background: var(--accent); }
.background-orb-two { width: 360px; height: 360px; bottom: -170px; left: -100px; background: #1e3a8a; }

.site-header { position: relative; z-index: 10; width: min(100% - 48px, var(--max-width)); min-height: var(--header-height); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-size: .96rem; font-weight: 800; letter-spacing: -.03em; }
.brand-badge, .signature-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #111827; background: var(--accent); box-shadow: 0 7px 24px var(--accent-soft); font-size: .78rem; font-weight: 950; }
.brand-sub { color: var(--muted); font-size: .77rem; font-weight: 500; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); }
.main-nav a { padding: 7px 15px; border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 700; transition: .25s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--surface-strong); box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
.main-nav a.is-active { color: #111827; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: var(--surface-soft); transition: .25s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-bright); transform: rotate(12deg); }
.header-cta { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface-soft); font-size: .83rem; font-weight: 800; transition: .25s ease; }
.header-cta:hover { border-color: var(--accent); color: #111827; background: var(--accent); }

.site-main { position: relative; min-height: calc(100vh - var(--header-height)); }
.page-wrap { width: min(100% - 48px, var(--max-width)); margin: 0 auto; }
.hero-section { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); align-items: center; gap: clamp(40px, 8vw, 120px); padding: 92px 0 118px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { font-size: .53rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.055em; }
.hero-section h1 { max-width: 770px; margin: 22px 0 28px; font-size: clamp(3.5rem, 7vw, 7.2rem); font-weight: 850; }
.accent-text, em { color: var(--accent-bright); font-style: normal; }
.hero-lead, .lead { max-width: 640px; color: var(--muted-strong); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-lead { max-width: 560px; margin-bottom: 30px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; font-size: .86rem; font-weight: 850; transition: .25s ease; }
.button-primary { color: #15110a; background: var(--accent); box-shadow: 0 12px 30px var(--accent-soft); }
.button-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 18px 35px var(--accent-soft); }
.button-ghost { border-color: var(--border); color: var(--muted-strong); background: var(--surface-soft); }
.button-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.hero-signature { display: inline-flex; align-items: center; gap: 12px; margin-top: 70px; color: var(--muted-strong); font-size: .84rem; font-weight: 750; }
.hero-signature small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; }

.hero-visual { position: relative; min-height: 420px; isolation: isolate; border: 1px solid var(--border); border-radius: 50% 50% 45% 55% / 48% 42% 58% 52%; background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 32%), linear-gradient(145deg, rgba(30, 41, 59, .7), rgba(15, 23, 42, .12)); box-shadow: inset 0 0 80px rgba(255, 255, 255, .03), var(--shadow); overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 20px; border: 1px dashed var(--border); border-radius: inherit; opacity: .72; }
.hero-orbit { position: absolute; inset: 16%; border: 1px solid var(--border-strong); border-radius: 50%; transform: rotate(-28deg) skewX(-18deg); animation: orbit 16s linear infinite; }
.hero-orbit-one::before, .hero-orbit-two::before { content: ""; position: absolute; top: -7px; left: 36%; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 25px var(--accent); }
.hero-orbit-two { inset: 27% 9%; transform: rotate(38deg) skewX(12deg); animation-duration: 21s; animation-direction: reverse; border-color: rgba(56, 189, 248, .36); }
.hero-orbit-two::before { top: auto; bottom: -6px; left: 63%; background: var(--blue); box-shadow: 0 0 25px var(--blue); }
.hero-visual-core { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; color: var(--text); }
.hero-visual-core span { font-size: clamp(4.7rem, 10vw, 7.5rem); font-weight: 950; letter-spacing: -.14em; color: var(--accent); text-shadow: 10px 12px 0 rgba(255, 255, 255, .06); }
.hero-visual-core small { margin-top: -10px; color: var(--muted); font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; }
.visual-label { position: absolute; z-index: 3; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.visual-label-top { top: 35px; left: 44px; }.visual-label-bottom { right: 35px; bottom: 40px; }
@keyframes orbit { to { transform: rotate(332deg) skewX(-18deg); } }

.section-block { padding: 94px 0; }
.section-heading { margin-bottom: 36px; }.section-heading h2 { max-width: 700px; margin: 14px 0 0; font-size: clamp(2.15rem, 4.4vw, 4.2rem); }.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.highlight-section { width: min(100% - 48px, var(--max-width)); margin: 0 auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.highlight-card { min-height: 210px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }.highlight-number { display: block; margin-bottom: 42px; color: var(--accent); font-size: .78rem; font-weight: 900; }.highlight-card h3 { margin-bottom: 10px; font-size: 1.25rem; }.highlight-card p { margin: 0; color: var(--muted); font-size: .9rem; }.signature-line { margin: 24px 0 0; color: var(--muted); font-size: .8rem; }
.latest-section { padding-bottom: 110px; }.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-size: .84rem; font-weight: 850; }.text-link:hover { color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.post-card { min-height: 260px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 15px 50px rgba(0, 0, 0, .08); transition: .28s ease; }.post-card:hover { border-color: var(--border-strong); transform: translateY(-5px); box-shadow: var(--shadow); }.post-card-featured { grid-column: span 2; }.post-card-media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-strong); }.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }.post-card:hover img { transform: scale(1.04); }.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .73rem; }.post-meta span { color: var(--accent-bright); font-weight: 850; }.post-card h2 { margin: 18px 0 10px; font-size: 1.45rem; }.post-card h2 a:hover { color: var(--accent-bright); }.post-card p { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }.post-card .text-link { margin-top: auto; }
.contact-banner { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 110px; padding: 46px; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(110deg, var(--surface), var(--accent-soft)); }.contact-banner h2 { max-width: 680px; margin: 16px 0 0; font-size: clamp(2.4rem, 5vw, 4.9rem); }

.page-intro { max-width: 760px; padding: 96px 0 50px; }.page-intro h1 { margin: 18px 0 18px; font-size: clamp(2.9rem, 6vw, 6rem); }.page-intro .lead { margin-bottom: 0; }.blog-grid { padding-bottom: 50px; }.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }.filter-bar a, .filter-current { padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: .78rem; font-weight: 750; }.filter-bar a:hover, .filter-bar a.is-active { color: #15110a; border-color: var(--accent); background: var(--accent); }.filter-current { border-style: dashed; color: var(--accent-bright); }.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px 0 100px; color: var(--muted); font-size: .8rem; text-align: center; }.pagination a { color: var(--accent-bright); font-weight: 800; }.pagination a:first-child { text-align: left; }.pagination a:last-child { text-align: right; }
.empty-state { display: grid; place-items: center; min-height: 220px; padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }.empty-mark { display: block; margin-bottom: 8px; color: var(--accent); font-size: 1.5rem; }.empty-state p { margin: 0; }
.article-page, .static-page { padding-top: 58px; padding-bottom: 110px; }.back-link { display: inline-flex; margin-bottom: 34px; color: var(--muted); font-size: .82rem; font-weight: 800; }.back-link:hover { color: var(--accent-bright); }.article-shell { max-width: 820px; margin: 0 auto; }.article-header { margin-bottom: 42px; text-align: center; }.article-header .post-meta { justify-content: center; }.article-header h1 { margin: 19px 0; font-size: clamp(2.7rem, 6vw, 5.8rem); }.article-excerpt { max-width: 650px; margin: 0 auto; color: var(--muted-strong); font-size: 1.08rem; }.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }.tag-list a { color: var(--accent-bright); font-size: .78rem; font-weight: 800; }.article-cover { width: 100%; max-height: 510px; margin-bottom: 48px; border: 1px solid var(--border); border-radius: var(--radius); object-fit: cover; }.article-content { color: var(--muted-strong); font-size: 1.05rem; line-height: 1.85; }.article-content > *:first-child { margin-top: 0; }.article-content h1, .article-content h2, .article-content h3, .article-content h4 { margin: 2.1em 0 .6em; color: var(--text); }.article-content h2 { font-size: 2rem; }.article-content h3 { font-size: 1.45rem; }.article-content p { margin: 0 0 1.2em; }.article-content a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 4px; }.article-content blockquote { margin: 1.8em 0; padding: 1em 1.3em; border-left: 3px solid var(--accent); color: var(--text); background: var(--accent-soft); }.article-content pre, .article-content code { font-family: "SFMono-Regular", Consolas, monospace; }.article-content code { padding: .15em .35em; border-radius: 5px; color: var(--accent-bright); background: var(--surface-soft); font-size: .87em; }.article-content pre { overflow: auto; padding: 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted-strong); background: var(--bg-deep); }.article-content pre code { padding: 0; background: transparent; }.article-content img { margin: 2em auto; border-radius: 14px; }.article-content ul, .article-content ol { padding-left: 1.4em; }.article-content li { margin-bottom: .45em; }.related-section { max-width: var(--max-width); margin: 110px auto 0; padding-top: 70px; border-top: 1px solid var(--border); }.related-section .section-heading h2 { font-size: 2.4rem; }.static-page .article-header { text-align: left; }.static-page .article-header h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }.static-page .article-content { max-width: 740px; margin: 0 auto 0 0; }
.error-page { display: grid; align-content: center; min-height: calc(100vh - 210px); padding-top: 80px; padding-bottom: 100px; }.error-code { color: var(--accent); font-size: .8rem; font-weight: 900; letter-spacing: .2em; }.error-page h1 { max-width: 700px; margin: 16px 0; font-size: clamp(3rem, 7vw, 7rem); }.error-page .lead { margin-bottom: 28px; }
.site-footer { width: min(100% - 48px, var(--max-width)); display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 26px; margin: 0 auto; padding: 28px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: .76rem; }.site-footer strong, .site-footer span { display: block; }.site-footer strong { margin-bottom: 4px; color: var(--text); }.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }.footer-links a:hover { color: var(--accent-bright); }.footer-copy { text-align: right; }

@media (max-width: 860px) {
  .site-header { width: min(100% - 32px, var(--max-width)); flex-wrap: wrap; gap: 13px; padding: 14px 0; }.brand-sub, .header-cta { display: none; }.main-nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; }.main-nav a { padding: 7px 11px; font-size: .78rem; }.hero-section { grid-template-columns: 1fr; min-height: auto; padding: 74px 0 82px; }.hero-section h1 { font-size: clamp(3.2rem, 13vw, 5.7rem); }.hero-visual { min-height: 320px; max-width: 520px; width: 100%; margin: 0 auto; }.highlight-grid, .post-grid { grid-template-columns: 1fr 1fr; }.post-card-featured { grid-column: span 2; }.site-footer { grid-template-columns: 1fr 1fr; }.footer-copy { text-align: left; }.contact-banner { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .page-wrap, .highlight-section, .site-footer, .site-header { width: min(100% - 28px, var(--max-width)); }.hero-section { padding-top: 58px; }.hero-section h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }.hero-signature { margin-top: 42px; }.hero-visual { min-height: 280px; }.visual-label-top { top: 23px; left: 25px; }.visual-label-bottom { right: 22px; bottom: 27px; }.section-block { padding: 66px 0; }.section-heading-row { display: block; }.section-heading-row .text-link { margin-top: 18px; }.highlight-grid, .post-grid { grid-template-columns: 1fr; }.post-card-featured { grid-column: auto; }.contact-banner { margin-bottom: 72px; padding: 28px; }.page-intro { padding: 66px 0 38px; }.page-intro h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }.pagination { grid-template-columns: 1fr; gap: 10px; }.pagination a:first-child, .pagination a:last-child { text-align: center; }.article-page, .static-page { padding-top: 35px; }.article-header h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }.article-content { font-size: 1rem; }.site-footer { grid-template-columns: 1fr; gap: 18px; }.footer-copy { text-align: left; }.header-actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
