@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ─── MAL DESIGN SYSTEM (Integrated) ─── */

:root {
  /* ─── TYPOGRAPHY ─── */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-sans: 'Syne', system-ui, sans-serif;
  --font-serif: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ─── SPACING ─── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 100px;

  /* ─── RADIUS ─── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* ─── TRANSITIONS ─── */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

:root {
  /* LIGHT MODE (Cream & Vibrant Ink) */
  --accent-main: 355 66.67% 33.3%;
  /* Exact user requested Red */
  --accent-blue: 235 85% 50%;
  /* Secondary Scribble Blue */
  --accent-soft: 355 66.67% 33.3% / 0.1;

  --bg-000: 45 30% 96%;
  /* Paper Cream */
  --bg-050: 45 28% 95%;
  /* Light Cream (Subtle) */
  --bg-100: 45 25% 94%;
  /* Darker Cream (Subtle) */

  --text-000: 0 0% 5%;
  /* Pitch Black Ink */
  --text-100: 0 0% 15%;
  /* Dark Ink */
  --text-200: 0 0% 35%;
  /* Medium Gray */
  --text-faint: 0 0% 55%;
  /* Light Gray Text */

  --border-100: 0 0% 0% / 0.08;
  --border-200: 0 0% 0% / 0.15;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.85);

  --ticket-bg: #ffffff;
  --ticket-border: #e0e0e0;
  --ticket-text-main: #1a1a1a;
  --ticket-text-label: #888888;
  --ticket-sep: #f0f0f0;
  --ticket-photo-bg: #f9f9f9;
}

/* DARK MODE (System or Explicit Class) */
@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    --accent-main: 355 66.67% 45%;
    --accent-blue: 235 85% 65%;
    --accent-soft: 355 66.67% 45% / 0.15;

    --bg-000: 45 8% 10%;
    --bg-050: 45 8% 11.5%;
    --bg-100: 45 8% 13%;

    --text-000: 48 33% 98%;
    --text-100: 50 10% 88%;
    --text-200: 50 9% 75%;
    --text-faint: 50 5% 50%;

    --border-100: 48 33% 97% / 0.08;
    --border-200: 48 33% 97% / 0.18;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(14, 14, 14, 0.85);

    --ticket-bg: #1a1a1a;
    --ticket-border: #333;
    --ticket-text-main: #f1ede8;
    --ticket-text-label: #999;
    --ticket-sep: #444;
    --ticket-photo-bg: #222;
  }
}

body.dark-mode,
[data-theme="dark"],
[data-theme="dark"] body {
  --accent-main: 355 66.67% 45%;
  --accent-blue: 235 85% 65%;
  --accent-soft: 355 66.67% 45% / 0.15;

  --bg-000: 45 8% 10%;
  --bg-050: 45 8% 11.5%;
  --bg-100: 45 8% 13%;

  --text-000: 48 33% 98%;
  --text-100: 50 10% 88%;
  --text-200: 50 9% 75%;
  --text-faint: 50 5% 50%;

  --border-100: 48 33% 97% / 0.08;
  --border-200: 48 33% 97% / 0.18;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(14, 14, 14, 0.85);

  --ticket-bg: #1a1a1a;
  --ticket-border: #333;
  --ticket-text-main: #f1ede8;
  --ticket-text-label: #999;
  --ticket-sep: #444;
  --ticket-photo-bg: #222;
}

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

html {
  scroll-behavior: smooth;
}

*:focus-visible {
  outline: 2px solid hsl(var(--accent-main));
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6, .hero-title, .case-title, .blog-card-title, .feature-step-title, .list-feature-title, .text-display {
  font-family: var(--font-display);
}

body {
  background-color: hsl(var(--bg-000));
  color: hsl(var(--text-000));
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.4;
}

/* ─── MARQUEE ─────────────────────────────────────────────── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
  position: relative;
  border-top: 1px solid hsl(var(--border-100));
  border-bottom: 1px solid hsl(var(--border-100));
  background: hsl(var(--bg-050) / 0.5);
  cursor: grab;
  user-select: none;
  display: flex;
  /* Ensure side-by-side cloned content */
  align-items: center;
}

.marquee-container:active {
  cursor: grabbing;
}

.marquee-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
  flex-shrink: 0;
}

