:root, [data-theme="light"] {
  --bg: #eef3f2;
  --bg-deep: #0c1a1f;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #102027;
  --muted: #5b6b73;
  --accent: #0f8f8a;
  --accent-2: #1bb8a8;
  --accent-soft: rgba(15, 143, 138, 0.12);
  --border: rgba(16, 32, 39, 0.1);
  --shadow: 0 18px 50px rgba(12, 26, 31, 0.12);
  --header-bg: rgba(244, 248, 247, 0.82);
  --footer-bg: rgba(255, 255, 255, 0.45);
  --prose-bg: rgba(255, 255, 255, 0.84);
  --prose-text: #2b3b42;
  --page-grad: linear-gradient(180deg, #f4f8f7 0%, var(--bg) 40%, #e8efed 100%);
  --radius: 18px;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1418;
  --bg-deep: #061014;
  --surface: rgba(18, 32, 38, 0.88);
  --text: #e7f4f1;
  --muted: #9bb0b6;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border: rgba(231, 244, 241, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(8, 16, 20, 0.86);
  --footer-bg: rgba(8, 16, 20, 0.72);
  --prose-bg: rgba(14, 26, 32, 0.92);
  --prose-text: #c9d9de;
  --page-grad: linear-gradient(180deg, #0d181d 0%, var(--bg) 45%, #0a1216 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(27, 184, 168, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(15, 143, 138, 0.12), transparent 50%),
    var(--page-grad);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none !important;
}
.brand-mark {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 143, 138, 0.25);
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chrome-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.is-on {
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-btn { font-size: 0.95rem; font-weight: 600; }
.link-quiet {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 0;
  box-shadow: 0 10px 24px rgba(15, 143, 138, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15, 143, 138, 0.34); }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.5); }

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4fffd;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 18, 22, 0.35) 0%, rgba(8, 18, 22, 0.72) 55%, rgba(8, 18, 22, 0.92) 100%),
    url("/images/marketing/hero-aso.jpg") center/cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute;
  inset: auto auto 10% -10%;
  width: 50%;
  height: 40%;
  background: radial-gradient(circle, rgba(27, 184, 168, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(20px);
  animation: pulseGlow 6s ease-in-out infinite;
}
.hero-inner { padding: 120px 0 64px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ff3e8;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 11ch;
  animation: riseIn 0.8s ease both;
}
.hero-lead {
  max-width: 38rem;
  color: rgba(244, 255, 253, 0.82);
  font-size: 1.05rem;
  margin: 0 0 28px;
  animation: riseIn 0.9s ease 0.08s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 1s ease 0.14s both;
}
.hero .btn { box-shadow: 0 12px 30px rgba(0,0,0,0.28); }
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.section p.lead { margin: 0; color: var(--muted); }

.feature-grid,
.post-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card,
.post-card,
.pillar-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.feature-card,
.pillar-card { padding: 22px; }
.feature-card h3,
.pillar-card h3,
.post-card h3 {
  font-family: var(--display);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.feature-card p,
.pillar-card p,
.post-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 14px;
}

.post-card {
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(12, 26, 31, 0.16);
}
.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-soft);
}
.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.post-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.post-card .body > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.post-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.band {
  background: var(--bg-deep);
  color: #e7f7f4;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(27,184,168,0.35), transparent 70%);
}
.band h2 { color: #fff; }
.band .lead { color: rgba(231, 247, 244, 0.72); }
.band-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.stat span { color: rgba(231,247,244,0.7); font-size: 0.85rem; }

.page-hero {
  padding: 56px 0 20px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  line-height: 1.05;
  max-width: 16ch;
}
.page-hero p {
  max-width: 42rem;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.prose-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0 72px;
}
.article-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 80px;
}
.article-header {
  margin-bottom: 28px;
}
.article-back {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.article-back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.article-back a:hover { text-decoration: underline; }
.article-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.article-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}
.blog-count {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.blog-section { padding-top: 8px; padding-bottom: 72px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pagination-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pagination-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.prose {
  background: var(--prose-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.article-prose { padding: clamp(24px, 4vw, 44px); }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.prose h1 { margin-top: 0; }
.prose p, .prose li { color: var(--prose-text); }
.prose-body {
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.prose-body > *:first-child { margin-top: 0; }
.prose-body p { margin: 1.15em 0 0; }
.prose-body h2 {
  margin: 2.2em 0 0.75em;
  font-size: 1.45rem;
  color: var(--text);
}
.prose-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.2rem;
  color: var(--text);
}
.prose-body ul,
.prose-body ol {
  margin: 1em 0 0;
  padding-left: 1.35em;
}
.prose-body li { margin: 0.35em 0; }
.prose-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-body blockquote {
  margin: 1.5em 0 0;
  padding: 0.75em 1.25em;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.prose-body pre {
  margin: 1.5em 0 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  padding: 1rem 1.15rem;
  font-size: 0.9em;
  line-height: 1.55;
}
.prose-body :not(pre) > code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  border-radius: 6px;
  padding: 0.12em 0.4em;
  background: var(--accent-soft);
  color: var(--accent);
}
.prose-body table {
  width: 100%;
  margin: 1.5em 0 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose-body th,
.prose-body td {
  border: 1px solid var(--border);
  padding: 0.55em 0.75em;
  text-align: left;
}
.prose-body th {
  background: var(--accent-soft);
  font-weight: 700;
}
.prose-body img,
.prose-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.prose-body figure.img-wide img,
.prose-body img.img-wide,
.prose-body figure.img-full img,
.prose-body img.img-full {
  width: 100%;
  margin: 1.75em auto 0;
  display: block;
}
.prose-body figure {
  margin: 1.75em 0 0;
}
.prose-body figure.img-align-center,
.prose-body img.img-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.prose-body figure.img-align-left,
.prose-body img.img-align-left {
  float: left;
  margin: 0.5rem 1.25rem 1rem 0;
  max-width: min(100%, 420px);
}
.prose-body figure.img-align-right,
.prose-body img.img-align-right {
  float: right;
  margin: 0.5rem 0 1rem 1.25rem;
  max-width: min(100%, 420px);
}
.prose-body figcaption {
  margin-top: 0.65em;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.prose-body figcaption .image-caption { display: block; }
.prose-body figcaption .image-credit {
  display: block;
  margin-top: 0.35em;
  font-size: 0.72rem;
  opacity: 0.85;
}
.prose-body::after {
  content: "";
  display: table;
  clear: both;
}
.prose-body hr {
  margin: 2em 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.prose img {
  width: 100%;
  border-radius: 14px;
  margin: 18px 0;
}
.cover-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.nav-toggle { display: none; font-size: 1rem; }
.nav-mobile {
  display: none;
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .link-quiet { display: none; }
  .nav-mobile:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 6px);
    left: 16px;
    right: 16px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav-mobile a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
  }
  .nav-mobile a:hover { background: var(--accent-soft); color: var(--accent); }
  .site-header .wrap { position: relative; }
  .prose-body figure.img-align-left,
  .prose-body img.img-align-left,
  .prose-body figure.img-align-right,
  .prose-body img.img-align-right {
    float: none;
    margin: 1.25em auto 0;
    max-width: 100%;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding-bottom: 72px;
}
.panel { padding: 24px; }
.panel h3 { margin-top: 0; font-family: var(--display); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.footer-brand { margin-bottom: 10px; }
.footer-copy { color: var(--muted); max-width: 28ch; margin: 0; font-size: 0.92rem; }
.footer-title {
  font-weight: 800;
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  margin: 6px 0;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(8%); }
}

@media (max-width: 920px) {
  .feature-grid,
  .post-grid,
  .pillar-grid,
  .footer-grid,
  .band-grid,
  .contact-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-inner { padding-top: 96px; }
  .article-layout { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .header-actions .btn { padding: 0 14px; height: 38px; font-size: 0.82rem; }
  .chrome-controls { gap: 2px; }
  .chip { min-width: 30px; height: 28px; padding: 0 8px; }
}
