/*
Theme Name: AmberPress
Theme URI: https://amberpress.dev
Author: AmberPress Team
Author URI: https://amberpress.dev
Description: 为开发者设计的琥珀色 WordPress 主题。代码优先，琥珀暖调，专为技术博客和开发者社区打造。支持代码高亮、响应式布局、深色模式、Customizer 自定义。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amberpress
Tags: one-column, custom-colors, custom-menu, featured-images, theme-options, translation-ready, blog, coding
*/

:root {
  --bg: oklch(95.5% 0.02 75);
  --bg2: oklch(93% 0.025 75);
  --surface: oklch(100% 0 0);
  --surface-glass: oklch(100% 0 0 / 0.7);
  --fg: oklch(18% 0.02 75);
  --fg2: oklch(32% 0.015 75);
  --muted: oklch(48% 0.014 75);
  --muted2: oklch(62% 0.01 75);
  --border: oklch(88% 0.015 75);
  --accent: oklch(68% 0.20 75);
  --accent-dim: oklch(56% 0.20 75);
  --accent-bg: oklch(70% 0.16 75 / 0.10);
  --code-bg: oklch(16% 0.015 75);
  --code-line: oklch(24% 0.01 75);
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --container: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(14% 0.01 75);
    --bg2: oklch(19% 0.015 75);
    --surface: oklch(22% 0.015 75);
    --surface-glass: oklch(22% 0.015 75 / 0.85);
    --fg: oklch(92% 0.01 75);
    --fg2: oklch(78% 0.01 75);
    --muted: oklch(58% 0.01 75);
    --muted2: oklch(48% 0.01 75);
    --border: oklch(30% 0.01 75);
    --accent: oklch(76% 0.18 75);
    --accent-dim: oklch(62% 0.18 75);
    --accent-bg: oklch(76% 0.16 75 / 0.12);
    --code-bg: oklch(10% 0.01 75);
    --code-line: oklch(18% 0.01 75);
  }
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper noise texture */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.45;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(106,84,56,0.006) 2px, rgba(106,84,56,0.006) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(106,84,56,0.006) 2px, rgba(106,84,56,0.006) 4px);
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1 { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 60px); font-weight: 620; line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 580; line-height: 1.18; letter-spacing: -0.018em; }
h3 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); font-weight: 530; line-height: 1.3; letter-spacing: -0.008em; }
h4 { font-family: var(--font-body); font-size: 16px; font-weight: 530; line-height: 1.4; letter-spacing: 0; }

.body-large { font-size: 17px; line-height: 1.65; color: var(--muted); }
.body-small { font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* nav — starts translucent, fully frosted on scroll */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: oklch(100% 0 0 / 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}
nav.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
nav .container {
  display: flex; align-items: center; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 620; font-size: 18px; letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; transition: transform 0.5s ease; }
.nav-logo:hover svg { transform: rotate(72deg); }
.nav-links {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 510; letter-spacing: 0.02em;
  color: var(--muted); transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s;
  transform-origin: right;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta::after { display: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 510; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-dim); transform: translateY(-1px); }
.nav-cta svg { transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(3px); }
.mobile-toggle {
  display: none; margin-left: auto;
  background: none; border: 0;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg);
  border-radius: 8px;
}
.mobile-toggle:hover { background: var(--border); }

