/* Lemonade Website Styles */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary-yellow: #ffe066;
  --primary-yellow-dark: #ffd43b;
  --primary-yellow-darker: #ffcc00;
  --accent-gold: #e6b800;
  --accent-gold-dark: #bfa100;

  --text-primary: #222;
  --text-secondary: #555;
  --text-muted: #666;
  --text-light: #999;
  --text-success: #4ca64c;

  --bg-primary: #fffbe9;
  --bg-secondary: #fff8dd;
  --bg-tertiary: #fff5d1;
  --bg-white: #fff;
  --bg-overlay: rgba(255, 251, 233, 0.95);

  --border-light: #e6e6e6;
  --border-medium: #ccc;
  --border-primary: #e6b800;

  --shadow-light: 0 2px 8px rgba(230, 184, 0, 0.3);
  --shadow-medium: 0 4px 12px rgba(230, 184, 0, 0.4);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Typography */
  --font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.85rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-xxxl: 2.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-xxl: 24px;
  --radius-round: 50%;
}

/* === Base Styles === */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 224, 102, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 212, 59, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body.install-options {
  align-items: center;
  justify-content: flex-start;
}

/* === Navigation === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-xxl) var(--spacing-sm) var(--spacing-md);
  font-size: 1.25rem;
  font-weight: 500;
  background: transparent;
  letter-spacing: 0.02em;
  position: relative;
  transition: var(--transition-medium);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.navbar-context {
  position: absolute;
  left: var(--spacing-xl);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
  align-items: center;
  white-space: nowrap;
}

.navbar-context.show {
  display: flex;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  font-size: 1.22rem;
  line-height: 1.1;
}

.navbar a {
  color: #444;
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-links a,
.navbar-brand .brand-title a {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
}

.navbar-links a {
  font-size: 1.22rem;
  font-weight: 500;
}

.navbar a:hover {
  color: var(--accent-gold);
}

.navbar-back {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  margin-right: var(--spacing-sm);
}

.navbar-back:hover {
  color: var(--accent-gold-dark);
}

/* Breadcrumb */
.breadcrumb {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 184, 0, 0.2);
  padding: 0.8rem var(--spacing-xl);
  z-index: 200;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  min-height: 60px;
}

.breadcrumb-back {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.breadcrumb-back:hover {
  color: var(--accent-gold-dark);
}

.breadcrumb-separator {
  margin: 0 0.8rem;
  color: var(--border-medium);
  white-space: nowrap;
}

/* === Layout Components === */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 60vh;
  padding: var(--spacing-xl) var(--spacing-md) 4rem var(--spacing-md);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.main > * {
  animation: fadeInUp 0.6s ease-out both;
}

.main > *:nth-child(1) { animation-delay: 0.05s; }
.main > *:nth-child(2) { animation-delay: 0.12s; }
.main > *:nth-child(3) { animation-delay: 0.19s; }
.main > *:nth-child(4) { animation-delay: 0.26s; }
.main > *:nth-child(5) { animation-delay: 0.33s; }
.main > *:nth-child(6) { animation-delay: 0.40s; }
.main > *:nth-child(7) { animation-delay: 0.47s; }

.main.hidden {
  display: none;
}

.hero-section {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
  overflow: hidden;
}

.lmn-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4rem;
  padding-top: 80px;
}

/* Typography */
.main-heading {
  font-size: clamp(1.75rem, 6vw, 4rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
  margin: var(--spacing-sm) 0 var(--spacing-xxl) 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
  max-width: 1000px;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.title {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.01rem;
  text-align: left;
  color: var(--text-primary);
}

.subtitle {
  font-size: clamp(0.95rem, 2.5vw, var(--font-size-lg));
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 700px;
  width: 100%;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lmn-install-title {
  font-size: var(--font-size-xxxl);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin: 0.8em 0 0.3em 0;
  font-family: inherit;
  text-align: center;
  display: block;
  line-height: 1.05;
  margin: var(--spacing-md) 0 var(--spacing-md) 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
  max-width: 1000px;
  width: 100%;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* === Button Components === */
.btn-base {
  display: inline-block;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  outline: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-base:hover::before {
  left: 100%;
}

.download-btn, .dev-btn, .marketplace-cta-btn {
  display: inline-block;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  outline: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  padding: var(--spacing-md) 2.5rem 0.8rem 2.5rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  min-width: min(250px, 80vw);
  max-width: min(250px, 80vw);
  height: 70px;
  justify-content: center;
}

.download-btn {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 50%, var(--primary-yellow-darker) 100%);
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.download-btn:hover, .download-btn:focus {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px) scale(1.02);
}

.download-btn:active {
  background: var(--primary-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(0.98);
}

.dev-btn, .marketplace-cta-btn {
  background: linear-gradient(135deg, var(--bg-white) 0%, #f8f9fa 100%);
  color: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.dev-btn:hover, .dev-btn:focus {
  background: linear-gradient(135deg, #f8f9fa 0%, var(--bg-white) 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  transform: translateY(-2px) scale(1.02);
}

.marketplace-cta-btn:hover, .marketplace-cta-btn:focus {
  transform: none;
}

.dev-btn:active {
  background: #ededed;
  box-shadow: 0 2px 8px rgba(187, 187, 187, 0.13);
  border-color: #888;
  transform: scale(0.98);
}

/* Marketplace button - single line variant */
.marketplace-cta-btn {
  display: inline-block;
  min-width: auto;
  max-width: none;
  height: auto;
  padding: var(--spacing-md) 2rem;
  font-size: 1rem;
  flex-direction: unset;
  align-items: unset;
  justify-content: unset;
}

.download-btn .download-sub, .dev-btn .dev-sub {
  font-size: var(--font-size-sm);
  color: #3d4000;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 0.25em;
  letter-spacing: 0.01em;
  font-style: italic;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.lmn-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.18rem;
  border: none;
  border-radius: var(--radius-xl);
  padding: 1.1em 2.5em 0.9em 2.5em;
  margin: 0.2em 0.2em 0.2em 0;
  text-decoration: none !important;
  box-shadow: var(--shadow-light), 0 1.5px 0 var(--bg-primary) inset;
  transition: var(--transition-fast);
  cursor: pointer;
  outline: none;
  letter-spacing: 0.01em;
  min-width: 150px;
}

.lmn-btn:hover, .lmn-btn:focus {
  box-shadow: var(--shadow-medium), 0 1.5px 0 var(--bg-primary) inset;
  transform: translateY(-1px) scale(1.01);
}

.lmn-btn:active {
  background: var(--primary-yellow);
  box-shadow: var(--shadow-light);
  transform: scale(0.98);
}

.lmn-btn:visited {
  color: var(--text-primary);
}

/* === Community Section === */
.community-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md) 2rem var(--spacing-md);
  animation: fadeInUp 0.8s ease-out 0.5s both;
  position: relative;
  overflow: hidden;
}

.community-section .subtitle {
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.community-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.community-buttons a {
  display: inline-block;
  transition: var(--transition-medium);
  opacity: 0.9;
}

.community-buttons a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.community-buttons img {
  height: 32px;
  transition: var(--transition-medium);
  border-radius: var(--radius-sm);
}

/* === Content Sections === */
.partner-apps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
  max-width: 1000px;
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-lg);
  /* background: transparent; */
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
}

.partner-apps .subtitle {
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.partner-apps-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0 var(--spacing-sm);
}

.partner-apps a {
  display: inline-block;
  transition: var(--transition-slow);
  opacity: 0.85;
  position: relative;
}

.partner-apps a:hover::before {
  width: 120px;
  height: 120px;
}

.partner-apps a:hover:not(.marketplace-cta-btn) {
  transform: translateY(-6px) scale(1.05);
  opacity: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.partner-apps img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
}

.partner-apps a:hover img {
  transform: scale(1.05);
}

.partner-apps-link {
  margin-top: var(--spacing-sm);
  text-align: center;
}

.view-all-link {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  transition: var(--transition-medium);
}

.view-all-link:hover {
  background: var(--accent-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}


/* Video Section */
.video-section {
  margin: var(--spacing-xxl) auto var(--spacing-xl) auto;
  max-width: 1000px;
  width: 100%;
  padding: 0 var(--spacing-md);
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(45deg, #000 0%, #1a1a1a 100%);
  border-radius: var(--radius-xxl);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-slow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xxl);
}

/* Features Section */
.features-section {
  margin: var(--spacing-xl) auto;
  max-width: 1100px;
  width: 100%;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin: 0 auto;
}

.feature-box {
  background: transparent;
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition-medium);
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.feature-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  min-height: 2.6em; /* Reserve space for 2 lines */
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Responsive design for features */
@media (max-width: 1024px) {
  .features-section {
    margin: var(--spacing-xl) var(--spacing-md);
    padding: var(--spacing-lg);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .features-section {
    padding: var(--spacing-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 1fr);
    gap: var(--spacing-sm);
  }

  .feature-box {
    padding: var(--spacing-md);
  }
}

/* Release Announcement */
.release-announcement {
  margin: var(--spacing-xl) auto;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 0 var(--spacing-md);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.8s both;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.release-announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 224, 102, 0.05) 50%, transparent 70%);
  border-radius: 20px;
  pointer-events: none;
}

.release-content {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-md) 1rem var(--spacing-md);
}

.release-icon {
  font-size: var(--spacing-xl);
  flex-shrink: 0;
}

.release-info {
  flex-grow: 1;
  text-align: left;
}

.release-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 var(--spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.release-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
}

.release-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.8rem 0;
  font-weight: 500;
}

.release-highlights {
  margin-top: var(--spacing-sm);
}

.highlight-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.4rem 0;
  padding: 0.3rem 0.8rem;
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.3;
}

.release-link {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 50%, var(--primary-yellow-darker) 100%);
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--spacing-md) 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: var(--font-size-base);
  padding: 0.8rem var(--spacing-lg);
  transition: var(--transition-medium);
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.4), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
  align-self: flex-start;
  margin: auto var(--spacing-md) var(--spacing-md) var(--spacing-md);
  display: inline-block;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  text-align: center;
}

