/* ═══════════════════════════════════════════════
   JetJournals Design System v3
   Modern geometric · Space Grotesk + Inter
   Primary: hsl(17, 100%, 60%) coral
   ═══════════════════════════════════════════════ */

:root {
  --primary-h: 17;
  --primary-s: 100%;
  --primary-l: 60%;
  --primary: hsl(var(--primary-h) var(--primary-s) var(--primary-l));
  --primary-light: hsl(17 100% 96%);
  --primary-medium: hsl(17 80% 85%);
  --primary-dark: hsl(17 80% 45%);
  --primary-deep: hsl(17 60% 30%);
  --primary-glow: hsl(17 100% 60% / 0.18);

  --accent: hsl(230 60% 56%);
  --accent-light: hsl(230 60% 95%);

  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --bg-warm: #fdf8f5;
  --bg-cool: #f5f5f7;
  --surface: #ffffff;

  --text: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;

  --border: #e8e6e3;
  --border-strong: #d0cdc9;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 8px 30px hsl(17 100% 60% / 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1100px;
  --content-w: 680px;
}

/* ─── Reset ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* ─── Grain ───────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ─── Animations ──────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes morph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes grow-line {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate]:nth-child(2) {
  transition-delay: 0.06s;
}

[data-animate]:nth-child(3) {
  transition-delay: 0.12s;
}

[data-animate]:nth-child(4) {
  transition-delay: 0.18s;
}

/* ─── Navigation ──────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-link-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: all 0.3s var(--ease);
}

.nav-link-cta:hover {
  background: var(--primary);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.nav-cta-icon {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  overflow: hidden;
}

.nav-cta-icon svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Main ────────────────────────────────── */
.main {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
}

