/* ============================================
   ArcheMotion — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-base: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-gold: #C9A84C;
  --color-gold-light: #E8C547;
  --color-gold-glow: rgba(201, 168, 76, 0.25);
  --color-purple: #6B3FA0;
  --color-purple-light: #8B5CF6;
  --color-purple-glow: rgba(107, 63, 160, 0.15);
  --color-black: #1A1A2E;
  --color-black-soft: #2D2D44;
  --color-muted: #6B7280;
  --color-muted-light: #9CA3AF;
  --color-border: #E5E5E0;
  --color-border-hover: #D4D4CF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04), 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06), 0 2px 4px rgba(26, 26, 46, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.08), 0 4px 8px rgba(26, 26, 46, 0.04);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}


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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-base);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }

p {
  color: var(--color-muted);
  max-width: 65ch;
}


/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}


/* ============================================
   AdSense Banner (Top)
   ============================================ */
.adsense-banner {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-purple-light), var(--color-gold-light));
  background-size: 200% 100%;
  animation: gradientFlow 4s ease infinite;
  display: block;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-purple), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-brand .brand-text,
.nav-brand-text {
  background: linear-gradient(135deg, var(--color-purple), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-tagline {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 400;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-md);
  line-height: 1.3;
}

.nav-tagline .welcome-text {
  color: var(--color-black);
  font-weight: 700;
  margin-right: 4px;
}

@media (max-width: 960px) {
  .nav-tagline {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1.25rem);
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-black);
}

.nav-sponsor-link {
  color: #d97706 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.nav-sponsor-link:hover {
  color: #b45309 !important;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

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

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


/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-xl);
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background decorations */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-purple-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-purple), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-muted);
  margin: 0 auto var(--space-xl);
  max-width: 880px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  color: white;
  box-shadow: 0 4px 16px rgba(107, 63, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 63, 160, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-black);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .arrow {
  transform: translateX(3px);
}


/* ============================================
   Projects Section
   ============================================ */
.projects {
  padding: var(--space-xl) 0 var(--space-4xl) 0;
  position: relative;
}

/* Projects Top Divider */
.projects-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 2.5rem 0;
  width: 100%;
}

/* Local First Notice */
.local-first-notice {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  margin: 0 auto var(--space-lg) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--color-muted);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.local-first-notice:hover {
  box-shadow: var(--shadow-md);
}

.local-first-notice .notice-icon {
  font-size: 0.8rem;
}

.local-first-notice .notice-text strong {
  color: var(--color-black);
  font-weight: 600;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Category filter */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-black);
}

.filter-btn.active {
  background: var(--color-black);
  color: white;
  border-color: var(--color-black);
}

/* ============================================
   Featured Live Project Showcase Billboard
   ============================================ */
.featured-showcase-wrapper {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.featured-showcase-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border: 1.5px solid var(--color-border-hover);
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: 0 12px 36px rgba(107, 63, 160, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.featured-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669, #6B3FA0, #3B82F6, #06B6D4);
  background-size: 300% 100%;
}

.featured-showcase-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 16px 45px rgba(107, 63, 160, 0.12), 0 0 0 1px var(--color-gold-glow);
}

.showcase-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.showcase-badge-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.spotlight-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-showcase-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-showcase-control:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.04);
}

.showcase-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.showcase-nav-btn:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.06);
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.showcase-dot.active {
  width: 22px;
  background: var(--color-purple);
  border-radius: 10px;
}

/* Side-by-Side Ad Body */
.showcase-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.showcase-body.animating {
  opacity: 0;
  transform: translateY(6px);
}

.showcase-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  min-width: 170px;
}

.showcase-icon-box {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all var(--transition-base);
}

.showcase-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-left:hover .showcase-icon-box {
  transform: scale(1.06) rotate(-2deg);
  border-color: var(--color-gold);
}

.showcase-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
}

.btn-showcase-details {
  margin-left: 0 !important;
  font-size: 0.72rem !important;
  padding: 0.28rem 0.5rem !important;
}

.showcase-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.showcase-title-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.showcase-title {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
  line-height: 1.2;
}

.showcase-tagline {
  font-size: 1.02rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 4px 0 10px 0;
}

.showcase-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 8px 0 10px 0;
  padding: 0;
  list-style: none;
}