.release-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 224, 102, 0.5), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
}

.release-link:active {
  background: var(--primary-yellow);
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.33);
  transform: scale(0.98);
}

/* News Banner */
.news-ticker-outer {
  min-height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.news-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 30s linear infinite;
}

.news-ticker-outer:hover .news-ticker-track {
  animation-play-state: paused;
}

.news-banner {
  max-width: 1000px;
  width: 100%;
  margin: var(--spacing-md) auto;
  overflow: hidden;
  min-height: 48px;
  padding: 1.2rem 2rem;
}

.news-banner-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  overflow: hidden;
  position: relative;
}

.news-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.news-item {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.news-ticker-container {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-banner 40s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  height: 40px;
}

.news-ticker-item, .news-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-medium);
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.news-ticker-item {
  margin-right: 8px;
  margin-left: 8px;
}

.news-ticker-item:hover, .news-title:hover {
  color: var(--accent-gold-dark);
  text-decoration: underline;
}

.news-ticker-separator {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  margin: 0 8px;
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.news-ticker-container:hover {
  animation-play-state: paused;
}

/* Keyframes */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-banner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-horizontal {
  0% { left: 100%; }
  100% { left: -100%; }
}

/* Logo Ticker */
.logo-ticker-outer {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: var(--spacing-sm) 0;
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
}

.logo-ticker-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: clamp(40px, 10vw, 60px);
}

.logo-ticker-track img {
  height: clamp(40px, 10vw, 60px);
  width: auto;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 600px) {
  .news-ticker-container {
    animation-duration: 25s;
  }
}

@media (max-width: 768px) {
  .news-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    padding: 4rem 1rem;
  }
  .news-label {
    margin-bottom: 0.3em;
  }
  .news-ticker-container {
    animation: scroll-horizontal 15s linear infinite;
  }
  .news-title:not(.news-ticker) {
    animation: none;
    white-space: normal;
    overflow: visible;
    position: static;
  }
}
/* === Installer Components === */
.lmn-installer-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.5em 0;
  font-family: inherit;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  table-layout: fixed;
  width: 100%;
  max-width: 650px;
  position: relative;
}

.lmn-installer-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 224, 102, 0.02) 50%, transparent 70%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.lmn-installer-table td, .lmn-installer-table th {
  border: 1px solid rgba(255, 224, 102, 0.4);
  text-align: center;
  font-size: var(--font-size-base);
  background: var(--bg-white);
  min-width: 120px;
  height: 60px;
  vertical-align: middle;
  transition: var(--transition-medium);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

.lmn-installer-table td:hover:not(.lmn-label):not(.lmn-active) {
  background: rgba(255, 224, 102, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.2);
}

.lmn-installer-table tr:first-child td:first-child,
.lmn-installer-table tr:first-child th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.lmn-installer-table tr:first-child td:last-child,
.lmn-installer-table tr:first-child th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.lmn-installer-table tr:last-child td:first-child,
.lmn-installer-table tr:last-child th:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.lmn-installer-table tr:last-child td:last-child,
.lmn-installer-table tr:last-child th:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

.lmn-badge {
  display: inline-block;
  background: #007acc;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 4px;
  font-weight: 500;
}

.lmn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: flex-start;
  margin-bottom: 1.2em;
}

/* Ensure active state is properly defined */
.lmn-installer-table .lmn-active {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-color: var(--primary-yellow-darker) !important;
}

/* Ensure disabled state works */
.lmn-installer-table .lmn-disabled {
  background: #f5f5f5 !important;
  color: #616161 !important;
  opacity: 0.6;
}

/* Label cells styling */
.lmn-installer-table .lmn-label {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
  font-weight: 600;
  color: var(--text-primary);
  cursor: default !important;
  border-right: 3px solid var(--primary-yellow-darker) !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Copy button improvements */
.lmn-copy-btn {
  display: none;
  position: absolute;
  right: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-yellow);
  border: none;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
  z-index: 10;
  font-weight: 500;
}

.lmn-command-line:hover .lmn-copy-btn {
  display: inline-block;
}

.lmn-copy-btn:hover {
  background: var(--primary-yellow-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Content section improvements */
.lmn-content-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  box-shadow: var(--shadow-light);
  max-width: 650px;
  width: 100%;
  box-sizing: border-box;
}

/* Download section styling */
.lmn-download-section {
  border-radius: var(--radius-lg);
  padding: 0.5em 0 1em 0;
  margin-bottom: 0.8em;
  text-align: center;
}

.lmn-download-section a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
  border: 1px solid rgba(230, 184, 0, 0.3);
  box-shadow: 0 4px 16px rgba(255, 224, 102, 0.4);
  min-width: 250px;
}

.lmn-download-section a:hover {
  background: linear-gradient(135deg, var(--primary-yellow-dark) 0%, var(--primary-yellow-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.5);
}

.lmn-command-area {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-xl);
  margin-top: 0.8em;
  padding: 0.8em var(--spacing-md);
  box-shadow: none;
  max-width: 600px;
  width: 100%;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lmn-command-area b {
  font-size: 1.13rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #ffe066;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.lmn-section-header::before {
  content: "⚡";
  font-size: 1.1em;
}

.lmn-explore-header::before {
  content: "🚀";
}

.lmn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: flex-start;
  margin-bottom: 1.2em;
}

.lmn-badges img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.lmn-badges img:hover {
  transform: translateY(-1px);
}

/* Command styling improvements */
.lmn-command pre {
  background: var(--text-primary);
  color: var(--bg-white);
  border-radius: 10px;
  padding: 0.8em 4.5em 0.8em var(--spacing-md);
  font-size: 1.08rem;
  margin: 0.5em 0 0 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'monospace';
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.2);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.lmn-download-section {
  border-radius: 12px;
  padding: 0.5em 0 1em 0;
  margin-bottom: 0.8em;
  text-align: center;
}