/* reading progress bar */
.progress-bar {
  position: absolute; bottom: -1px; left: 0;
  height: 1.5px; background: var(--accent);
  width: 0; transition: width 0.1s linear;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* hero — terminal split */
.hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.hero .container { position: relative; }
.hero-glow {
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 90%; height: 160%;
  background: radial-gradient(ellipse at 50% 30%, oklch(78% 0.12 75 / 0.18), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.hero h1 { margin-bottom: 14px; position: relative; z-index: 1; }
.hero h1 .accent-word { color: var(--accent); }
.hero h1 .accent-word-glow {
  color: var(--accent);
  text-shadow: 0 0 20px oklch(68% 0.20 75 / 0.25), 0 0 60px oklch(68% 0.20 75 / 0.1);
}
.hero p { max-width: 58ch; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 510; letter-spacing: 0.02em;
  border: 0; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim); transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(68% 0.20 75 / 0.3);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-secondary {
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0) scale(0.97); }

/* terminal code block */
.terminal {
  background: var(--code-bg); border-radius: 12px; overflow: hidden;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--code-line);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .r { background: #ff5f57; }
.terminal-bar .y { background: #ffbd2e; }
.terminal-bar .g { background: #28c840; }
.terminal-bar .title {
  margin-left: auto; font-size: 12px; color: oklch(55% 0.02 75);
  font-weight: 400;
}
.terminal-body { padding: 20px 20px 24px; overflow-x: auto; position: relative; }
.terminal-body pre { margin: 0; white-space: pre; }
.terminal .gutter {
  display: inline-block; width: 24px; text-align: right;
  color: oklch(35% 0.02 75); margin-right: 16px;
  user-select: none;
}
.tk-kw { color: oklch(74% 0.16 75); }
.tk-fn { color: oklch(80% 0.08 225); }
.tk-str { color: oklch(76% 0.12 145); }
.tk-num { color: oklch(70% 0.16 75); }
.tk-cm { color: oklch(44% 0.02 75); font-style: italic; }
.tk-tag { color: oklch(74% 0.16 35); }
.tk-op { color: oklch(72% 0.14 75); }
.tk-vr { color: oklch(78% 0.06 250); }
.tk-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); vertical-align: text-bottom;
  box-shadow: 0 0 6px oklch(68% 0.20 75 / 0.3), 0 0 16px oklch(68% 0.20 75 / 0.12);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* typewriter reveal animation */
@keyframes typeReveal {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.hero .terminal-body pre {
  clip-path: inset(100% 0 0 0);
  animation: typeReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.terminal-typo {
  position: absolute; bottom: 0; right: 0;
  transform: translateY(50%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal-typo { display: none; }
}

/* quote section — full-width rhythm breaker */
.quote-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 480;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg2);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.quote-section .quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4em;
  line-height: 0;
  color: var(--accent);
  opacity: 0.6;
  vertical-align: middle;
}
.quote-section cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* stats section */
.stats-section {
  padding: 72px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 20px 12px;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 6px;
}
.stat-num small {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--accent);
  vertical-align: super;
  letter-spacing: 0;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 12px; } }

/* section rhythm */
section { padding: 90px 0; }
.section-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1.5px; background: var(--accent);
}
.section-title { margin-bottom: 14px; }
.section-desc { margin-bottom: 48px; max-width: 62ch; }

/* features */
.features-section { background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.feature-card:hover {
  background: var(--accent-bg);
  border-color: oklch(68% 0.20 75 / 0.2);
  transform: translateY(-3px);
}
.feature-icon {
  width: 36px; height: 36px; margin-bottom: 16px;
  color: var(--accent);
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted2); line-height: 1.6; }

@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

/* showcase */
.showcase-section { position: relative; }
.showcase-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, transparent 100%);
  pointer-events: none;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px; align-items: center;
  position: relative;
}
.showcase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tag {
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-family: var(--font-mono); font-weight: 510;
  background: var(--accent-bg);
  color: var(--accent-dim);
  border: 1px solid oklch(68% 0.20 75 / 0.12);
  transition: background 0.2s, transform 0.2s;
}
.tag:hover { background: oklch(68% 0.20 75 / 0.18); }

.showcase-terminal { font-size: 13px; }
.showcase-terminal .terminal-body { padding: 16px 20px; }
.showcase-terminal .terminal-body pre { white-space: pre-wrap; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* blog preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.blog-card-img {
  height: 160px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 13px; font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img svg { opacity: 0.25; }
.blog-card-body { padding: 22px; }
.blog-card-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--muted2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 14px; font-weight: 510;
  color: var(--accent); transition: gap 0.2s;
}
.blog-card-link svg { transition: transform 0.2s; }
.blog-card:hover .blog-card-link svg { transform: translateX(4px); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 130px; }
}

/* theme deep-dive */
.theme-section {
  background: var(--fg);
  color: #fff;
}
.theme-section .section-label { color: oklch(76% 0.16 75); }
.theme-section .section-label::before { background: oklch(76% 0.16 75); }
.theme-section h2 { color: #fff; font-weight: 620; }
.theme-section .section-desc { color: oklch(68% 0.01 75); }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.theme-item {
  padding: 28px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
}
.theme-item:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}
.theme-item svg { color: oklch(76% 0.16 75); margin-bottom: 14px; }
.theme-item h4 { color: #fff; margin-bottom: 8px; }
.theme-item p { font-size: 14px; line-height: 1.6; color: oklch(68% 0.01 75); }

@media (max-width: 840px) { .theme-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .theme-grid { grid-template-columns: 1fr; } }

/* cta */
.cta-section {
  text-align: center;
  padding: 100px 0 90px;
}
.cta-section .section-desc { margin: 0 auto 36px; }
.cta-section .cta-btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 34ch; }
footer h5 {
  font-size: 12px; font-weight: 510; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg); margin-bottom: 14px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