.marquee-item {
  font-size: 64px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: hsl(var(--text-000));
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee-item::after {
  content: '•';
  color: hsl(var(--accent-main));
}

/* ─── UTILITIES ─── */
.text-serif {
  font-family: var(--font-serif);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-accent {
  color: hsl(var(--accent-main));
}

.text-blue {
  color: hsl(var(--accent-blue));
}

.text-muted {
  color: hsl(var(--text-200));
}

.text-faint {
  color: hsl(var(--text-faint));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── BACKGROUND UTILITIES ─── */
.bg-noise {
  position: relative;
}

.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.bg-dotted {
  background-image: radial-gradient(hsl(var(--text-000) / 0.12) 1.2px, transparent 0);
  background-size: 24px 24px;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── COMPONENTS ────────────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: hsl(var(--text-000));
  color: hsl(var(--bg-000));
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--text-000));
  border: 1px solid hsl(var(--border-200));
}

.btn-outline:hover {
  background-color: hsl(var(--bg-050));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--text-100));
}

.btn-ghost:hover {
  background: hsl(var(--bg-050));
  color: hsl(var(--text-000));
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-200));
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: hsl(var(--text-100));
  transition: var(--transition-fast);
  position: relative;
}

.btn-install .prompt {
  color: hsl(var(--accent-main));
  font-weight: 700;
}

.btn-copy {
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-200));
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  color: hsl(var(--text-200));
  transition: all 0.2s;
  margin-left: 8px;
}

.btn-copy:hover {
  background: hsl(var(--bg-300));
  color: hsl(var(--text-000));
}

.btn-copy.copied {
  color: #4caf72;
  border-color: #4caf72;
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(var(--text-200));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Cards & Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: hsl(var(--border-100));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: hsl(var(--bg-000));
  padding: var(--space-xl);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card:hover {
  background: hsl(var(--bg-050));
}

/* Bento Cards */
.bento-grid.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: transparent;
  border: none;
}

.card.small {
  padding: var(--space-lg);
  gap: var(--space-sm);
}

.card.bordered {
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--text-100));
  white-space: nowrap;
}

/* Tabs */
.tabs-control {
  display: flex;
  gap: 4px;
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  padding: 6px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.tab-trigger {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: transparent;
  color: hsl(var(--text-200));
}

.tab-trigger.active {
  background: hsl(var(--text-000));
  color: hsl(var(--bg-000));
}

/* Accordion (FAQ) */
.accordion-item {
  border-bottom: 1px solid hsl(var(--border-100));
}

.accordion-header {
  width: 100%;
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: hsl(var(--text-000));
  transition: color var(--transition-fast);
}

.accordion-header span:last-child {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s var(--transition-base);
  color: hsl(var(--text-100));
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* Terminal */
.terminal {
  background: #0a0a0a;
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f0ede8;
  line-height: 1.6;
}

/* Pricing Card */
.pricing-card {
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.pricing-card.featured {
  border-color: hsl(var(--accent-main));
  box-shadow: 0 0 20px hsl(var(--accent-soft));
}

.price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.period {
  font-size: 14px;
  color: hsl(var(--text-200));
}

/* Notice Banner */
.notice {
  background: hsl(var(--accent-soft));
  border: 1px solid hsl(var(--accent-main) / 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(var(--accent-main));
  font-size: 14px;
  font-weight: 500;
}

/* ─── SITE SPECIFIC STYLES ──────────────────────────────────── */

/* Navigation Shells */
nav.glass {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - var(--space-lg) * 2));
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-full);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

nav.glass-full {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border-100));
  padding: 16px var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  width: 100%;
  justify-content: flex-end;
}

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

.nav-links-scroll a.text-muted {
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links-scroll a.text-muted:hover {
  color: hsl(var(--text-000));
}

.nav-cta-wrapper {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  nav.glass {
    padding: 8px 16px;
    top: 16px;
    width: calc(100% - 32px);
  }

  nav.glass-full {
    padding: 12px 16px;
  }

  .nav-links-container {
    gap: 16px;
  }

  .nav-links-scroll {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
  }

  .nav-links-scroll::-webkit-scrollbar {
    display: none;
  }
}

.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-3xl);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }
}

.hero-title {
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 22px;
  color: hsl(var(--text-200));
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: 48px;
}