.lmn-download-section a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  display: inline-block;
  padding: 1em 2em;
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(230, 184, 0, 0.3);
  box-shadow: 0 4px 16px rgba(255, 224, 102, 0.4);
  min-width: 280px;
  line-height: 1.3;
}

.lmn-download-section a:hover {
  background: linear-gradient(135deg, #ffd43b 0%, #ffcc00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.5);
}

.lmn-command code {
  background: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.lmn-command a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-size: 1.08rem;
}

.lmn-command a:hover {
  color: var(--accent-gold-dark);
}

.lmn-command-line {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 0;
  min-width: 0;
  word-break: break-all;
  width: calc(100% + 5.7em);
  margin-left: -1.2em;
  padding-left: 1.2em;
}

.lmn-command-line span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-right: 0.5em;
  max-width: calc(100% - 5.7em);
}

.lmn-copy-btn {
  display: none;
  position: absolute;
  right: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-yellow);
  border: none;
  border-radius: 0.7em;
  color: var(--text-primary);
  font-size: 1.02rem;
  padding: 0.2em 0.8em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.2);
  transition: var(--transition-fast);
  z-index: 2;
  flex-shrink: 0;
}

.lmn-command-line:hover .lmn-copy-btn {
  display: inline-block;
}

.lmn-copy-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.lmn-copy-btn:active {
  background: var(--primary-yellow-dark);
}

.lmn-install-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: var(--spacing-md);
  padding: 0 var(--spacing-xl);
}

.lmn-installer-container {
  margin-top: 0.8em;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Footer === */
.site-footer {
  width: 100%;
  padding: calc(var(--spacing-xxl) / 8) 0 var(--spacing-lg) 0;
  margin: calc(var(--spacing-xxl) / 8) auto 0 auto;
  background-color: transparent;
  border-top: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: block;
  margin-bottom: var(--spacing-md);
}

.footer-nav-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.15rem;
  padding: 0.1rem 0 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.footer-rail-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  min-height: 24px;
  padding: 0.2rem 0;
  position: relative;
  color: #3a4251;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  transition: color 0.2s ease;
}

.footer-rail-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.26rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-rail-link:hover::after,
.footer-rail-link:focus::after {
  opacity: 0.42;
  transform: scaleX(1);
}

.footer-rail-link--community {
  color: #1f2438;
}

.footer-rail-link--community:hover,
.footer-rail-link--community:focus {
  color: #111827;
}

.footer-rail-link--product {
  color: #1f2438;
}

.footer-rail-link--product:hover,
.footer-rail-link--product:focus {
  color: #111827;
}

.footer-rail-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.footer-rail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-meta {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.copyright {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

/* Footer responsive design */
@media (min-width: 1024px) {
}

@media (max-width: 1023px) {
  .footer-content {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  }

  .footer-content {
    padding: 0 var(--spacing-md);
  }

  .footer-nav-rail {
    gap: 0.72rem 0.9rem;
    padding-bottom: 0.72rem;
  }
}

@media (max-width: 640px) {
  .footer-content {
    padding: 0 var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: var(--spacing-lg) 0;
  }

  .footer-content {
    padding: 0 var(--spacing-md);
  }

  .footer-nav-rail {
    gap: 0.6rem 0.72rem;
  }

  .footer-rail-link {
    font-size: 0.92rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}

/* === News Components === */
.news-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: var(--bg-primary);
  border-right: 2px solid var(--border-light);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 150;
  padding: var(--spacing-xl) var(--spacing-lg);
  overflow-y: auto;
  transition: var(--transition-medium);
}

.news-sidebar.collapsed {
  transform: translateX(-250px);
}

.sidebar-header {
  margin-bottom: var(--spacing-xl);
}

.sidebar-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #333;
  margin-bottom: var(--spacing-sm);
  margin-top: 2.5rem;
}

.sidebar-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 5rem; /* Prevents filter buttons from sitting behind navbar */
  margin-bottom: var(--spacing-xl);
}


.filter-btn {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 100%;
}

.filter-btn:hover {
  background: #f9f9f9;
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-medium);
}

.filter-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 184, 0, 0.4);
}

.sort-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.sort-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.sort-select {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: var(--transition-medium);
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.sort-select:hover {
  border-color: var(--border-medium);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sort-select:focus {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-medium);
}

.news-view {
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) 270px;
  max-width: 1200px;
  margin: 0 auto;
  flex-grow: 1;
  transition: var(--transition-medium);
}

.news-view.sidebar-collapsed {
  padding-left: 50px;
}

.news-view .hero-section {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto var(--spacing-xl) auto;
  padding: var(--spacing-md);
}

.news-view .main-heading {
  font-size: 3.5rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.05;
  margin: var(--spacing-sm) 0 var(--spacing-md) 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
  max-width: 1000px;
  width: 100%;
}

.news-view .subtitle {
  font-size: var(--font-size-lg);
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.news-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.news-tile {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
  aspect-ratio: 0.8;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.news-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.news-image {
  height: 40%;
  background: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.news-image-placeholder {
  font-size: var(--spacing-xxl);
  opacity: 0.8;
}

.news-image-actual {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

.news-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: #333;
  font-size: var(--font-size-lg);
  line-height: 1.3;
  font-weight: 600;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
  display: block;
  overflow: visible;
  text-overflow: unset;
}

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

.news-tile-link:hover {
  text-decoration: none;
  color: inherit;
}

.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: var(--radius-round);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-medium);
  pointer-events: none;
}

.news-tile:hover .youtube-play-button {
  background: rgba(255, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.content-type-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  z-index: 10;
}

.blog-badge {
  background-color: #007acc;
}

.video-badge {
  background-color: #dc3545;
}

.tutorial-badge {
  background-color: #28a745;
}

.release-badge {
  background-color: var(--primary-yellow);
}

/* News sidebar controls */
.collapse-btn, .expand-btn {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: var(--transition-medium);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.collapse-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.expand-btn {
  position: fixed;
  top: 4.5rem;
  left: 1.5rem;
  background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
  border: none;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  z-index: 160;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
}

.expand-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

.sidebar-toggle {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === Utility Classes === */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
  border: none;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-medium);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  box-shadow: 0 6px 20px rgba(230, 184, 0, 0.4);
  transform: translateY(-2px);
}

.back-to-top-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-light);
}

.back-to-top-icon {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1;
}

.text-muted {
  color: var(--border-medium);
}

.command-margin {
  margin-top: 0.6em;
}

/* === Install Selector Components === */

/* Unified content container */
.lmn-content-section {
  background: #fff;
  border-radius: 18px;
  padding: 1.5em;
  margin-top: 1.2em;
  box-shadow: 0 4px 24px #ffe06633;
  max-width: 650px;
  width: 100%;
  box-sizing: border-box;
}

.lmn-section-header {
  font-size: 1.2rem;
  color: #222;
  font-weight: 600;
  margin: 0 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #ffe066;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.lmn-section-header::before {
  content: "⚡";
  font-size: 1.1em;
}

.lmn-install-section-title {
  font-size: 1.2rem;
  color: #333;
  font-weight: 700;
  margin: 2em 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e0e0e0;
}

.lmn-install-section-title:first-child {
  margin-top: 0;
}

.lmn-install-method-header {
  font-size: 1.05rem;
  color: #555;
  font-weight: 600;
  margin: 1.5em 0 0.8em 0;
}

.lmn-install-method-header:first-child {
  margin-top: 0;
}

.lmn-explore-header::before {
  content: "🚀";
}

.lmn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: flex-start;
  margin-bottom: 1.2em;
}

.lmn-badges img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.lmn-badges img:hover {
  transform: translateY(-1px);
}

/* Command styling improvements */
.lmn-command pre {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1em 4.5em 1em 1.2em;
  font-size: 1.06rem;
  margin: 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'monospace';
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: 1px solid rgba(255, 224, 102, 0.2);
  position: relative;
}

.lmn-download-section {
  border-radius: 12px;
  padding: 0.5em 0 1em 0;
  margin-bottom: 0.8em;
  text-align: center;
}