.showcase-feature-item {
  font-size: 0.88rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Progress bar */
.showcase-progress-track {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-top: var(--space-lg);
  overflow: hidden;
  position: relative;
}

.showcase-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
  border-radius: 2px;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .featured-showcase-card {
    padding: var(--space-lg);
  }
  .showcase-body {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .showcase-left {
    min-width: 100%;
    align-items: center;
  }
  .showcase-actions {
    flex-direction: row;
    justify-content: center;
  }
  .showcase-title-row {
    justify-content: center;
  }
  .showcase-features-list {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

/* Project Card */
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;

  /* For scroll animation */
  opacity: 0;
  transform: translateY(30px);

  display: flex;
  flex-direction: column;
}

.card-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-gold-glow);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 1px);
}

.project-card:hover .card-icon {
  border-color: var(--color-gold);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

.card-status {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-status.live {
  background: #ECFDF5;
  color: #059669;
}

.card-status.coming-soon {
  background: #FFF7ED;
  color: #D97706;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.card-tagline {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Card Languages */
.card-languages {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  align-items: center;
}

.card-languages .lang-label {
  font-size: 0.75rem;
  color: var(--color-muted-light);
  margin-right: 4px;
  font-weight: 500;
}

.card-languages .flag-icon {
  font-size: 1.15rem;
  line-height: 1;
  cursor: help;
  transition: transform var(--transition-fast);
}

.card-languages .flag-icon:hover {
  transform: scale(1.2);
}

/* Card Details Accordion Panel */
.btn-toggle-details {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  margin-left: auto;
}

.btn-toggle-details:hover {
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.04);
}

.arrow-icon {
  transition: transform var(--transition-base);
}

/* Flagship Card: Soom (Dark theme, gold border, white & purple details) */
.project-card-soom {
  background: var(--color-black) !important;
  border: 1px solid var(--color-gold) !important;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.project-card-soom::before {
  background: linear-gradient(90deg, var(--color-purple-light), var(--color-gold)) !important;
}

.project-card-soom:hover {
  border-color: var(--color-gold-light) !important;
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.25), 
              0 0 20px rgba(139, 92, 246, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-6px) !important;
}

.project-card-soom .card-title {
  color: #FFFFFF !important;
}

.project-card-soom .card-tagline {
  color: rgba(255, 255, 255, 0.65) !important;
}

.project-card-soom .card-icon {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important;
}

.project-card-soom:hover .card-icon {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 20px var(--color-gold-glow), 0 0 10px rgba(139, 92, 246, 0.2) !important;
}

.project-card-soom .card-status {
  background: rgba(201, 168, 76, 0.15) !important;
  color: var(--color-gold-light) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
}

.project-card-soom .card-category {
  color: #FFFFFF !important;
  background: var(--color-purple) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 600 !important;
}

.project-card-soom .btn-toggle-details {
  color: rgba(255, 255, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.project-card-soom .btn-toggle-details:hover {
  color: #FFFFFF !important;
  background: var(--color-purple) !important;
  border-color: var(--color-purple-light) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
}

.project-card-soom .btn-toggle-details .arrow-icon {
  color: rgba(255, 255, 255, 0.8) !important;
}

.project-card-soom .btn-toggle-details:hover .arrow-icon {
  color: #FFFFFF !important;
}



/* ============================================
   Detail Modal Overlay
   ============================================ */
.detail-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, opacity 0.35s ease;
}

.detail-modal-overlay.active {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
}

.detail-modal-overlay.closing {
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
}

.detail-modal {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--color-gold-glow);
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.detail-modal-overlay.active .detail-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.detail-modal-overlay.closing .detail-modal {
  transform: scale(0.92) translateY(20px);
  opacity: 0;
}

/* Top gradient accent */
.detail-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.detail-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-base);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
}

.detail-modal-close:hover {
  background: var(--color-black);
  color: white;
  border-color: var(--color-black);
  transform: rotate(90deg);
}

.detail-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-right: var(--space-2xl);
}

.detail-modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.detail-modal-tagline {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

.detail-modal-body {
  margin-bottom: var(--space-xl);
}

.detail-modal-body .modal-details-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
}

.detail-modal-body .details-text {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.75;
  text-align: left;
}

.detail-modal-body .details-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.detail-modal-body .details-text p {
  margin-bottom: var(--space-md);
}

.detail-modal-body .details-text ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.detail-modal-body .details-text ul li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-modal-body .details-text ul li:last-child {
  border-bottom: none;
}

.detail-modal-body .details-text strong {
  color: var(--color-black);
}

.detail-modal-footer {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Scrollbar styling for modal */
.detail-modal::-webkit-scrollbar {
  width: 6px;
}

.detail-modal::-webkit-scrollbar-track {
  background: transparent;
}

.detail-modal::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.detail-modal::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

.details-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.btn-visit {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--color-purple), var(--color-gold));
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: fit-content;
  line-height: 1.2;
  transition: all var(--transition-base);
}