footer ul a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 20px; margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}

@media (max-width: 768px) {
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  footer .container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

/* animations */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-scale.vis { opacity: 1; transform: scale(1); }
.stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.stagger.vis > * { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0.04s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.12s; }
.stagger > *:nth-child(4) { transition-delay: 0.16s; }
.stagger > *:nth-child(5) { transition-delay: 0.20s; }
.stagger > *:nth-child(6) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .stagger > * { opacity: 1; transform: none; transition: none; }
  *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* mobile nav */
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 14px; flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; }
  .nav-links .nav-cta { align-self: flex-start; }
}

/* tagline stripe */
.tagline-stripe {
  padding: 40px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tagline-stripe .container {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); overflow: hidden;
}
.tagline-stripe .scroller {
  display: flex; gap: 40px; animation: scroll 28s linear infinite;
  white-space: nowrap;
}
.tagline-stripe .scroller span { display: flex; align-items: center; gap: 8px; }
.tagline-stripe .scroller .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* terminal small-screen font-size */
@media (max-width: 640px) { .terminal { font-size: 11.5px; } }
@media (max-width: 400px) { .terminal-body pre { word-break: break-all; } }

/* back to top */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 99;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.back-to-top.vis { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* search in nav */
.nav-search {
  margin-left: 8px;
  display: flex; align-items: center;
}
.search-toggle {
  width: 36px; height: 36px;
  background: none; border: 0;
  color: var(--muted); cursor: pointer;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: color 0.2s, background 0.2s;
}
.search-toggle:hover { color: var(--fg); background: var(--border); }
.search-input {
  width: 0; overflow: hidden;
  transition: width 0.3s, padding 0.3s;
  border: 0; outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px; color: var(--fg);
  padding: 0; border-bottom: 1px solid transparent;
}
.search-input.open { width: 180px; padding: 4px 8px; border-bottom-color: var(--accent); }
.search-input::placeholder { color: var(--muted2); }
@media (max-width: 720px) { .search-input.open { width: 120px; } }

/* typewriter subtitle */
.typewriter-wrap {
  display: inline;
  position: relative;
}
.typewriter-text {
  display: inline;
  color: var(--accent);
}
.typewriter-cursor-char {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}

/* community section */
.community-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.community-item {
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: background 0.25s, transform 0.25s;
}
.community-item:hover {
  background: var(--accent-bg);
  transform: translateY(-2px);
}
.community-item svg {
  width: 28px; height: 28px;
  color: var(--accent); margin-bottom: 12px;
}
.community-item h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 530; margin-bottom: 6px;
}
.community-item p {
  font-size: 13px; color: var(--muted2); line-height: 1.5;
}

@media (max-width: 840px) { .community-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .community-grid { grid-template-columns: 1fr; } }

/* featured posts carousel */
.fp-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.fp-carousel::-webkit-scrollbar { height: 4px; }
.fp-carousel::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.fp-carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.fp-card { flex: 0 0 340px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.fp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.fp-img { height: 140px; background: var(--bg2); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); color: var(--muted2); font-size: 12px; font-family: var(--font-mono); overflow: hidden; }
.fp-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-body { padding: 20px; }
.fp-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.fp-body h4 { font-family: var(--font-display); font-size: 16px; font-weight: 530; margin-bottom: 6px; }
.fp-body p { font-size: 13px; color: var(--muted2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* dashboard metrics */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-card { padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: background 0.25s, transform 0.25s; }
.dash-card:hover { background: var(--accent-bg); transform: translateY(-2px); }
.dash-num { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 620; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.dash-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.dash-sub { font-size: 13px; color: var(--muted2); margin-top: 4px; }

@media (max-width: 680px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .dash-grid { grid-template-columns: 1fr; } }

/* tag cloud */
.tagcloud-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tagcloud-wrap .tag-lg { padding: 8px 18px; font-size: 16px; }
.tagcloud-wrap .tag-md { padding: 6px 14px; font-size: 14px; }
.tagcloud-wrap .tag-sm { padding: 4px 10px; font-size: 12px; }
.tagcloud-item { border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--fg2); font-family: var(--font-mono); transition: all 0.2s; cursor: default; }
.tagcloud-item:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.tagcloud-count { font-size: 0.75em; opacity: 0.6; margin-left: 4px; }

/* tech stack */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.tech-item { padding: 16px 12px; border: 1px solid var(--border); border-radius: 10px; text-align: center; background: var(--surface); transition: all 0.25s; cursor: default; }
.tech-item:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-2px); }
.tech-icon { font-size: 24px; margin-bottom: 8px; }
.tech-name { font-size: 13px; font-weight: 510; }
.tech-desc { font-size: 11px; color: var(--muted2); margin-top: 2px; }