.lmn-download-section a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  display: inline-block;
  padding: 1em 2em;
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(230, 184, 0, 0.3);
  box-shadow: 0 4px 16px rgba(255, 224, 102, 0.4);
  min-width: 280px;
  line-height: 1.3;
}

.lmn-download-section a:hover {
  background: linear-gradient(135deg, #ffd43b 0%, #ffcc00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.5);
}

.lmn-command code {
  background: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.lmn-command a {
  color: #e6b800;
  text-decoration: underline;
  font-size: 1.08rem;
}

.lmn-command a:hover {
  color: #bfa100;
}

.lmn-note {
  margin-top: 0.8em;
  color: #666;
  font-size: 1.02rem;
  line-height: 1.5;
}

.lmn-note a {
  color: #666;
  text-decoration: underline;
}

.lmn-note a:hover {
  color: #444;
}

.lmn-note code {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

.lmn-source-note {
  margin-top: 0.8em;
}

.lmn-coming-soon {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #666;
  padding: 2em 1em;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  border: 1px solid #ddd;
}

.lmn-quickstart-table {
  margin-top: 1.5em;
}

.lmn-embedded-table {
  margin: 0 0 1.2em 0;
  box-shadow: none;
  border: 1px solid rgba(255, 224, 102, 0.4);
}

.lmn-command-line {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 0;
  min-width: 0;
  word-break: break-all;
  width: calc(100% + 5.7em);
  box-sizing: border-box;
  margin-left: -1.2em;
  padding-left: 1.2em;
}

.lmn-command-line span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-right: 0.5em;
  max-width: calc(100% - 5.7em);
}

.lmn-copy-btn {
  display: none;
  position: absolute;
  right: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe066;
  border: none;
  border-radius: 0.7em;
  color: #222;
  font-size: 1.02rem;
  padding: 0.2em 0.8em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 224, 102, 0.4);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  z-index: 2;
  flex-shrink: 0;
}

.lmn-command-line:hover .lmn-copy-btn {
  display: inline-block;
}

.lmn-copy-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.lmn-copy-btn:active {
  background: #ffd43b;
}

.lmn-install-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 1rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.lmn-installer-container {
  margin-top: 0.8em;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Decorative Elements === */
.ai-art {
  margin: var(--spacing-xxl) auto var(--spacing-lg) auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 120px;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .lmn-install-view {
    margin-top: var(--spacing-md);
  }

  .main {
    margin-top: 6rem;
  }

  .news-posts {
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    gap: var(--spacing-lg);
  }

  .news-tile {
    aspect-ratio: 0.9;
  }

  .news-sidebar {
    width: 220px;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .news-sidebar.collapsed {
    transform: translateX(-220px);
  }

  .news-view {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 240px;
  }

  .news-view.sidebar-collapsed {
    padding-left: 50px;
  }

  .back-to-top-btn {
    bottom: 85px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .back-to-top-icon {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .news-sidebar {
    width: 200px;
    padding: var(--spacing-md) 0.8rem;
  }

  .news-sidebar.collapsed {
    transform: translateX(-200px);
  }

  .news-view {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 220px;
  }

  .news-view.sidebar-collapsed {
    padding-left: 30px;
  }

  .collapse-btn {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.3rem var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  .expand-btn {
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 825px) {
  .navbar {
    flex-direction: column;
    gap: var(--spacing-md);
    padding: 1rem;
  }

  .navbar-links {
    gap: 1.5rem;
    font-size: 1.18rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-links a {
    font-size: 1.18rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: var(--spacing-md);
    padding: 1rem;
  }

  .navbar-links {
    gap: var(--spacing-lg);
    font-size: 1.12rem;
  }

  .navbar-links a {
    font-size: 1.12rem;
  }

  .navbar-context {
    position: static;
    font-size: var(--font-size-sm);
    order: -1;
  }

  .main {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-lg) var(--spacing-sm) 3rem var(--spacing-sm);
  }

  .hero-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .title {
    font-size: var(--font-size-xxl);
  }

  .subtitle {
    font-size: var(--font-size-base);
    padding: 0 var(--spacing-sm);
  }

  .button-row {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 var(--spacing-sm);
  }

  .download-btn, .dev-btn {
    font-size: var(--font-size-base);
    padding: 0.8rem var(--spacing-lg);
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  .download-btn .download-sub, .dev-btn .dev-sub {
    font-size: var(--font-size-sm);
  }

  .lmn-install-view {
    padding: 0 var(--spacing-md);
    margin-top: var(--spacing-sm);
  }

  .lmn-install-title {
    font-size: var(--spacing-lg);
  }

  .lmn-installer-table {
    font-size: 0.98rem;
    max-width: 99vw;
  }

  .lmn-command-area {
    max-width: 99vw;
  }

  .lmn-btn {
    font-size: var(--font-size-base);
    padding: 0.8rem var(--spacing-lg);
  }

  .breadcrumb {
    padding: 0.6rem var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: 50px;
  }

  .breadcrumb-separator {
    margin: 0 var(--spacing-sm);
  }

  .lmn-center {
    padding-top: 70px;
  }

  .main-heading {
    font-size: var(--font-size-xxxl);
    line-height: 1.2;
  }

  .partner-apps {
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .community-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .community-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .partner-apps img {
    width: 50px;
    height: 50px;
  }

  .video-section {
    margin: var(--spacing-xl) auto var(--spacing-xxl) auto;
    max-width: 100%;
  }

  .release-announcement {
    margin: var(--spacing-xl) var(--spacing-md);
    max-width: none;
  }

  .news-banner {
    margin: var(--spacing-md) var(--spacing-md);
    max-width: none;
  }

  .news-banner-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }

  .news-item {
    align-items: flex-start;
  }

  .news-title {
    animation: none; /* Disable scrolling on smaller screens */
    white-space: normal;
    overflow: visible;
  }

  .release-content {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: 0;
  }

  .release-link {
    align-self: flex-start;
  }

  .back-to-top-btn {
    bottom: 85px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .back-to-top-icon {
    font-size: 16px;
  }

  .site-footer {
    padding: 1.2rem 0;
  }

  .footer-content {
    padding: 0 var(--spacing-md);
    gap: 0.2rem;
  }

  .dad-joke {
    font-size: var(--font-size-base);
  }

  .copyright {
    font-size: 0.8rem;
  }

  /* News responsive styles */
  .news-sidebar {
    transform: translateX(-100%);
    transition: var(--transition-medium);
    z-index: 160;
    width: 250px;
    padding: var(--spacing-lg);
  }

  .news-sidebar.mobile-open {
    transform: translateX(0);
  }

  .news-view {
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
  }

  .news-view.sidebar-collapsed {
    padding-left: var(--spacing-md);
  }

  .news-view .main-heading {
    font-size: var(--font-size-xxxl);
    margin: var(--spacing-sm) 0;
  }

  .news-view .subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
  }

  .collapse-btn {
    display: none;
  }

  .expand-btn {
    display: none;
  }

  .sidebar-toggle {
    display: block;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 200;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
  }

  .sidebar-toggle:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
  }

  .news-posts {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
  }

  .news-header {
    margin-bottom: var(--spacing-xl);
  }

  .news-header h1 {
    font-size: var(--font-size-xxl);
  }

  .news-header p {
    font-size: var(--font-size-base);
  }

  .news-tile {
    aspect-ratio: 0.9;
  }

  .news-content {
    padding: var(--spacing-md);
  }

  .news-content h3 {
    font-size: var(--font-size-base);
    line-height: 1.2;
  }

  .news-date {
    font-size: 0.8rem;
  }

  .news-content p {
    font-size: var(--font-size-sm);
    line-height: 1.3;
  }

  .youtube-play-button {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .navbar-links {
    gap: 1rem;
    font-size: 1.08rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-links a {
    font-size: 1.08rem;
  }

  .hero-section {
    padding: var(--spacing-md) var(--spacing-xs);
  }

  .main-heading {
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
  }

  .button-row {
    padding: 0;
  }

  .release-announcement {
    margin: var(--spacing-lg) auto;
    max-width: 95%;
    padding: var(--spacing-md);
  }

  .news-banner {
    margin: var(--spacing-sm) auto;
    max-width: 95%;
    min-height: 40px;
  }

  .news-banner-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .news-item {
    align-items: center;
  }

  .news-title {
    animation: none;
    white-space: normal;
    overflow: visible;
    font-size: var(--font-size-sm);
  }

  .news-label {
    font-size: var(--font-size-xs);
  }

  .release-content {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    margin-bottom: 0;
  }

  .release-info {
    text-align: center;
  }

  .release-icon {
    font-size: var(--spacing-lg);
  }

  .release-title {
    font-size: 0.9rem;
  }

  .release-name {
    font-size: var(--font-size-base);
  }

  .release-date {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
  }

  .highlight-item {
    font-size: var(--font-size-xs);
    margin: 0.2rem 0;
    padding-left: var(--spacing-sm);
    text-align: left;
  }

  .release-link {
    font-size: var(--font-size-base);
    padding: 0.8rem var(--spacing-lg);
    min-width: 120px;
    align-self: center;
  }

  .video-section {
    margin: var(--spacing-xl) auto var(--spacing-lg) auto;
    max-width: 95%;
  }

  .lmn-install-title {
    font-size: 1.8rem !important;
    margin: 0.8em 0 0.4em 0;
  }

  .back-to-top-btn {
    bottom: 80px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .back-to-top-icon {
    font-size: 14px;
  }

  /* News mobile styles */
  .news-sidebar {
    width: 100%;
    padding: var(--spacing-md);
  }

  .sidebar-toggle {
    top: 70px;
    right: 15px;
    padding: var(--spacing-sm) 0.8rem;
    font-size: var(--font-size-sm);
  }

  .news-view {
    padding: 0.8rem;
    margin-top: var(--spacing-lg);
  }

  .news-header h1 {
    font-size: 1.8rem;
  }

  .news-header p {
    font-size: 0.9rem;
  }

  .news-posts {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .news-tile {
    aspect-ratio: 1.1;
  }

  .news-image {
    height: 50%;
  }

  .news-content {
    padding: 0.6rem;
  }

  .news-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.1;
  }

  .news-content p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
  }

  .news-date {
    font-size: var(--font-size-xs);
    margin-bottom: 0.3rem;
  }

  .youtube-play-button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }

  .navbar-brand .brand-title {
    font-size: 1.1rem;
  }

  .breadcrumb {
    padding: var(--spacing-sm) 0.8rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    min-height: auto;
  }

  .breadcrumb-back {
    font-size: 0.8rem;
  }

  .lmn-center {
    padding-top: 65px;
  }

  .lmn-install-title {
    font-size: var(--spacing-lg) !important;
    margin: 0.6em 0 0.3em 0;
  }

  .main {
    padding: var(--spacing-md) var(--spacing-xs) 2rem var(--spacing-xs);
  }

  .hero-section {
    padding: var(--spacing-sm) var(--spacing-xs);
  }

  .main-heading {
    margin-bottom: var(--spacing-md);
  }

  .download-btn, .dev-btn {
    font-size: 0.95rem;
    padding: 0.7rem var(--spacing-md);
    height: auto;
    min-height: 60px;
  }

  .partner-apps {
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xs);
  }

  .partner-apps img {
    width: 40px;
    height: 40px;
  }

  .community-section {
    padding: var(--spacing-md) var(--spacing-xs);
  }

  .news-view {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }

  .news-view .main-heading {
    font-size: var(--font-size-xxl);
    margin: 0.3rem 0;
  }

  .news-view .subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }

  .news-header {
    margin-bottom: var(--spacing-lg);
  }

  .news-header h1 {
    font-size: 1.6rem;
  }

  .news-posts {
    gap: var(--spacing-md);
  }

  .news-tile {
    aspect-ratio: 1.2;
  }

  .news-image {
    height: 45%;
  }

  .news-content {
    padding: var(--spacing-sm);
  }

  .news-content h3 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.1;
  }

  .news-content p {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.1rem;
  }

  .news-date {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }

  .youtube-play-button {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  /* Community links responsive styles */
  .community-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .community-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .community-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .community-stat-card {
    min-width: 260px;
    max-width: 300px;
    padding: var(--spacing-md);
  }

  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .badges-section {
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
  }

  .badge {
    min-width: 100px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }
}

/* === Blog Article Styles === */
.blog-main {
  max-width: none;
  padding-top: 0;
}

.blog-article {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
}

.blog-article .hero-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem 2.4rem;
  margin-bottom: 1.5rem;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  background: rgba(255, 224, 102, 0.2);
  padding: 0.36rem 0.95rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(0.96rem, 1.65vw, 1.08rem);
  line-height: 1.62;
  color: #505050;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.meta-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b4b4b;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
}

.meta-item .meta-icon {
  color: var(--accent-gold-dark);
  margin-right: 0.32rem;
}

.meta-item.meta-authors {
  flex: 1 1 100%;
  text-align: center;
  background: transparent;
  border-color: transparent;
  color: #636363;
  padding-top: 0.15rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: #2d2d2d;
}

.section-card {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.025);
  padding: 1.8rem;
  margin: 1.35rem 0;
}

.section-card + .section-card {
  margin-top: 2.1rem;
  position: relative;
}

.section-card + .section-card::before {
  content: "";
  width: 72px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: -1.08rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Unified news article layout */
.blog-article-unified .section-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem 0;
  margin: 0;
}

.blog-article-unified {
  margin-top: 1rem;
}

.blog-article-unified .hero-section {
  margin-bottom: 2.25rem;
}

.blog-article-unified .section-header {
  text-align: left;
  margin: 0 0 1.15rem;
}

.blog-article-unified .section-header .section-kicker {
  margin-bottom: 0.85rem;
}

.blog-article-unified .section-header .section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.blog-article-unified .section-header p {
  font-size: clamp(0.96rem, 1.65vw, 1.08rem);
  color: #505050;
  margin: 0;
  max-width: 760px;
  line-height: 1.62;
}

.blog-article-unified .section-card + .section-card {
  margin-top: 2.2rem;
  padding-top: 2.1rem;
}

.blog-article-unified .section-card + .section-card::before {
  content: none;
}

.blog-article-unified .model-card-enhanced {
  box-shadow: none;
}

.blog-article-unified .model-showcase-single {
  grid-template-columns: minmax(0, 760px);
}

.blog-article-arcade .model-showcase-single {
  grid-template-columns: minmax(0, 1fr);
}

.blog-article-arcade .model-card-enhanced {
  max-width: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-article-arcade .model-card-enhanced > p {
  margin: 0;
}

.blog-article-arcade .model-card-enhanced .model-title {
  margin: 0 0 0.35rem;
}

.blog-article-arcade .model-stat-grid {
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
  border-top: 0;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.blog-article-arcade .model-stat-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.blog-article-arcade .model-stat-row strong {
  color: #2d2d2d;
}

.blog-article-arcade .arcade-demo-media {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.blog-article-unified .blog-callout {
  margin-top: 1.15rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(230, 184, 0, 0.36);
  border-left: 4px solid var(--accent-gold);
  border-radius: 12px;
  padding: 0.95rem 1rem 0.95rem 0.9rem;
  box-shadow: none;
}

.blog-article-unified .blog-callout-title {
  color: #3f3200;
}

.blog-article-unified .blog-callout p {
  color: #3f3f3f;
}

.blog-article-unified .blog-download-table {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 0, 0, 0.08);
}

.blog-article-unified .blog-download-table thead th {
  background: rgba(255, 255, 255, 0.96);
  color: #3b3b3b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-article-unified .cta-separator {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-article-unified .cta-section-minimal {
  margin-top: 3.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
  border-color: rgba(0, 0, 0, 0.08);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  background: rgba(255, 224, 102, 0.2);
  padding: 0.34rem 0.9rem;
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 740;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.95rem 0;
  color: #1f1f1f;
}

.article-content h3 {
  margin: 1.3rem 0 0.65rem;
  font-size: 1.2rem;
  color: #222;
}

.article-content p {
  margin: 0 0 1rem 0;
}

.blog-media {
  margin: 1.2rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-media img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 1rem;
}

.feature-item-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: #5b5b5b;
  font-size: 0.94rem;
  line-height: 1.5;
}

.feature-icon {
  display: none;
}

.feature-icon-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.model-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.model-card-enhanced {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.model-title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.model-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #675100;
  background: rgba(255, 224, 102, 0.34);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
}

.model-stat-grid {
  margin-top: 0.85rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.11);
  padding-top: 0.7rem;
  display: grid;
  gap: 0.4rem;
}

.model-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #555;
}

.blog-callout {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(255, 224, 102, 0.22), rgba(255, 224, 102, 0.14));
  border: 1px solid rgba(255, 224, 102, 0.48);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.blog-callout-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4d3a00;
}

.blog-callout p {
  margin: 0;
  color: #4f4f4f;
}

.blog-download-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.85rem 0 0.7rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

.blog-download-table th,
.blog-download-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.72rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.blog-download-table th {
  background: rgba(255, 224, 102, 0.14);
  color: #3a3a3a;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-download-table tbody tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.blog-download-table td:first-child {
  width: 180px;
  white-space: nowrap;
}

.blog-download-note {
  margin: 0.3rem 0 1rem;
  font-size: 0.9rem;
  color: #5a5a5a;
}

.blog-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 0.95rem;
}

.step-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #3f3200;
}