.btn-visit:hover {
  box-shadow: 0 4px 12px rgba(107, 63, 160, 0.2);
  transform: translateY(-1px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--color-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state p {
  margin: 0 auto;
}


/* ============================================
   Disqus Section
   ============================================ */
.disqus-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.disqus-section .section-header {
  margin-bottom: var(--space-xl);
}

#disqus_thread {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Cusdis Community Fallback Card
   ============================================ */
.cusdis-fallback-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.05);
  text-align: center;
  transition: all var(--transition-base);
  animation: cusdisFadeIn 0.35s ease-out forwards;
}

@keyframes cusdisFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cusdis-fallback-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #EA580C;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.cusdis-fallback-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.cusdis-fallback-title-en {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.cusdis-fallback-desc {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}

.cusdis-fallback-desc .en-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #9CA3AF;
  line-height: 1.5;
}

.cusdis-fallback-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cusdis-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-black);
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cusdis-btn-email:hover {
  background: var(--color-purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 63, 160, 0.25);
}

.cusdis-btn-bmc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #FFDD00;
  color: #000000 !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cusdis-btn-bmc:hover {
  background: #FFCD00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.35);
}

.cusdis-btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cusdis-btn-retry:hover {
  background: #F3F4F6;
  color: var(--color-black);
  border-color: var(--color-border-hover);
}


/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-brand {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-gold);
}

/* Buy Me a Coffee */
.bmc-wrapper {
  margin-top: var(--space-lg);
}

.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  background: #FFDD00;
  color: #000000;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(255, 221, 0, 0.3);
}

.bmc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 221, 0, 0.4);
}

.bmc-btn svg {
  width: 20px;
  height: 20px;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-fast);
}

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


/* ============================================
   Legal Pages (Privacy & Terms)
   ============================================ */
.legal-page {
  padding: var(--space-3xl) 0 var(--space-4xl);
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--color-muted-light);
  margin-bottom: var(--space-3xl);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.8;
  list-style: disc;
}

.legal-content a {
  color: var(--color-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-gold);
}


/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-sm) 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-3xl) 0;
    min-height: auto;
  }

  .hero::before {
    width: 350px;
    height: 350px;
    top: -15%;
    right: -20%;
  }

  .hero::after {
    width: 300px;
    height: 300px;
    bottom: -15%;
    left: -15%;
  }

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

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }

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

  .detail-modal-overlay {
    padding: var(--space-md);
  }

  .detail-modal {
    max-height: 90vh;
    padding: var(--space-xl);
  }

  .detail-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .detail-modal-title {
    font-size: 1.3rem;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card details image */
.details-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Details text formatting */
.details-text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  text-align: left;
}
.details-text p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  text-align: left;
  line-height: 1.6;
}
.details-text ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: var(--space-md);
}
.details-text li {
  margin-bottom: var(--space-sm);
  text-align: left;
  line-height: 1.6;
}

/* ============================================
   News & Updates Page Styles
   ============================================ */
.news-page {
  background-color: var(--color-base);
}

.news-section {
  padding: var(--space-4xl) 0;
}