/* testimonials */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.test-card { padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); position: relative; }
.test-card::before { content: '\201C'; position: absolute; top: 12px; left: 16px; font-size: 36px; line-height: 1; color: var(--accent); opacity: 0.2; font-family: Georgia, serif; }
.test-text { font-size: 14px; line-height: 1.6; color: var(--fg2); margin-bottom: 16px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }
.test-info cite { font-style: normal; font-size: 13px; font-weight: 510; }
.test-info span { display: block; font-size: 11px; color: var(--muted2); }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .test-grid { grid-template-columns: 1fr; } }

/* author wall */
.author-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.author-card { padding: 24px; border: 1px solid var(--border); border-radius: 12px; text-align: center; background: var(--surface); transition: all 0.25s; }
.author-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.author-avatar-lg { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; font-family: var(--font-display); color: var(--accent); font-weight: 620; overflow: hidden; }
.author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 530; margin-bottom: 2px; }
.author-card .author-role { font-size: 12px; color: var(--muted2); margin-bottom: 8px; }
.author-card .author-bio { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .author-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .author-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--accent); }
.faq-q { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--font-display); font-size: 16px; font-weight: 510; background: var(--surface); transition: background 0.2s; user-select: none; }
.faq-q:hover { background: var(--accent-bg); }
.faq-q .faq-toggle { width: 20px; height: 20px; transition: transform 0.3s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; background: var(--surface); }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }
.faq-a p { font-size: 14px; color: var(--muted2); line-height: 1.6; }