.step-card p {
  margin: 0;
  color: #5b5b5b;
  font-size: 0.93rem;
}

.enhanced-code-block {
  background: #191a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 1rem;
  margin: 0.9rem 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.blog-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  padding: 0.3rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-copy-btn:hover,
.blog-copy-btn:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 224, 102, 0.45);
  transform: translateY(-1px);
}

.blog-copy-btn.is-copied {
  color: #fff2b3;
  border-color: rgba(255, 224, 102, 0.55);
  background: rgba(255, 224, 102, 0.18);
}

.code-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-dots {
  display: flex;
  gap: 0.32rem;
}

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

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca3f; }

.enhanced-code-block pre,
.enhanced-code-block code {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  background: transparent;
  padding: 0;
}

.cta-section {
  margin-top: 1.2rem;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 58%, var(--primary-yellow-darker) 100%);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.cta-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.cta-subtitle {
  margin: 0.6rem auto 0;
  max-width: 680px;
  color: #333;
  text-align: center;
}

.cta-links {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
}

.cta-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.38rem;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-link:first-child {
  background: #181818;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.cta-link:hover,
.cta-link:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  color: #1f1f1f;
}

.cta-link:first-child:hover,
.cta-link:first-child:focus {
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cta-note {
  margin-top: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 0.9rem;
  color: #2f2f2f;
  font-weight: 600;
}

.cta-section-minimal .cta-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section-minimal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.cta-section-minimal .cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section-minimal .cta-subtitle {
  width: min(680px, 100%);
  margin: 0.6rem 0 0;
  text-align: center;
}

.cta-section-minimal .download-btn {
  margin: 0;
}

.cta-section-minimal .cta-action-primary,
.cta-section-minimal .cta-action-secondary {
  min-width: 240px;
  min-height: 52px;
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-section-minimal .cta-action-primary {
  background: #181818;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.cta-section-minimal .cta-action-primary:hover,
.cta-section-minimal .cta-action-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.cta-section-minimal .cta-action-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: #1f1f1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cta-section-minimal .cta-action-secondary:hover,
.cta-section-minimal .cta-action-secondary:focus {
  color: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.article-navigation {
  margin-top: 1.1rem;
  text-align: center;
}

.back-to-news-btn {
  min-width: min(250px, 80vw);
  max-width: min(250px, 80vw);
  height: 56px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.78rem 1.2rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 58%, var(--primary-yellow-darker) 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-news-btn:hover,
.back-to-news-btn:focus {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px) scale(1.01);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .blog-article {
    padding: 1rem;
  }

  .blog-article .hero-section {
    padding: 2rem 1.2rem 1.7rem;
  }

  .section-card {
    padding: 1.2rem;
  }

  .blog-article-unified .section-card {
    padding: 1rem 0;
  }

  .blog-article-unified .hero-section {
    margin-bottom: 1.8rem;
  }

  .blog-article-arcade .model-stat-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-arcade .arcade-demo-media {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-meta {
    justify-content: flex-start;
  }

  .meta-item {
    width: 100%;
    text-align: center;
  }

  .meta-item.meta-authors {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

/* =============================================================
   HOMEPAGE v6 — tighter layout + stronger section hierarchy
   ============================================================= */

.hp-main {
  max-width: none;
  padding-top: 0;
}

/* --- Split Hero --- */
.hp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 7rem 1.5rem 9rem;
  min-height: auto;
  position: relative;
}

.hp-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  max-width: 560px;
}

.hp-subtitle-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(460px, 100%);
}

.hp-headline {
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  font-weight: 400;
  color: #171717;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.035em;
}

.hp-headline-top {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  white-space: nowrap;
}

.hp-carousel-wrap {
  --hp-carousel-line-height: 1.14;
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  overflow: hidden;
  text-align: left;
  line-height: var(--hp-carousel-line-height);
  padding-right: 0.06em;
  padding-bottom: 0.08em;
}

.hp-carousel-sizer {
  display: inline-block;
  visibility: hidden;
  color: transparent;
  pointer-events: none;
  user-select: none;
  font-weight: 700;
  line-height: var(--hp-carousel-line-height);
  white-space: nowrap;
}

.hp-carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hp-carousel-slot {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  color: var(--accent-gold-dark);
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  line-height: var(--hp-carousel-line-height);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
}

.hp-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #474747;
  margin: 0;
  line-height: 1.5;
  font-weight: 450;
}

.hp-cta-row {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  max-width: 460px;
}

.hp-cta-row .download-btn,
.hp-cta-row .dev-btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  text-align: center;
  line-height: 1.1;
}

.hp-cta-row .download-sub,
.hp-cta-row .dev-sub {
  font-size: 0.75rem;
}

.hp-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-demo-panel {
  width: 100%;
  max-width: 440px;
  background: #1a1b30;
  border-radius: 18px;
  padding: 1.4rem;
  height: 290px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-demo-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: calc(100% - 2.8rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  inset: 1.4rem 1.75rem;
  pointer-events: none;
}

.hp-demo-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hp-demo-item.exiting-up {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.hp-demo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.hp-demo-chat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
}

.hp-chat-user {
  background: rgba(255, 224, 102, 0.15);
  color: #ffe066;
  font-size: 0.82rem;
  padding: 0.66rem 0.9rem;
  border-radius: 15px 15px 15px 5px;
  line-height: 1.38;
  align-self: flex-start;
  max-width: 78%;
  width: fit-content;
}

.hp-demo-prompt {
  max-width: 78%;
  align-self: flex-start;
}

.hp-chat-ai {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px 10px 3px 10px;
  line-height: 1.4;
  align-self: flex-end;
  max-width: 90%;
}

.hp-demo-image {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  height: 100%;
}

.hp-demo-image-placeholder {
  width: clamp(220px, 68vw, 300px);
  aspect-ratio: 2 / 1;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px;
  align-self: flex-end;
  background: #1f2035 url("https://raw.githubusercontent.com/lemonade-sdk/assets/refs/heads/main/docs/generated_image.png") center/contain no-repeat;
}

@keyframes hp-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hp-demo-image-prompt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  line-height: 1.4;
}

.hp-demo-audio {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  height: 100%;
}

.hp-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 96px;
  width: 82%;
  max-width: 82%;
  align-self: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  margin-top: 20px;
  flex-shrink: 0;
}

.hp-waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--primary-yellow);
  opacity: 0.82;
  animation: hp-wave 1.2s ease-in-out infinite;
}