.news-intro {
  margin-bottom: var(--space-3xl);
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.news-intro p {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.8;
}

/* Quick Status Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-4xl);
}

.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: inherit;
}

.status-card:hover {
  transform: translateY(-1px);
  border-color: var(--color-purple-light);
  box-shadow: var(--shadow-sm);
  background: rgba(107, 63, 160, 0.02);
}

.status-title {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-purple);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition-fast);
}

.status-card:hover .status-link {
  color: var(--color-purple-light);
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
  border-left: 2px solid var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 8px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-purple);
  box-shadow: 0 0 0 4px var(--color-base);
  transition: all var(--transition-base);
}

.timeline-item:hover::before {
  background: var(--color-purple);
  transform: scale(1.2);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted-light);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base);
}

.timeline-item:hover .changelog-card {
  border-color: var(--color-border-hover);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.changelog-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-tag.csm { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.project-tag.ampb { background: rgba(107, 63, 160, 0.1); color: #6b3fa0; }
.project-tag.dc { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.project-tag.routine-flow { background: rgba(5, 150, 105, 0.1); color: #059669; }
.project-tag.ic { background: rgba(245, 158, 11, 0.1); color: #d97706; }

.changelog-version {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--color-base);
  color: var(--color-gold);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.changelog-body ul {
  padding-left: var(--space-lg);
}

.changelog-body li {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  list-style-type: disc;
}

.changelog-body li strong {
  color: var(--color-black);
}

/* Responsive adjustments for timeline */
@media (max-width: 600px) {
  .timeline-container {
    padding-left: var(--space-lg);
  }
  .timeline-item::before {
    left: calc(-1 * var(--space-lg) - 8px);
  }
  .changelog-card {
    padding: var(--space-lg);
  }
}

/* ============================================
   Floating Buy Me A Coffee
   ============================================ */
.floating-bmc {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-bmc-tooltip {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.floating-bmc:hover .floating-bmc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .floating-bmc {
    display: none !important;
  }
}

/* ============================================
   Project Changelog Toggle Button
   ============================================ */
.btn-toggle-project-updates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.35rem;
  background: var(--color-surface);
  color: var(--color-purple);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(107, 63, 160, 0.08);
  transition: all var(--transition-base);
  user-select: none;
}

.btn-toggle-project-updates:hover {
  background: rgba(107, 63, 160, 0.06);
  border-color: var(--color-purple);
  color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(107, 63, 160, 0.15);
}

.btn-toggle-project-updates:active {
  transform: translateY(0);
}

.btn-toggle-project-updates.expanded {
  background: rgba(107, 63, 160, 0.08);
  border-color: var(--color-purple);
}

.btn-toggle-project-updates .arrow-icon {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}

/* ============================================
   Changelog Feature Badges & Rich Article Styles
   ============================================ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-tag.badge-new {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-tag.badge-improved {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-tag.badge-fixed {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-tag.badge-i18n {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-tag.badge-security {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.changelog-overview-lead {
  font-size: 0.95rem;
  color: var(--color-black-soft);
  line-height: 1.68;
  margin-bottom: var(--space-md);
}

.changelog-feature-block {
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: var(--space-md) 0;
}

.changelog-feature-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.35rem;
}

.changelog-feature-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.changelog-pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-top: var(--space-md);
  font-size: 0.84rem;
  color: var(--color-black-soft);
  line-height: 1.55;
}

/* ============================================
   Live Trends Spotlight Preview
   ============================================ */
.trend-section {
  padding: var(--space-xl) 0 var(--space-xl) 0;
  position: relative;
}

.trend-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.2rem 0.7rem;
  background: rgba(107, 63, 160, 0.08);
  border: 1px solid rgba(107, 63, 160, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: 0.4rem;
}

.trend-badge .dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.trend-main-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  line-height: 1.25;
}

.trend-title-brand,
.trend-main-title .highlight {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #E11D48 0%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #E11D48;
}

.trend-title-sub {
  font-size: clamp(1.0rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #E11D48 0%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #EA580C;
}

.trend-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trend-languages {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 9px;
  border-radius: 9999px;
}

.trend-languages .lang-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-right: 2px;
}

.trend-languages .flag-icon {
  font-size: 1.05rem;
  line-height: 1;
  cursor: help;
  transition: transform var(--transition-fast);
}

.trend-languages .flag-icon:hover {
  transform: scale(1.25);
}

.trend-subtitle {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.btn-trend-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.btn-trend-all:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-trend-all .btn-arrow {
  color: #64748B;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-trend-all:hover .btn-arrow {
  color: #0F172A;
  transform: translateX(3px);
}

.trend-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.trend-mini-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  min-height: 140px;
}

.trend-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 63, 160, 0.4);
  box-shadow: 0 8px 20px -4px rgba(107, 63, 160, 0.12);
}

.trend-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.trend-card-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.07);
  padding: 2px 7px;
  border-radius: 4px;
}

.trend-card-time {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.trend-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
}

.trend-card-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-purple);
  background: rgba(107, 63, 160, 0.08);
  border: 1px solid rgba(107, 63, 160, 0.18);
  padding: 2.5px 8px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.trend-card-link-badge .trend-link-arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.trend-mini-card:hover .trend-card-link-badge {
  background: var(--color-purple);
  color: #FFFFFF;
  border-color: var(--color-purple);
  box-shadow: 0 2px 8px rgba(107, 63, 160, 0.28);
}

.trend-mini-card:hover .trend-card-link-badge .trend-link-arrow {
  transform: translate(1.5px, -1.5px);
}

.trend-card-title-en {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.44;
  color: var(--color-black);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.trend-card-title-ko {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.44;
  color: #2563EB;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.trend-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.44;
  color: var(--color-black);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.trend-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.trend-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  padding: 2.5px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.trend-tag-en {
  background: #EEF2F6;
  color: #334155;
}

.trend-card-link-icon {
  color: var(--color-muted);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.trend-mini-card:hover .trend-card-link-icon {
  color: var(--color-purple);
}