/* changelog timeline */
.changelog-wrap { max-width: 700px; margin: 0 auto; position: relative; }
.changelog-wrap::before { content: ''; position: absolute; top: 0; bottom: 0; left: 24px; width: 1.5px; background: var(--border); }
.cl-item { position: relative; padding: 0 0 28px 60px; }
.cl-item:last-child { padding-bottom: 0; }
.cl-dot { position: absolute; left: 18px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.cl-item.highlight .cl-dot { background: var(--accent); }
.cl-version { font-family: var(--font-mono); font-size: 14px; font-weight: 510; color: var(--fg); }
.cl-date { font-size: 12px; color: var(--muted); margin-left: 8px; }
.cl-desc { font-size: 14px; color: var(--muted2); margin-top: 4px; }
.cl-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.cl-tags .tag { font-size: 11px; padding: 2px 8px; }

/* github activity */
.gh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gh-card { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: all 0.25s; }
.gh-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.gh-repo { font-family: var(--font-mono); font-size: 13px; font-weight: 510; margin-bottom: 4px; }
.gh-repo svg { vertical-align: middle; margin-right: 4px; }
.gh-desc { font-size: 12px; color: var(--muted2); line-height: 1.5; }
.gh-meta { font-size: 11px; color: var(--muted); margin-top: 8px; display: flex; gap: 10px; }
.gh-meta span { display: flex; align-items: center; gap: 3px; }
@media (max-width: 900px) { .gh-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gh-grid { grid-template-columns: 1fr; } }

/* sponsors grid */
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sponsor-item { padding: 24px; border: 1px solid var(--border); border-radius: 10px; text-align: center; background: var(--surface); transition: all 0.25s; }
.sponsor-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.sponsor-logo { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 10px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sponsor-item h4 { font-family: var(--font-display); font-size: 14px; font-weight: 530; margin-bottom: 2px; }
.sponsor-item p { font-size: 11px; color: var(--muted2); }
.sponsor-tier { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.sponsor-tier.platinum { background: #e8e0d0; color: #8a7a5a; }
.sponsor-tier.gold { background: #f5e8c8; color: #b8962a; }
.sponsor-tier.silver { background: #e8e8f0; color: #7a7a8a; }
@media (max-width: 800px) { .sponsor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sponsor-grid { grid-template-columns: 1fr; } }

/* contributor grid */
.contrib-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.contrib-item { text-align: center; padding: 16px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: all 0.25s; }
.contrib-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.contrib-avatar { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 8px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.contrib-item h5 { font-size: 12px; font-weight: 510; }
.contrib-item .contrib-pr { font-size: 10px; color: var(--muted2); }
@media (max-width: 800px) { .contrib-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px) { .contrib-grid { grid-template-columns: repeat(3, 1fr); } }

/* docs links */
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-card { padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: all 0.25s; }
.doc-card:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-2px); }
.doc-card svg { color: var(--accent); margin-bottom: 10px; }
.doc-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 530; margin-bottom: 4px; }
.doc-card p { font-size: 13px; color: var(--muted2); line-height: 1.5; }
@media (max-width: 800px) { .docs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 450px) { .docs-grid { grid-template-columns: 1fr; } }

/* donate cards */
.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.donate-card { padding: 32px 24px; border: 1px solid var(--border); border-radius: 12px; text-align: center; background: var(--surface); transition: all 0.25s; }
.donate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.donate-card.featured { border-color: var(--accent); background: var(--accent-bg); }
.donate-amount { font-family: var(--font-display); font-size: 28px; font-weight: 620; color: var(--accent); margin-bottom: 8px; }
.donate-card p { font-size: 13px; color: var(--muted2); margin-bottom: 16px; }
@media (max-width: 600px) { .donate-grid { grid-template-columns: 1fr; } }

/* newsletter */
.newsletter-box { max-width: 520px; margin: 0 auto; text-align: center; }
.newsletter-box p { font-size: 14px; color: var(--muted2); margin-bottom: 18px; }
.nl-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.nl-form input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 14px; background: var(--surface); color: var(--fg); outline: none; transition: border-color 0.2s; }
.nl-form input:focus { border-color: var(--accent); }
.nl-form input::placeholder { color: var(--muted2); }
@media (max-width: 480px) { .nl-form { flex-direction: column; } }

/* WordPress admin bar offset */
.admin-bar nav { top: 32px; }
.admin-bar .back-to-top { bottom: 64px; }

/* =============================================
   WordPress content styles
   ============================================= */

/* Single post article styles */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}
.article-content h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.article-content h2 { margin-top: 48px; margin-bottom: 16px; }
.article-content h3 { margin-top: 36px; margin-bottom: 12px; }
.article-content p { margin-bottom: 20px; color: var(--fg2); line-height: 1.75; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 28px; color: var(--fg2); }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-bg);
  border-radius: 0 8px 8px 0;
  color: var(--fg2);
  font-style: italic;
}
.article-content pre {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: oklch(85% 0.02 75);
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-dim);
}
.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.article-content img {
  border-radius: 10px;
  margin: 24px 0;
}
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--accent-dim); }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th, .article-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--bg2);
  font-weight: 530;
}