.hp-waveform span:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.hp-waveform span:nth-child(2)  { height: 55%; animation-delay: 0.05s; }
.hp-waveform span:nth-child(3)  { height: 80%; animation-delay: 0.10s; }
.hp-waveform span:nth-child(4)  { height: 60%; animation-delay: 0.15s; }
.hp-waveform span:nth-child(5)  { height: 95%; animation-delay: 0.20s; }
.hp-waveform span:nth-child(6)  { height: 70%; animation-delay: 0.25s; }
.hp-waveform span:nth-child(7)  { height: 45%; animation-delay: 0.30s; }
.hp-waveform span:nth-child(8)  { height: 85%; animation-delay: 0.35s; }
.hp-waveform span:nth-child(9)  { height: 50%; animation-delay: 0.40s; }
.hp-waveform span:nth-child(10) { height: 75%; animation-delay: 0.45s; }
.hp-waveform span:nth-child(11) { height: 40%; animation-delay: 0.50s; }
.hp-waveform span:nth-child(12) { height: 90%; animation-delay: 0.55s; }
.hp-waveform span:nth-child(13) { height: 55%; animation-delay: 0.60s; }
.hp-waveform span:nth-child(14) { height: 70%; animation-delay: 0.65s; }
.hp-waveform span:nth-child(15) { height: 35%; animation-delay: 0.70s; }
.hp-waveform span:nth-child(16) { height: 80%; animation-delay: 0.75s; }
.hp-waveform span:nth-child(17) { height: 50%; animation-delay: 0.80s; }
.hp-waveform span:nth-child(18) { height: 65%; animation-delay: 0.85s; }
.hp-waveform span:nth-child(19) { height: 40%; animation-delay: 0.90s; }
.hp-waveform span:nth-child(20) { height: 55%; animation-delay: 0.95s; }
.hp-waveform span:nth-child(21) { height: 75%; animation-delay: 1.00s; }
.hp-waveform span:nth-child(22) { height: 45%; animation-delay: 1.05s; }
.hp-waveform span:nth-child(23) { height: 85%; animation-delay: 1.10s; }
.hp-waveform span:nth-child(24) { height: 60%; animation-delay: 1.15s; }
.hp-waveform span:nth-child(25) { height: 50%; animation-delay: 1.20s; }