/* ─── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 24px 120px;
  overflow: hidden;
  background: var(--bg);
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content-centered {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  animation: pulse-ring 2s ease-out infinite;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}

.hero-eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  animation: pulse-ring 2s ease-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-content-centered .hero-excerpt {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--text);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.35s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-cta span {
  position: relative;
  z-index: 1;
}

.hero-cta-arrow {
  display: flex;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  position: relative;
  z-index: 1;
}

.hero-cta-arrow svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.hero-cta:hover .hero-cta-arrow svg {
  transform: translateX(3px);
}

.hero-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta {
  margin-bottom: 28px;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.hero-author-name {
  font-weight: 600;
  font-size: 14px;
}

.hero-author-date {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-cover-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}

.hero-visual:hover .hero-cover-img {
  transform: scale(1.02);
}

.hero-cover-placeholder {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cool));
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-placeholder-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, var(--text) 1px, transparent 0);
  background-size: 24px 24px;
}

.hero-placeholder-icon {
  color: var(--primary);
  opacity: 0.15;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  overflow: hidden;
}

.hero-placeholder-icon svg {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}

.hero-float {
  position: absolute;
  color: var(--primary);
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

.hero-float svg {
  width: 100%;
  height: 100%;
}

.hero-float-1 {
  top: 10%;
  right: 5%;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  animation: float 7s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 15%;
  left: -5%;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  animation: float 9s ease-in-out infinite 2s;
}

.hero-float-3 {
  top: 50%;
  right: -3%;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  animation: float 5s ease-in-out infinite 1s;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  animation: morph 15s ease-in-out infinite alternate;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: hsl(17 100% 60% / 0.04);
  top: -250px;
  right: -150px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: hsl(230 60% 56% / 0.03);
  bottom: -150px;
  left: -100px;
  animation-delay: 5s;
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  background: hsl(17 80% 45% / 0.03);
  top: 30%;
  left: 60%;
  animation-delay: 10s;
}

/* ─── Section Helpers ──────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.section-view-all:hover {
  border-color: var(--text);
  color: var(--text);
}

.section-view-all-arrow {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  overflow: hidden;
  display: flex;
}

.section-view-all-arrow svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  transition: transform 0.3s;
}

.section-view-all:hover .section-view-all-arrow svg {
  transform: translateX(3px);
}

/* ─── Pillars (Features v2) ────────────────── */
.pillars {
  padding: 80px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pillars-header {
  text-align: center;
  margin-bottom: 56px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  background: var(--surface);
  padding: 40px 32px;
  transition: background 0.3s;
}

.pillar:hover {
  background: var(--bg-warm);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.pillar:hover .pillar-num {
  opacity: 0.5;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── Manifesto (replaces Quote) ───────────── */
.manifesto {
  padding: 120px 24px;
  background: var(--text);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, hsl(17 100% 60% / 0.06) 0%, transparent 60%);
}

.manifesto-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 28px;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.5px;
}

.manifesto-line {
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 28px auto;
  border-radius: 1px;
}

.manifesto-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* ─── Page Hero ────────────────────────────── */
.page-hero {
  padding: 80px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

.page-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-line {
  position: absolute;
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.page-hero-line:nth-child(1) {
  left: 20%;
  top: 10%;
}

.page-hero-line:nth-child(2) {
  left: 75%;
  top: 15%;
  height: 60px;
}

.page-hero-line:nth-child(3) {
  left: 50%;
  top: 5%;
  height: 140px;
  opacity: 0.4;
}

.subscribe-page-icon {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  color: var(--primary);
  margin: 0 auto 16px;
  overflow: hidden;
}

.subscribe-page-icon svg {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
}

/* ─── Post Cards ───────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.post-card-featured {
  grid-column: 1 / -1;
}

.post-card-featured .card-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.card-cover {
  height: 200px;
  overflow: hidden;
  background: var(--bg-cool);
  position: relative;
}

.post-card-featured .card-cover {
  height: 100%;
  min-height: 280px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .card-cover img {
  transform: scale(1.04);
}

.card-cover-gen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cool));
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
  position: relative;
}

.card-cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, var(--text) 1px, transparent 0);
  background-size: 18px 18px;
}

.card-cover-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.08;
  transition: opacity 0.4s;
}

.post-card:hover .card-cover-title {
  opacity: 0.14;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.card-tag svg {
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
}

.card-date {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}

.post-card:hover .card-title {
  color: var(--primary-dark);
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-read-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-arrow {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s;
  overflow: hidden;
}

.card-arrow svg {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
}

.post-card:hover .card-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

/* ─── Subscribe Banner ─────────────────────── */
.subscribe-banner {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}

.subscribe-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.subscribe-orb {
  position: absolute;
  border-radius: 50%;
  animation: morph 12s ease-in-out infinite alternate;
}

.subscribe-orb-1 {
  width: 400px;
  height: 400px;
  background: hsl(17 100% 60% / 0.06);
  top: -150px;
  right: -100px;
}

.subscribe-orb-2 {
  width: 250px;
  height: 250px;
  background: hsl(230 60% 56% / 0.04);
  bottom: -80px;
  left: -60px;
  animation-delay: 4s;
}

.subscribe-orb-3 {
  width: 160px;
  height: 160px;
  background: hsl(17 100% 60% / 0.05);
  top: 40%;
  left: 55%;
  animation-delay: 8s;
}

.subscribe-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: radial-gradient(circle at 1px 1px, var(--text) 1px, transparent 0);
  background-size: 28px 28px;
}

.subscribe-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.subscribe-icon {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  margin: 0 auto 20px;
  color: var(--primary);
  overflow: hidden;
}

.subscribe-icon svg {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subscribe-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.subscribe-form {
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-input-wrap {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.subscribe-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.subscribe-input {
  flex: 1;
  padding: 13px 20px;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.subscribe-input::placeholder {
  color: var(--text-muted);
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: var(--primary);
}

.subscribe-btn-icon {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: flex;
  overflow: hidden;
}

.subscribe-btn-icon svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
}

.subscribe-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

.subscribe-msg.success {
  color: #16a34a;
}

.subscribe-msg.error {
  color: #dc2626;
}

.subscribe-social-proof {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subscribe-avatars {
  display: flex;
}

.subscribe-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: hsl(var(--hue) 50% 50%);
  border: 2px solid white;
  margin-left: calc(var(--i) * -1px - 6px);
}

.subscribe-avatar:first-child {
  margin-left: 0;
}

.subscribe-proof-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Article ──────────────────────────────── */
.article {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--primary);
}

.article-back svg {
  max-width: 14px !important;
  max-height: 14px !important;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.meta-sep {
  opacity: 0.3;
}

.article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  background: var(--bg-cool);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.article-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-display);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.article-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 2px solid var(--primary);
  padding-left: 16px;
}

.article-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.article-body blockquote {
  border-left: 2px solid var(--primary);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.article-body code {
  background: var(--bg-cool);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: var(--font-mono);
}

.article-body pre {
  background: var(--text);
  color: #e0e0e0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.9em;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}

.article-actions {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.share-chip {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  overflow: hidden;
}

.share-chip:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* ─── Empty / Success ──────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  margin: 0 auto 16px;
  color: var(--primary);
  overflow: hidden;
}

.empty-icon svg {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

.success-check {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ─── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text);
  color: white;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--primary);
  color: white;
}

/* ─── Pagination ───────────────────────────── */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.25s;
}

.pagination-link:hover {
  border-color: var(--text);
  color: var(--text);
}

.pagination-info {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── Footer ───────────────────────────────── */
.footer {
  background: var(--bg-warm);
  color: var(--text);
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo-icon svg {
  width: 32px;
  height: 32px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.footer-tag {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-newsletter {
  max-width: 280px;
}

.footer-newsletter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-subscribe-form {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  transition: all 0.3s;
  background: var(--surface);
}

.footer-subscribe-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.footer-input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-width: 0;
}

.footer-input::placeholder {
  color: var(--text-muted);
}

.footer-sub-btn {
  padding: 10px 16px;
  background: var(--text);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.footer-sub-btn svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
}

.footer-sub-btn:hover {
  background: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── Mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-cover-img {
    height: 240px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card-featured .card-link {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 20px;
  }

  .subscribe-input-wrap {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .subscribe-btn {
    border-radius: 0 0 var(--radius) var(--radius);
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-newsletter {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .card-body {
    padding: 16px;
  }

  .manifesto-text {
    font-size: 1.4rem;
  }
}