/* 3D Ticket */
.ticket-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3D Ticket Vertical (Claude Style) */
.ticket-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ticket {
  width: 300px;
  height: 520px;
  background-color: hsl(var(--bg-000));
  border: 1px solid var(--ticket-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ticket::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 55%,
      transparent 100%);
  pointer-events: none;
  z-index: 5;
  transform: translateZ(20px);
}

.ticket-photo-full {
  width: 100%;
  height: 240px;
  background: var(--ticket-photo-bg);
  overflow: hidden;
  position: relative;
}

.ticket-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.ticket-group {
  margin-bottom: 8px;
}

.ticket-label-sm {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ticket-text-label);
  margin-bottom: 6px;
  opacity: 0.8;
}

.ticket-value-sm {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ticket-text-main);
  letter-spacing: -0.02em;
}

.ticket-signature-area {
  margin: 4px 0 20px;
}

.ticket-signature-svg {
  width: 140px;
  height: 50px;
  opacity: 0.9;
  color: var(--ticket-text-main);
}

.ticket-separator {
  border: none;
  border-top: 1px solid var(--ticket-sep);
  margin: 0 0 20px;
  width: 100%;
  opacity: 0.6;
}

.ticket-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-top: auto;
}

.ticket-meta-col {
  display: flex;
  flex-direction: column;
}

/* ─── PORTFOLIO CASE STUDY ─── */
.portfolio-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
}

@media (max-width: 900px) {
  .portfolio-case {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.case-visual {
  background: transparent;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-stack {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

.portfolio-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border-100));
  background: hsl(var(--bg-050));
  box-shadow: var(--shadow-md);
  cursor: grab;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card:active {
  cursor: grabbing;
}

.case-tag {
  color: hsl(var(--accent-main));
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-title {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* Terminal Section */
.terminal-section {
  border-top: 1px solid hsl(var(--border-100));
  padding: var(--space-3xl) 0;
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
}

/* Terminal Content Classes */
.t-line {
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.t-prompt {
  color: hsl(var(--accent-main));
  font-weight: 700;
  flex-shrink: 0;
}

.t-line.info {
  color: hsl(var(--text-100));
}

.t-line.success {
  color: #4caf72;
}

.t-line.input {
  color: hsl(var(--text-000));
  font-weight: 500;
}

/* Grid Layout Unified Helpers */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card-large {
  grid-column: span 2;
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-subtitle {
    margin-inline: auto;
  }

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

  .card-large {
    grid-column: span 1;
  }
}

/* #MalPensamientos Specifics */
.mal-pensamientos-header {
  margin-bottom: 48px;
}

.mal-pensamientos-tagline {
  font-size: 20px;
  color: hsl(var(--text-200));
  max-width: 600px;
  margin-top: 12px;
}

/* ─── TESTIMONIALS CAROUSEL ────────────────────────────────── */
.testimonials-section {
  padding: var(--space-3xl) 0;
  overflow: hidden;
  background: hsl(var(--bg-050));
  border-top: 1px solid hsl(var(--border-100));
  border-bottom: 1px solid hsl(var(--border-100));
}

.testimonials-section.bg-dotted {
  background-image: radial-gradient(hsl(var(--text-000) / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}


/* ─── SOCIAL CARD (Claude Style) ─── */
.social-card {
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.social-card:hover {
  background: hsl(var(--bg-050));
  transform: translateY(-4px);
  border-color: hsl(var(--accent-main) / 0.3);
  box-shadow: var(--shadow-md);
}

.social-card-header {
  background: hsl(var(--bg-050) / 0.5);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsl(var(--border-100));
}

.social-card-body {
  padding: 20px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: hsl(var(--text-100));
  flex-grow: 1;
}

.social-card-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px dotted hsl(var(--border-100));
}

.social-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--bg-050));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-name {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--text-000));
}

.social-handle {
  font-size: 11px;
  color: hsl(var(--text-200));
  opacity: 0.7;
}

/* Social Card Variants */
.social-card.accent {
  border-left: 4px solid hsl(var(--accent-main));
}

.social-card.pro {
  border-left: 4px solid #a78bfa;
}

/* ─── COMPONENT REFINEMENTS ────────────────────────────────── */

/* Accordion Visibility Fix */
.accordion-content.active {
  padding-bottom: var(--space-lg);
  opacity: 1;
  pointer-events: auto;
}

.accordion-header span:last-child {
  transition: transform var(--transition-base);
}

.accordion-header.active span:last-child {
  transform: rotate(45deg);
}

/* Mentorship / Featured Pricing Class */
.pricing-card.mentorship {
  background: hsl(var(--accent-soft));
  border-color: hsl(var(--accent-main) / 0.3);
}

.pricing-card.mentorship h2 {
  color: hsl(var(--accent-main));
}

/* ─── FEATURE STEPPER ─── */
.feature-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.feature-step {
  padding: 24px;
  border-top: 1px solid hsl(var(--border-100));
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
}

.feature-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: hsl(var(--accent-main));
  transform: scaleY(0);
  transition: var(--transition-base);
}

.feature-step.active {
  background: hsl(var(--bg-050) / 0.5);
}

.feature-step.active::before {
  transform: scaleY(1);
}

.feature-step-title {
  font-weight: 700;
  font-size: 18px;
  color: hsl(var(--text-000));
}

.feature-step-desc {
  font-size: 14px;
  color: hsl(var(--text-200));
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-base);
}

.feature-step.active .feature-step-desc {
  max-height: 100px;
}

/* ─── MIND MAP VISUAL ─── */
.mind-map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.mind-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mind-map-center {
  z-index: 10;
  background: hsl(var(--bg-000));
  border: 2px solid hsl(var(--border-100));
  padding: 20px 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  font-size: 28px;
  color: hsl(var(--text-000));
  font-family: var(--font-serif);
}

.mind-map-node {
  position: absolute;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--text-100));
  background: hsl(var(--bg-000));
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mind-map-node:hover {
  color: hsl(var(--accent-main));
  transform: scale(1.1);
}