@keyframes hp-wave {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.35); }
}

.hp-audio-text {
  align-self: flex-end;
}

/* --- Shared section system --- */
.hp-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-reveal.hp-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.4rem 1.8rem;
  text-align: center;
  position: relative;
}

.hp-section + .hp-section::before {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hp-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  background: rgba(255, 224, 102, 0.2);
  padding: 0.36rem 0.95rem;
  border-radius: 100px;
  margin-bottom: 0.95rem;
}

.hp-section-heading {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 750;
  color: var(--text-primary);
  margin: 0 0 0.9rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hp-section-desc {
  font-size: clamp(0.96rem, 1.65vw, 1.08rem);
  color: #505050;
  margin: 0 auto 2rem;
  max-width: 760px;
  line-height: 1.62;
}

/* --- Open source section --- */
.hp-open-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.2rem;
  align-items: start;
  text-align: left;
}

@media (min-width: 1000px) {
  .hp-open-layout {
    align-items: stretch;
  }

  .hp-open-story,
  .hp-open-stack {
    height: 100%;
  }
}

.hp-open-story,
.hp-open-stack {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.hp-open-story {
  display: flex;
  flex-direction: column;
}

.hp-open-story h3,
.hp-open-stack h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #1e1e1e;
  letter-spacing: -0.01em;
}

.hp-community-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
  margin-top: 1.5rem;
  margin-left: 10px;
  justify-items: start;
}

.hp-community-btn {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  border-radius: 14px;
  padding: 0;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  min-height: 72px;
  width: 100%;
  max-width: 270px;
}

.hp-community-btn:hover {
  transform: translateY(-2px);
}

.hp-community-btn-icon-col {
  width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.hp-community-btn-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.62rem 0.9rem 0.58rem;
}

.hp-community-btn-icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  opacity: 0.95;
}

.hp-community-btn-icon img,
.hp-community-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  fill: currentColor;
}

.hp-community-btn-label {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.16;
}

.hp-community-btn-sub {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hp-community-btn-github {
  background: #181818;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.17);
}

.hp-community-btn-github .hp-community-btn-sub {
  color: rgba(255, 255, 255, 0.72);
}

.hp-community-btn-github .hp-community-btn-icon-col {
  background: rgba(255, 255, 255, 0.07);
}

.hp-community-btn-discord {
  background: linear-gradient(145deg, #6677f9, #5865f2);
  color: #fff;
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.24);
}

.hp-community-btn-discord .hp-community-btn-sub {
  color: rgba(255, 255, 255, 0.8);
}

.hp-community-btn-discord .hp-community-btn-icon-col {
  background: rgba(255, 255, 255, 0.12);
}

.hp-community-btn-github:hover {
  border-color: rgba(255, 224, 102, 0.36);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.hp-community-btn-discord:hover {
  box-shadow: 0 12px 22px rgba(88, 101, 242, 0.3);
}

.hp-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 0.45rem 0.72rem;
  margin-top: 0.95rem;
  /* Partner logo tuning controls (desktop defaults). */
  --hp-logo-lockup-width: 176px;
  --hp-logo-base-height: 34px;
  --hp-logo-scale-1: 1.3; /* llama.cpp */
  --hp-logo-scale-2: 2; /* ONNX Runtime */
  --hp-logo-scale-3: 1.08; /* FastFlowLM */
  --hp-logo-scale-4: 1.5; /* Ryzen AI */
  --hp-logo-scale-5: 1.3; /* ROCm */
  --hp-logo-scale-6: 2; /* Hugging Face */
  --hp-logo-scale-7: 1.1; /* Vulkan */
  --hp-logo-scale-8: 1.25; /* whisper.cpp */
  --hp-logo-scale-9: 2.5; /* stable-diffusion.cpp */
  --hp-logo-scale-10: 2.3; /* Kokoros */
}

.hp-logo-chip {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.26rem 0.32rem;
  text-decoration: none;
  filter: grayscale(0.04) saturate(0.97);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  opacity: 0.94;
  position: relative;
  border-radius: 10px;
  --hp-scale: 1;
  width: 100%;
}

.hp-logo-chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hp-logo-chip:hover {
  transform: translateY(-1px);
  filter: grayscale(0) saturate(1);
  opacity: 1;
}

.hp-logo-chip:hover::before {
  opacity: 1;
}

.hp-logo-lockup {
  width: min(var(--hp-logo-lockup-width), 100%);
  height: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.hp-logo-chip img {
  width: auto;
  max-width: min(182px, 100%);
  height: max(28px, calc(var(--hp-logo-base-height) * var(--hp-scale)));
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hp-logo-chip:nth-child(1) { --hp-scale: var(--hp-logo-scale-1); }
.hp-logo-chip:nth-child(2) { --hp-scale: var(--hp-logo-scale-2); }
.hp-logo-chip:nth-child(3) { --hp-scale: var(--hp-logo-scale-3); }
.hp-logo-chip:nth-child(4) { --hp-scale: var(--hp-logo-scale-4); }
.hp-logo-chip:nth-child(5) { --hp-scale: var(--hp-logo-scale-5); }
.hp-logo-chip:nth-child(6) { --hp-scale: var(--hp-logo-scale-6); }
.hp-logo-chip:nth-child(7) { --hp-scale: var(--hp-logo-scale-7); }
.hp-logo-chip:nth-child(8) { --hp-scale: var(--hp-logo-scale-8); }
.hp-logo-chip:nth-child(9) { --hp-scale: var(--hp-logo-scale-9); }
.hp-logo-chip:nth-child(10) { --hp-scale: var(--hp-logo-scale-10); }

.hp-section-release {
  margin-top: 1.3rem;
}

.hp-release-carousel {
  display: grid;
  grid-template-columns: auto 700px auto;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.hp-release-nav {
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(33, 33, 33, 0.52);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hp-release-nav span {
  font-size: 3.15rem;
  line-height: 0.95;
}

.hp-release-nav:hover,
.hp-release-nav:focus {
  color: rgba(33, 33, 33, 0.82);
}

.hp-release-nav:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.hp-release-section .release-announcement {
  margin: 0 auto;
  width: 700px;
  min-width: 700px;
  max-width: 700px;
  min-height: 300px;
  animation: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
  padding: 0;
}

.hp-release-section .release-announcement::before {
  display: none;
}

.hp-release-section .release-content {
  margin-bottom: 0;
  padding: 1.2rem 1.2rem 0.72rem;
}

.hp-release-section .release-info {
  text-align: left;
}

.hp-release-section .release-name {
  margin: 0 0 0.3rem 0;
  font-size: 1.28rem;
  color: #2a2a2a;
}

.hp-release-section .release-date {
  margin: 0 0 0.86rem;
}

.hp-release-section .release-link {
  margin: 0 auto 1.05rem;
  min-width: min(250px, 80vw);
  max-width: min(250px, 80vw);
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.2rem;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 58%, var(--primary-yellow-darker) 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hp-release-section .release-link:hover,
.hp-release-section .release-link:focus {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px) scale(1.02);
}

.hp-release-section .release-link:active {
  background: var(--primary-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(0.98);
}

/* --- Technical details section --- */
.hp-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  text-align: left;
}

.hp-tech-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.hp-tech-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.62rem;
}

.hp-tech-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #242424;
  line-height: 1.3;
}

.hp-tech-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #535353;
}

/* --- Unified API section --- */
.hp-api-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
  margin-top: 1.25rem;
  --hp-api-block-width: 700px;
}

.hp-api-modalities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(var(--hp-api-block-width), 100%);
}

