/* ==========================================================================
   CoinPath — Modern Fintech / SaaS Template
   Design System:
     Navy   #0a1628   Coral   #ff6b6b   Gold    #fbbf24
     BG     #f1f5f9   Card    #ffffff   Text    #1e293b
     Muted  #64748b   Border  #e2e8f0
   Font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif
   ========================================================================== */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f1f5f9;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   2. Reading Progress Bar
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, #ff6b6b, #fbbf24);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  height: 60px;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.header--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
  color: #ffffff;
}

.header--solid {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #1e293b;
}

.header--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  height: 60px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  gap: 0;
}

.header__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b6b, #e85d5d);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.header__logo-text {
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 700;
  transition: color 0.3s ease;
}

.header--transparent .header__logo-text {
  color: #ffffff;
}

.header__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header__link {
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  font-weight: 500;
}

.header__link:hover {
  color: #1e293b;
  background-color: rgba(0, 0, 0, 0.04);
}

.header__link--active {
  color: #1e293b;
  background-color: rgba(0, 0, 0, 0.04);
}

.header--transparent .header__link {
  color: rgba(255, 255, 255, 0.85);
}

.header--transparent .header__link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.header--transparent .header__link--active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-tabs {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.lang-tab {
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  border-right: 1px solid #e2e8f0;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  line-height: 1.6;
}

.lang-tab:last-child {
  border-right: none;
}

.lang-tab:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.lang-tab--sel {
  background-color: #0a1628;
  color: #ffffff;
}

.header--transparent .lang-tabs {
  border-color: rgba(255, 255, 255, 0.3);
}

.header--transparent .lang-tab {
  color: rgba(255, 255, 255, 0.7);
  border-right-color: rgba(255, 255, 255, 0.2);
}

.header--transparent .lang-tab--sel {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header__burger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
  gap: 8px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 7px 16px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--coral {
  background-color: #ff6b6b;
  color: #ffffff;
  border: 1px solid transparent;
}

.btn--coral:hover {
  background-color: #e85d5d;
  color: #ffffff;
}

.btn--outline {
  border: 1px solid #e2e8f0;
  color: #1e293b;
  background-color: transparent;
}

.btn--outline:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background-color: transparent;
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--white-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.btn--white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-home {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
  padding: 160px 24px 120px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-home__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-home__title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero-home__desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.hero-home__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-home__badge {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   6. Stats Bar
   ========================================================================== */

.stats-bar {
  margin-top: -48px;
  position: relative;
  z-index: 10;
  padding-left: 24px;
  padding-right: 24px;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.stats-bar__item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stats-bar__item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.stats-bar__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.stats-bar__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ff6b6b;
  line-height: 1.1;
}

.stats-bar__label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   7. Section Base
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section--slate {
  background-color: #dde4ee;
}

.section--white {
  background-color: #ffffff;
}

.section__title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1e293b;
  line-height: 1.3;
}

.section__subtitle {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin-top: -28px;
  margin-bottom: 40px;
}

.section__more {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   8. Category Tabs
   ========================================================================== */

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: inherit;
}

.category-tab:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.category-tab--active {
  background-color: #0a1628;
  color: #ffffff;
  border-color: #0a1628;
}

.category-tab--active:hover {
  background-color: #0a1628;
  color: #ffffff;
  border-color: #0a1628;
}

.category-tab__icon {
  margin-right: 4px;
}

/* ==========================================================================
   9. Bento Grid
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.bento-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.bento-card--featured {
  grid-row: span 2;
}

.bento-card article {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bento-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.bento-card__tags {
  margin-bottom: 8px;
}

.bento-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1e293b;
}

.bento-card--featured .bento-card__title {
  font-size: 1.3rem;
}

.bento-card__excerpt {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.bento-card__date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: auto;
}

/* ==========================================================================
   10. Tag Chip
   ========================================================================== */

.tag-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  text-decoration: none;
  margin-right: 4px;
  margin-bottom: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1.8;
}

.tag-chip:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.tag-chip--coral {
  background-color: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.tag-chip--coral:hover {
  background-color: rgba(255, 107, 107, 0.2);
  color: #e85d5d;
}

/* ==========================================================================
   11. Timeline
   ========================================================================== */

.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.timeline__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ff6b6b;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.timeline__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.timeline__content p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.timeline__line {
  flex: 0 0 40px;
  height: 3px;
  background-color: #ff6b6b;
  opacity: 0.25;
  margin-top: 26px;
  align-self: flex-start;
}

/* ==========================================================================
   12. Posts Grid
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.post-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.post-card__accent {
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #fbbf24);
  flex-shrink: 0;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__tags {
  margin-bottom: 8px;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1e293b;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: auto;
}

/* ==========================================================================
   13. CTA Section
   ========================================================================== */

.cta-section {
  padding: 64px 0;
}

.cta-box {
  background: linear-gradient(135deg, #0a1628, #1a2744);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-box__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-box__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-box__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   14. Post Header Section
   ========================================================================== */

.post-header-section {
  padding: 100px 24px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.post-header__tags {
  margin-bottom: 12px;
}

.post-header__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1e293b;
  margin-bottom: 16px;
}

.post-header__meta {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.meta-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ==========================================================================
   15. Post Layout
   ========================================================================== */

.post-layout {
  padding: 40px 0 64px;
}

.post-layout__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   16. Post Body (Prose)
   ========================================================================== */

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-left: 16px;
  border-left: 4px solid #ff6b6b;
  color: #1e293b;
  line-height: 1.3;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5em 0 0.6em;
  color: #0a1628;
  line-height: 1.4;
}

.post-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.2em 0 0.5em;
  color: #1e293b;
}

.post-body p {
  margin-bottom: 1.2em;
}

.post-body a {
  color: #ff6b6b;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: #e85d5d;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.2em 1.5em;
  list-style: revert;
}

.post-body li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 4px solid #fbbf24;
  padding: 12px 20px;
  margin: 1.5em 0;
  background-color: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: #92400e;
  font-style: italic;
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-body code {
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  color: #e85d5d;
}

.post-body pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.88em;
  line-height: 1.6;
}

.post-body pre code {
  background-color: transparent;
  padding: 0;
  color: #e2e8f0;
  font-size: 1em;
  border-radius: 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.post-body th {
  background-color: #f1f5f9;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  color: #1e293b;
}

.post-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.post-body tr:last-child td {
  border-bottom: none;
}

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}

.post-body strong {
  font-weight: 600;
  color: #1e293b;
}

.post-body em {
  font-style: italic;
}

.post-body hr {
  border: none;
  height: 1px;
  background-color: #e2e8f0;
  margin: 2em 0;
}

.post-body a.btn {
  text-decoration: none;
}

.post-body a.btn--coral {
  color: #ffffff;
}

.post-body a.btn--outline {
  color: #1e293b;
}

/* ==========================================================================
   17. TOC Sidebar
   ========================================================================== */

.toc-sidebar {
  position: relative;
}

.toc-box {
  position: sticky;
  top: 80px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.toc-box__title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 16px;
}

.toc-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-box__item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.toc-box__item a {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
  flex: 1;
}

.toc-box__item:hover a {
  color: #1e293b;
}

.toc-box__item--active a {
  color: #ff6b6b;
  font-weight: 500;
}

.toc-box__item--sub {
  padding-left: 18px;
}

.toc-box__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  margin-right: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toc-box__item--active .toc-box__dot {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* ==========================================================================
   18. Author Card
   ========================================================================== */

.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background-color: #f8fafc;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid #e2e8f0;
}

.author-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #fbbf24);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-card__info {
  flex: 1;
}

.author-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.author-card__desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.5;
}

/* ==========================================================================
   19. Download CTA Card
   ========================================================================== */

.download-cta {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.download-cta__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.download-cta__desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.download-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   20. Related Posts
   ========================================================================== */

.related-section {
  padding: 48px 0 64px;
  border-top: 1px solid #e2e8f0;
}

.related-section__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1e293b;
}

/* ==========================================================================
   21. Breadcrumb
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #ff6b6b;
}

.breadcrumb__sep {
  margin: 0 2px;
  opacity: 0.7;
}

/* ==========================================================================
   22. CTA Inline Card
   ========================================================================== */

.cta-card {
  background: linear-gradient(135deg, #0a1628, #1a2744);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: #ffffff;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cta-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-card__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   23. Posts List Page
   ========================================================================== */

.posts-page-header {
  padding: 100px 24px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.posts-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.posts-page-header p {
  color: #64748b;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.posts-list-section {
  padding: 40px 0 64px;
}

/* ==========================================================================
   24. Tags Page
   ========================================================================== */

.tags-page-header {
  padding: 100px 24px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.tags-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.tags-page-header p {
  color: #64748b;
  margin-top: 8px;
  font-size: 0.95rem;
}

.tags-page-section {
  padding: 40px 0 64px;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.tag-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
  display: block;
}

.tag-card:hover {
  border-color: #ff6b6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tag-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.tag-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.tag-card__count {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ==========================================================================
   25. Static Page
   ========================================================================== */

.static-page {
  padding: 100px 24px 64px;
}

.static-page .container {
  max-width: 800px;
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.3;
}

.static-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-left: 16px;
  border-left: 4px solid #ff6b6b;
  color: #1e293b;
}

.static-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5em 0 0.6em;
  color: #0a1628;
}

.static-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.2em;
}

.static-page ul,
.static-page ol {
  margin: 0 0 1.2em 1.5em;
  color: #334155;
  list-style: revert;
}

.static-page li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.static-page a {
  color: #ff6b6b;
  text-decoration: underline;
}

.static-page a:hover {
  color: #e85d5d;
}

.static-page a.btn--coral {
  color: #ffffff;
  text-decoration: none;
}

.static-page strong {
  font-weight: 600;
  color: #1e293b;
}

.static-page hr {
  border: none;
  height: 1px;
  background-color: #e2e8f0;
  margin: 2em 0;
}

/* ==========================================================================
   26. 404 Page
   ========================================================================== */

.error-page {
  padding: 160px 24px 100px;
  text-align: center;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 8px;
}

.error-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.error-page__desc {
  color: #64748b;
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   27. Footer
   ========================================================================== */

.footer {
  background: linear-gradient(135deg, #0a1628, #0f2035);
  color: rgba(255, 255, 255, 0.8);
}

.footer__main {
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b6b, #e85d5d);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__risk-box {
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  background-color: rgba(255, 255, 255, 0.04);
}

.footer__risk-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 8px;
}

.footer__risk-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  line-height: 1.6;
}

.footer__disclaimer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

/* ==========================================================================
   28. Mobile Bottom Nav
   ========================================================================== */

.mobile-nav {
  display: none;
}

/* ==========================================================================
   29. Responsive Breakpoints
   ========================================================================== */

/* --- 1024px Tablet Landscape --- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--featured {
    grid-row: span 1;
    grid-column: span 2;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-layout__grid {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  .timeline {
    flex-wrap: wrap;
    gap: 24px;
  }

  .timeline__step {
    flex: 0 0 calc(50% - 24px);
  }

  .timeline__line {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__grid > *:first-child {
    grid-column: span 2;
  }
}

/* --- 768px Tablet Portrait / Mobile --- */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .header__nav--open {
    display: flex;
  }

  .header__link {
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #1e293b;
    border-radius: 8px;
  }

  .header__link:hover,
  .header__link--active {
    color: #1e293b;
    background-color: #f1f5f9;
  }

  .header--transparent .header__nav {
    background-color: #0a1628;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .header--transparent .header__nav--open .header__link {
    color: rgba(255, 255, 255, 0.85);
  }

  .header--transparent .header__nav--open .header__link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
  }

  .header__burger {
    display: flex;
  }

  .header__actions .btn {
    display: none;
  }

  .hero-home__title {
    font-size: 2rem;
  }

  .hero-home__desc {
    font-size: 1rem;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    margin-top: -24px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-layout__grid {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid > *:first-child {
    grid-column: span 1;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box__title {
    font-size: 1.4rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline__step {
    flex: unset;
    width: 100%;
    max-width: 360px;
  }

  .timeline__line {
    display: none;
  }

  .post-header__title {
    font-size: 1.6rem;
  }
}

/* --- 480px Small Mobile --- */
@media (max-width: 480px) {
  .hero-home {
    padding: 120px 16px 80px;
  }

  .hero-home__title {
    font-size: 1.6rem;
  }

  .hero-home__desc {
    font-size: 0.95rem;
  }

  .hero-home__actions {
    flex-direction: column;
    align-items: center;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stats-bar__number {
    font-size: 1.6rem;
  }

  .stats-bar__item {
    padding: 16px 12px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .cta-box {
    padding: 32px 20px;
  }

  .cta-box__btns {
    flex-direction: column;
    align-items: center;
  }

  .footer__cta {
    flex-direction: column;
  }

  .posts-page-header,
  .tags-page-header,
  .post-header-section {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .post-header__title {
    font-size: 1.4rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .download-cta__btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   30. Burger Menu Animation
   ========================================================================== */

.header__burger {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #1e293b;
  margin: 4px auto;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.header--transparent .header__burger span {
  background-color: #ffffff;
}

.header__burger--open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.header__burger--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__burger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ==========================================================================
   Mobile Nav Items
   ========================================================================== */

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
  font-weight: 500;
}

.mobile-nav__item--active {
  color: #ff6b6b;
}

.mobile-nav__item:hover {
  color: #64748b;
}

.mobile-nav__item--active:hover {
  color: #ff6b6b;
}

.mobile-nav__item svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Utility & Misc
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #64748b;
}

.text-coral {
  color: #ff6b6b;
}

.text-gold {
  color: #fbbf24;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* Scroll margin for anchor links under fixed header */
[id] {
  scroll-margin-top: 80px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
  border-radius: 4px;
}