.mind-map-node.category {
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--text-000));
}

/* ─── METRIC BADGE ─── */
.metric-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 16px 24px;
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  gap: 4px;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  color: hsl(var(--accent-main));
  line-height: 1;
}

.metric-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--text-200));
}

/* ─── PLUGIN CARD (Side Card) ─── */
.plugin-card {
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plugin-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #E5866E;
  /* Featured color from image */
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 40px;
}

.plugin-card-title {
  font-size: 15px;
  font-weight: 700;
  color: hsl(var(--text-000));
  line-height: 1.3;
}

.plugin-card-desc {
  font-size: 13px;
  color: hsl(var(--text-100));
  line-height: 1.5;
}

/* ─── LIST FEATURE (Center List) ─── */
.list-features {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid hsl(var(--border-100));
}

.list-feature-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid hsl(var(--border-100));
}

@media (max-width: 800px) {
  .list-feature-item {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 40px 0;
  }

  .list-feature-title {
    font-size: 22px;
  }
}

.list-feature-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.list-feature-icon {
  font-size: 24px;
  color: hsl(var(--text-000));
  flex-shrink: 0;
  margin-top: 4px;
}

.list-feature-title {
  font-size: 28px;
  font-weight: 700;
  color: hsl(var(--text-000));
  line-height: 1.1;
  font-family: var(--font-serif);
}

.list-feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-feature-points li {
  position: relative;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: hsl(var(--text-100));
}

.list-feature-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: hsl(var(--text-faint));
  font-size: 24px;
  line-height: 1;
}

/* ─── STACKED CARDS WRAPPER ─── */
.stacked-cards-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 280px;
  margin-bottom: 40px;
}

.stacked-card {
  position: absolute;
  inset: 0;
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stacked-card:nth-child(3) {
  transform: translate(16px, 16px);
  z-index: 1;
  opacity: 1;
}

.stacked-card:nth-child(2) {
  transform: translate(8px, 8px);
  z-index: 2;
  opacity: 1;
}

.stacked-card:nth-child(1) {
  transform: translate(0, 0);
  z-index: 3;
  opacity: 1;
  box-shadow: var(--shadow-md);
}

/* ─── PAGINATION CONTROLS ─── */
.pagination-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pagination-dots {
  display: flex;
  gap: 8px;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--border-200));
}

.dot-indicator.active {
  background: hsl(var(--accent-main));
  width: 12px;
  border-radius: 3px;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid hsl(var(--border-100));
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: hsl(var(--bg-000));
  transition: var(--transition-fast);
  color: hsl(var(--text-200));
}

.nav-arrow:hover {
  background: hsl(var(--bg-050));
  border-color: hsl(var(--text-000));
  color: hsl(var(--text-000));
}