.hp-api-modality {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(145deg, #191a2e, #1f2036);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.62rem 0.72rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
}

.hp-api-modality:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 102, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.hp-api-modality.is-active {
  border-color: rgba(255, 224, 102, 0.55);
  background: linear-gradient(145deg, #21233f, #2a2d50);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 224, 102, 0.24);
}

.hp-api-modality:focus-visible {
  border-color: rgba(255, 224, 102, 0.42);
}

.hp-api-modality:active {
  background: linear-gradient(145deg, #191a2e, #1f2036);
  transform: translateY(0);
}

.hp-api-modality.is-active:active {
  background: linear-gradient(145deg, #1b1d33, #242642);
}

.hp-api-modality h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 620;
  color: rgba(255, 255, 255, 0.96);
}

.hp-api-modality.is-active h3 {
  color: #fff2b3;
}

.hp-api-sample-panel {
  background: #191a2e;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  height: auto;
  width: min(var(--hp-api-block-width), 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.hp-api-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.hp-api-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  line-height: 0;
  padding: 0.46rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hp-api-copy-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  fill: currentColor;
}

.hp-api-copy-btn:hover,
.hp-api-copy-btn:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 224, 102, 0.42);
  transform: translateY(-1px);
}

.hp-api-copy-btn.is-copied {
  color: #ffe680;
  border-color: rgba(255, 224, 102, 0.55);
  background: rgba(255, 224, 102, 0.16);
}

.hp-api-sample-method {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
  gap: 0.48rem;
}

.hp-api-cta {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.hp-api-cta .marketplace-cta-btn {
  margin: 0;
  min-width: min(250px, 80vw);
  max-width: min(250px, 80vw);
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.hp-api-sample-panel pre {
  margin: 0.68rem 0 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.86rem 0.95rem;
  overflow: visible;
  max-height: none;
  white-space: pre-wrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
}

.hp-api-sample-panel code {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  display: block;
  min-width: 0;
  white-space: pre-wrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
}

.hp-api-method {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hp-method-badge {
  background: rgba(255, 224, 102, 0.14);
  color: #ffe066;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.38rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}


/* --- Ecosystem section --- */
.hp-eco-apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem 0.85rem;
  text-align: center;
  margin-top: 1.35rem;
  width: min(860px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hp-eco-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.35rem;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s ease;
}

.hp-eco-app:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
}

.hp-eco-app img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
}

.hp-eco-app-name {
  font-size: 0.82rem;
  font-weight: 620;
  color: #1f1f1f;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
}

.hp-eco-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hp-eco-cta .marketplace-cta-btn {
  margin: 0;
  min-width: min(250px, 80vw);
  max-width: min(250px, 80vw);
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.2rem;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 58%, var(--primary-yellow-darker) 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hp-eco-cta .marketplace-cta-btn:hover,
.hp-eco-cta .marketplace-cta-btn:focus {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px) scale(1.02);
}

.hp-eco-cta .marketplace-cta-btn:active {
  background: var(--primary-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(0.98);
}

/* --- Homepage responsive --- */
@media (max-width: 1024px) {
  .hp-main {
    margin-top: 0 !important;
  }
}

@media (max-width: 980px) {
  .hp-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.75rem;
    padding: 2.8rem 1rem 4rem;
    text-align: center;
  }

  .hp-hero-left {
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .hp-hero-right {
    width: 100%;
    margin: 0 auto;
  }

  .hp-subtitle-group {
    width: 100%;
    max-width: 440px;
  }

  .hp-demo-panel {
    max-width: 440px;
    height: 280px;
    margin: 0 auto;
  }

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

  .hp-open-story {
    width: 100%;
    max-width: 440px;
    justify-self: center;
  }

  .hp-open-story h3 {
    text-align: center;
  }

  .hp-community-cta {
    margin-left: 0;
    justify-items: center;
  }

  .hp-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-api-modalities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-api-sample-panel {
    height: auto;
  }

  .hp-release-carousel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0;
    position: relative;
    padding: 0 2.1rem;
  }

  .hp-release-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 0.14rem;
  }

  .hp-release-nav span {
    font-size: 2.1rem;
    line-height: 1;
  }

  .hp-release-nav-prev {
    left: 0.1rem;
  }

  .hp-release-nav-next {
    right: 0.1rem;
  }

  .hp-release-section .release-announcement {
    width: min(700px, 100%);
    min-width: 0;
    max-width: min(700px, 100%);
    min-height: 300px;
  }

  .hp-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.34rem 0.58rem;
    --hp-logo-base-height: 32px;
    --hp-logo-lockup-width: 164px;
  }

  .hp-logo-chip {
    min-height: 64px;
  }

  .hp-eco-apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .hp-section {
    padding: 2.8rem 1rem;
  }

  .hp-headline {
    font-size: 1.9rem;
  }

  .hp-cta-row {
    flex-direction: column;
    width: auto;
    max-width: 460px;
    align-items: center;
  }

  .hp-cta-row .download-btn,
  .hp-cta-row .dev-btn {
    width: min(250px, 80vw);
    min-width: min(250px, 80vw);
    max-width: min(250px, 80vw);
    height: 70px;
    min-height: 70px;
    padding: 0.8rem 1rem;
    justify-content: center;
  }

  .hp-demo-panel {
    height: 265px;
  }

  .hp-demo-image-placeholder {
    height: 128px;
  }

  .hp-api-modalities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-api-sample-panel code {
    font-size: 0.84rem;
  }

  .hp-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-eco-apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hp-tech-grid {
    grid-template-columns: 1fr;
  }

  .hp-api-modalities {
    grid-template-columns: 1fr;
  }

  .hp-api-sample-panel {
    height: auto;
    padding: 0.95rem;
  }

  .hp-demo-panel,
  .hp-open-story,
  .hp-open-stack,
  .hp-tech-card,
  .hp-api-modality,
  .hp-api-sample-panel,
  .hp-eco-app {
    border-radius: 12px;
  }

  .hp-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.24rem 0.4rem;
    --hp-logo-base-height: 30px;
    --hp-logo-lockup-width: 144px;
  }

  .hp-logo-chip {
    min-height: 58px;
  }

  .hp-eco-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem 0.5rem;
  }

}