/* Post meta */
.post-header {
  text-align: center;
  padding: 120px 28px 0;
  max-width: 780px;
  margin: 0 auto;
}
.post-header .blog-card-meta {
  margin-bottom: 16px;
}
.post-header h1 {
  margin-bottom: 16px;
  line-height: 1.15;
}
.post-header .post-excerpt {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.post-featured-img {
  max-width: 1000px;
  margin: 32px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-featured-img img {
  width: 100%;
  display: block;
}

/* Post navigation */
.post-nav {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.post-nav a {
  flex: 1;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: all 0.2s;
}
.post-nav a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.post-nav .nav-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.post-nav .nav-title {
  font-size: 15px;
  font-weight: 510;
}
.post-nav .nav-next { text-align: right; }

/* Comments */
.comments-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px 80px;
}
.comments-area h3 {
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
}
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.comment-author cite {
  font-style: normal;
  font-weight: 510;
  font-size: 14px;
}
.comment-author .comment-date {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.comment-content p {
  color: var(--fg2);
  line-height: 1.7;
  font-size: 14px;
}

/* Sidebar */
.sidebar-area {
  padding: 40px 28px;
}
.sidebar-widget {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--surface);
}
.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 530;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget ul li {
  margin-bottom: 8px;
}
.sidebar-widget ul li a {
  font-size: 14px;
  color: var(--muted2);
  transition: color 0.2s;
}
.sidebar-widget ul li a:hover {
  color: var(--accent);
}

/* Archive & list layout */
.posts-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 28px 80px;
}
.posts-list h1 {
  margin-bottom: 48px;
  text-align: center;
}
.posts-list .blog-card {
  margin-bottom: 24px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 510;
  color: var(--fg);
  background: var(--surface);
  transition: all 0.2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Search page */
.search-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}
.search-page h1 {
  margin-bottom: 12px;
}
.search-page .search-form {
  margin-bottom: 48px;
}
.search-page .search-form .search-field {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--surface);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.search-page .search-form .search-field:focus {
  border-color: var(--accent);
}

/* 404 page */
.error-404 {
  text-align: center;
  padding: 160px 28px 120px;
}
.error-404 h1 {
  font-size: clamp(80px, 12vw, 140px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404 p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* Widget styles */
.wp-block-search__label,
.widget_search label {
  font-size: 13px;
  font-weight: 510;
  color: var(--fg);
  margin-bottom: 6px;
  display: block;
}
.widget_search .search-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--surface);
  color: var(--fg);
  outline: none;
}
.widget_search .search-field:focus {
  border-color: var(--accent);
}
.widget_search .search-submit {
  margin-top: 8px;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 90px 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

/* ===== Hero enhancements ===== */
.hero-particles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at 70% 60%, oklch(78% 0.10 75 / 0.12), transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: var(--accent-bg); border: 1px solid oklch(68% 0.20 75 / 0.2);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.accent-word-gradient {
  background: linear-gradient(135deg, oklch(68% 0.20 75), oklch(72% 0.18 60));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { max-width: 56ch; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.hero-stats-bar {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding: 16px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat strong {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.02em;
}
.hero-stat span { font-size: 12px; color: var(--muted2); letter-spacing: 0.02em; }
.hero-stat-divider { width: 1px; height: 28px; background: var(--border); }
.hero-terminal {
  animation: terminal-float 6s ease-in-out infinite;
}
@keyframes terminal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.terminal-time {
  margin-left: auto; font-family: var(--font-mono);
  font-size: 11px; color: oklch(55% 0.02 75); letter-spacing: 0.02em;
}
.hero-scroll-hint {
  text-align: center; margin-top: 48px;
}
.hero-scroll-hint a {
  display: inline-flex; color: var(--muted2);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Tagline scroller enhancements ===== */
.tagline-stripe { position: relative; overflow: hidden; }
.tagline-mask {
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.tagline-mask-left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tagline-mask-right { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.tagline-icon { vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.scroller:hover { animation-play-state: paused; }

/* ===== Quote section enhancements ===== */
.quote-section { position: relative; }
.quote-mark {
  font-size: 64px; line-height: 1; color: var(--accent);
  font-family: Georgia, serif; vertical-align: -10px; opacity: 0.6;
}

/* ===== Stats section enhancements ===== */
.stat-item { position: relative; }
.stat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent);
  margin: 0 auto 12px;
}
.stat-trend {
  color: #10b981; font-size: 14px; font-weight: 600;
  margin-left: 4px;
}

/* ===== Carousel enhancements ===== */
.carousel-wrapper { position: relative; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg); transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel-arrow-left { left: -20px; }
.carousel-arrow-right { right: -20px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: 0; cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== Community enhancements ===== */
.community-count {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.02em;
}
.community-cta { text-align: center; margin-top: 32px; }

/* ===== Feature cards enhancements ===== */
.feature-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--border); letter-spacing: 0.04em;
}
.feature-card { position: relative; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--icon-gradient, var(--accent-bg));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: 0 4px 12px oklch(68% 0.20 75 / 0.15);
}
.feature-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 14px; font-weight: 510;
  color: var(--accent); transition: gap 0.2s;
}
.feature-link:hover { gap: 8px; }
.feature-card:hover { border-color: oklch(68% 0.20 75 / 0.3); }

/* ===== Tag cloud enhancements ===== */
.tagcloud-more { text-align: center; margin-top: 24px; }
.tagcloud-item:hover { transform: translateY(-2px) scale(1.05); }

/* ===== Terminal enhancements ===== */
.terminal-copy {
  margin-left: auto; background: none; border: 0;
  color: oklch(55% 0.02 75); cursor: pointer;
  padding: 4px; border-radius: 4px; transition: all 0.2s;
}
.terminal-copy:hover { color: #fff; background: oklch(55% 0.02 75 / 0.3); }
.terminal-line-numbers {
  counter-reset: line;
}
.terminal-line-numbers pre::before {
  content: none;
}

/* ===== Testimonials enhancements ===== */
.testimonials-section { padding: 100px 0; background: var(--bg2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.testimonial-quote {
  position: absolute; top: 16px; right: 24px;
  font-size: 56px; line-height: 1; color: var(--accent); opacity: 0.12;
  font-family: Georgia, serif;
}
.testimonial-stars { color: oklch(78% 0.15 85); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--fg); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 510; color: var(--fg); }
.author-role { font-size: 13px; color: var(--muted); }
.testimonials-rating {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 32px;
}
.rating-stars { color: oklch(78% 0.15 85); font-size: 18px; letter-spacing: 2px; }
.rating-text { font-size: 14px; color: var(--muted); font-weight: 510; }

/* ===== Blog enhancements ===== */
.blog-card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-more { text-align: center; margin-top: 32px; }

/* ===== FAQ enhancements ===== */
.faq-search { max-width: 480px; margin: 0 auto 28px; }
.faq-search-input {
  width: 100%; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: var(--surface);
  color: var(--fg); outline: none; transition: border-color 0.2s;
}
.faq-search-input:focus { border-color: var(--accent); }
.faq-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); margin-right: 10px; letter-spacing: 0.04em;
}
.faq-item.faq-hidden { display: none; }
.faq-more { margin-top: 20px; }

/* ===== CTA enhancements ===== */
.cta-section { position: relative; overflow: hidden; }
.cta-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, oklch(18% 0.02 75), oklch(22% 0.03 70), oklch(18% 0.02 75));
  animation: cta-gradient 8s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes cta-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.cta-install { margin-top: 24px; }
.install-command {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  background: oklch(14% 0.015 75); border: 1px solid oklch(30% 0.01 75);
  font-family: var(--font-mono); font-size: 14px; color: oklch(78% 0.01 75);
}
.install-copy {
  background: none; border: 0; color: oklch(55% 0.02 75);
  cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s;
}
.install-copy:hover { color: var(--accent); }
.cta-badges {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 24px; flex-wrap: wrap;
}
.cta-badge {
  padding: 4px 14px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 510;
  background: oklch(100% 0 0 / 0.08); color: oklch(70% 0.01 75);
  border: 1px solid oklch(100% 0 0 / 0.1); letter-spacing: 0.02em;
}
.cta-subscribe { margin-top: 28px; }
.subscribe-form {
  display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}
.subscribe-input {
  flex: 1; padding: 11px 18px;
  border: 1px solid oklch(100% 0 0 / 0.1); border-radius: 10px;
  font-size: 15px; background: oklch(100% 0 0 / 0.06);
  color: #fff; outline: none; transition: border-color 0.2s;
}
.subscribe-input::placeholder { color: oklch(55% 0.01 75); }
.subscribe-input:focus { border-color: var(--accent); }
.subscribe-btn { white-space: nowrap; padding: 11px 24px; }

/* ===== Hero trust indicators ===== */
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
  margin-left: -8px; border: 2px solid var(--bg);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text { font-size: 14px; color: var(--muted); }
.trust-text strong { color: var(--fg); }

/* ===== Scroll progress for homepage ===== */
.home .progress-bar, .blog .progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), oklch(72% 0.16 60));
  width: 0; z-index: 200; transition: width 0.1s linear;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats-bar { gap: 14px; padding: 12px 16px; }
  .hero-terminal { animation: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-btn { width: 100%; justify-content: center; }
  .carousel-arrow { display: none; }
  .feature-num { display: none; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-stats-bar { flex-wrap: wrap; gap: 12px; }
  .hero-stat-divider { display: none; }
  .hero-stat { flex: 1; min-width: 60px; }
  .cta-badges { gap: 8px; }
  .cta-badge { font-size: 11px; padding: 3px 10px; }
  .install-command { font-size: 12px; padding: 8px 12px; }
}