/* ─── CHAOTIC TEXT LOGIC ─── */
.text-cluster-container {
  padding: 100px 40px;
  background: hsl(var(--bg-000));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  width: 100%;
}

.text-cluster-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.text-cluster-base {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  color: hsl(var(--text-000));
  letter-spacing: -0.04em;
  line-height: 1;
}

.vibrant-tag {
  padding: 10px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: clamp(24px, 4.5vw, 54px);
  display: inline-block;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vibrant-tag.green {
  background: #00E676;
  color: #000;
  transform: rotate(-3deg);
}

.vibrant-tag.blue {
  background: hsl(var(--accent-blue));
  color: #fff;
  transform: rotate(4deg);
}

.vibrant-tag.accent {
  background: hsl(var(--accent-main));
  color: #fff;
  transform: rotate(-2deg);
}

.vibrant-tag:hover {
  transform: scale(1.05) rotate(0deg);
}

.text-cluster-visual {
  width: 60px;
  height: 60px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

@keyframes float {

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

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* ─── BLOG & EDITORIAL ─────────────────────────────────────── */

.blog-card {
  display: flex;
  flex-direction: column;
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
  cursor: pointer;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: hsl(var(--border-200));
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: hsl(var(--bg-100));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(var(--border-100));
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(var(--text-200));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-size: 22px;
  font-weight: 700;
  color: hsl(var(--text-000));
  line-height: 1.25;
  margin: 0;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: hsl(var(--accent-main));
}

.blog-card-excerpt {
  font-size: 15px;
  color: hsl(var(--text-100));
  line-height: 1.6;
  flex-grow: 1;
}

/* Author Meta */
.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dotted hsl(var(--border-200));
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--bg-100));
  overflow: hidden;
  border: 1px solid hsl(var(--border-200));
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--text-000));
}

.author-date {
  font-size: 12px;
  color: hsl(var(--text-200));
}

/* Filter / Categories */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--text-100));
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.filter-chip:hover {
  background: hsl(var(--border-200));
  color: hsl(var(--text-000));
}

.filter-chip.active {
  background: hsl(var(--text-000));
  color: hsl(var(--bg-000));
  border-color: hsl(var(--text-000));
}

/* ─── ARTICLE COMPONENTS (Single Post View) ─── */

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.article-header {
  margin-top: 120px;
  margin-bottom: 60px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: hsl(var(--text-200));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.article-meta .dot-separator {
  color: hsl(var(--border-200));
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--text-000));
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: hsl(var(--text-100));
  font-family: var(--font-sans);
  font-weight: 400;
  opacity: 0.9;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  background: hsl(var(--bg-100));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  border: 1px solid hsl(var(--border-100));
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Prose (Typography flow for Markdown content) */
.prose {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.6;
  color: hsl(var(--text-100));
}

.prose p {
  margin-bottom: 32px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: hsl(var(--text-000));
  margin-top: 60px;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: hsl(var(--text-000));
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.prose a {
  color: hsl(var(--accent-main));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: var(--transition-fast);
}

.prose a:hover {
  color: hsl(var(--accent-blue));
  text-decoration-thickness: 2px;
}

.prose ul,
.prose ol {
  margin-bottom: 32px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 12px;
}

.prose li::marker {
  color: hsl(var(--accent-main));
  font-weight: bold;
}

.prose blockquote {
  border-left: 4px solid hsl(var(--accent-main));
  padding-left: 24px;
  margin-left: 0;
  margin-right: 0;
  font-size: 24px;
  font-style: italic;
  color: hsl(var(--text-000));
  margin-bottom: 32px;
  background: linear-gradient(90deg, hsl(var(--accent-soft)) 0%, transparent 100%);
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 40px 0;
  border: 1px solid hsl(var(--border-100));
}

.prose figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: hsl(var(--text-200));
  margin-top: -24px;
  margin-bottom: 40px;
}

/* Expanded Author Box for End of Article */
.article-author-box {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: hsl(var(--bg-050));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-lg);
  margin-top: 80px;
  margin-bottom: 40px;
}

.article-author-box .author-avatar {
  width: 80px;
  height: 80px;
}

.author-box-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-box-name {
  font-size: 20px;
  font-weight: 800;
  color: hsl(var(--text-000));
  font-family: var(--font-sans);
}

.author-box-bio {
  font-size: 15px;
  color: hsl(var(--text-100));
  font-family: var(--font-sans);
  line-height: 1.5;
}