/* Lemonade Website Styles */

/* === CSS Variables === */
:root {
  /* Colors — Crystalline Zest Design System */
  --primary-yellow: #FCD846;
  --primary-yellow-dark: #FAF972;
  --primary-yellow-darker: #f0cc00;
  --accent-gold: #5C4B00;
  --on-primary: #000000;           /* text/icons on yellow buttons */
  --on-primary-muted: #3a3000;     /* text on light-yellow surfaces (e.g. user chat bubbles) */

  /* Tonal Architecture */
  --surface: #F6F6F6;
  --surface-bright: rgba(255, 255, 255, 0.85);
  --surface-container: #EFEFEF;
  --surface-container-low: #F3F3F3;
  --surface-container-lowest: #FFFFFF;
  --surface-container-high: #E8E8E8;
  --tertiary: #3C6531;
  --outline-variant: rgba(45, 47, 47, 0.15);

  /* Glassmorphism tokens */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-bg-dense: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 24px;

  /* Text hierarchy — darkest to lightest */
  --text-on-light: #000000;        /* max contrast on light backgrounds */
  --text-primary: #2D2F2F;
  --text-secondary: #474747;
  --text-nav: #52525b;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --text-success: #3C6531;

  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAF5;
  --bg-tertiary: #FCD846;
  --bg-white: #fff;
  --bg-overlay: rgba(246, 246, 246, 0.72);

  --border-light: rgba(45, 47, 47, 0.08);
  --border-medium: rgba(45, 47, 47, 0.12);
  --border-primary: #FCD846;

  /* Tonal page gradient — top fades white into pale lemon. Used by both the
     homepage body and the docs site's body::before (in zest-theme.css). */
  --page-gradient: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 541px, #FFF9C4 1804px, #FFF9C4 100%);

  /* Ambient Shadows — on-surface color, never pure black */
  --shadow-light: 0 4px 16px rgba(45, 47, 47, 0.04);
  --shadow-medium: 0 8px 32px rgba(45, 47, 47, 0.06);
  --shadow-heavy: 0 14px 52px rgba(45, 47, 47, 0.085);
  --shadow-ambient: 0 12px 48px rgba(45, 47, 47, 0.05);
  --shadow-yellow: 0 12px 48px rgba(252, 216, 70, 0.3);
  --shadow-yellow-hover: 0 16px 56px rgba(252, 216, 70, 0.38);

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

  /* Typography — Crystalline Zest */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --font-family: var(--font-body);
  --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 — soft, refracted edges */
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-xxl: 2rem;
  --radius-round: 50%;
  --radius-full: 9999px;
  --radius-btn: 9999px;
  --radius-card: 3rem;
}

/* === Crystalline Zest — Midnight (Dark Mode tokens, DESIGN.md §2b) ===
   Activated when the document carries data-md-color-scheme="zest-dark". */
[data-md-color-scheme="zest-dark"] {
  /* Surface scale (warm-dark, never pure black) */
  --surface: #1A1813;
  --surface-bright: rgba(45, 41, 33, 0.85);
  --surface-container: #25221B;
  --surface-container-low: #1F1D17;
  --surface-container-lowest: #0E0E0B;
  --surface-container-high: #2D2922;

  --outline-variant: rgba(255, 255, 255, 0.10);

  /* Glass tokens — tinted dark fill + yellow-tinted border (DESIGN.md §2b) */
  --glass-bg: rgba(45, 41, 33, 0.55);
  --glass-bg-dense: rgba(45, 41, 33, 0.85);
  --glass-bg-hover: rgba(60, 54, 42, 0.75);
  --glass-border: rgba(252, 216, 70, 0.18);

  /* Text hierarchy — warm-leaning whites */
  --text-on-light: #FFFFFF;
  --text-primary: #F2EFE5;
  --text-secondary: #C7C2B5;
  --text-nav: #A8A39A;
  --text-muted: #837F75;
  --text-light: #5C594F;

  --bg-primary: #1A1813;
  --bg-secondary: #1F1D17;
  --bg-tertiary: #FCD846; /* yellow accent unchanged */
  --bg-white: #25221B;
  --bg-overlay: rgba(20, 19, 16, 0.78);

  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);

  --page-gradient: linear-gradient(to bottom, #0E0E0B 0px, #0E0E0B 541px, #1F1A0E 1804px, #1F1A0E 100%);

  /* Shadows — plain black at higher alpha; yellow glow unchanged */
  --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-heavy: 0 14px 52px rgba(0, 0, 0, 0.60);
  --shadow-ambient: 0 12px 48px rgba(0, 0, 0, 0.40);
}

/* === Ice Card — Glassmorphic base (DESIGN.md §4 "Ice" layer) === */
.ice-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ambient);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  /* Tonal gradient: matches reference (1804px body, 30%=541px, 100%=1804px) */
  background: var(--page-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  scroll-behavior: smooth;
}

body::before {
  display: none;
}

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

/* === Navigation — Glassmorphism Rule === */
/* Major third typographic scale (1.25 ratio):
   links = base, github = base×1.25, brand = base×1.563
   Icons use em units so they scale with their parent text. */
.navbar {
  --nav-base: 1.05rem;
  --nav-scale: 1.25;
  --nav-link: var(--nav-base);
  --nav-action: calc(var(--nav-base) * var(--nav-scale));
  --nav-brand: calc(var(--nav-base) * var(--nav-scale) * var(--nav-scale));

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  transition: var(--transition-medium);
  border-bottom: none;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: var(--nav-brand);
  font-weight: 900;
  color: #18181b;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  margin-right: 0.3em;
  vertical-align: -0.15em;
}

.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: 2rem;
  align-items: center;
  justify-self: center;
  line-height: 1.1;
}

.navbar a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.navbar-links a {
  font-family: var(--font-display);
  font-size: var(--nav-link);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-nav);
}

.navbar-brand .brand-title a {
  color: #18181b;
}

.navbar a:hover,
.navbar-brand .brand-title a:hover {
  color: #18181b;
}

/* Navbar right-side actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

/* Hamburger toggle — hidden at desktop, shown at mobile via media query */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #18181b;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle.is-open .navbar-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.is-open .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.is-open .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.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 — Glassmorphism */
.breadcrumb {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(246, 246, 246, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-variant);
  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 — Editorial Authority */
.main-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.08;
  margin: var(--spacing-sm) 0 var(--spacing-xxl) 0;
  letter-spacing: -0.03em;
  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: 450;
  font-family: var(--font-body);
  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;
  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, .release-link, .navbar-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  outline: none;
  letter-spacing: -0.01em;
  padding: 0.75em 1.5em;
  line-height: 1.2;
}

.download-btn, .marketplace-cta-btn, .release-link, .navbar-install-btn {
  background: var(--primary-yellow);
  color: var(--on-primary);
  box-shadow: var(--shadow-yellow);
}

.download-btn:hover, .download-btn:focus,
.marketplace-cta-btn:hover, .marketplace-cta-btn:focus,
.release-link:hover, .release-link:focus,
.navbar-install-btn:hover, .navbar-install-btn:focus {
  transform: scale(1.02);
  box-shadow: var(--shadow-yellow-hover);
}

.download-btn:active, .marketplace-cta-btn:active,
.release-link:active, .navbar-install-btn:active {
  transform: scale(0.95);
}

.navbar-install-btn {
  font-size: var(--nav-link);
  padding: 0.625em 1.5em;
}

.dev-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-ambient);
}

.dev-btn:hover, .dev-btn:focus {
  background: var(--glass-bg-hover);
  border-color: rgba(252, 216, 70, 0.55);
  box-shadow: 0 16px 56px rgba(45, 47, 47, 0.12), 0 0 0 1px rgba(252, 216, 70, 0.18);
  transform: scale(1.02);
}

.dev-btn:active {
  transform: scale(0.95);
}

.download-btn .download-sub, .dev-btn .dev-sub {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: inherit;
  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: var(--primary-yellow);
  color: var(--accent-gold) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  border: none;
  border-radius: var(--radius);
  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-medium);
  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: var(--surface-container-low);
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-ambient);
  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: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-light);
}

.feature-box:hover {
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  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-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  min-height: 2.6em;
  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;
  padding: 0 var(--spacing-md);
  animation: fadeInUp 0.8s ease-out 0.8s both;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.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-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  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-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-left: 1.1em;
  position: relative;
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.4em;
  height: 0.4em;
  background: var(--primary-yellow);
  border-radius: var(--radius-round);
}

.highlight-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.release-link {
  align-self: flex-start;
  margin: auto var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

/* 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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--spacing-lg) 0 var(--spacing-lg) 0;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-top: none;
  position: relative;
  overflow: hidden;
}

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

.footer-nav-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.15rem;
  padding: 0;
  border-bottom: none;
}

.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: var(--radius);
  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: var(--spacing-md);
  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);
  padding-bottom: calc(var(--spacing-lg) + 2.25rem);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  margin: 0 0 var(--spacing-md) 0;
  font-family: var(--font-display);
  color: var(--text-primary);
  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: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: 4px 8px;
  border-radius: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .navbar-brand,
  .navbar-actions {
    flex: 0 0 auto;
    justify-self: auto;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-links {
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.25rem;
    display: none;
  }

  .navbar-links.is-open {
    display: flex;
  }

  .navbar-links a {
    padding: 0.75rem 0.25rem;
    font-size: 1.05rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 768px) {
  .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);
    padding-bottom: calc(var(--spacing-md) + 2.15rem);
  }

  .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;
  }

  .content-type-badge {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

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

@media (max-width: 600px) {
  .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);
  }

  .release-link {
    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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
}

.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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--font-mono);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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: var(--radius);
  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
   ============================================================= */

/* Page-level spacing scale (perfect fourth, 1.333 ratio)
   --page-space-sm  = base           ≈ 1.5rem
   --page-space-md  = base × 1.333   ≈ 2rem
   --page-space-lg  = base × 1.333²  ≈ 2.66rem
   --page-space-xl  = base × 1.333³  ≈ 3.55rem
   --page-space-xxl = base × 1.333⁴  ≈ 4.73rem */
.hp-main {
  --page-space-base: 2rem;
  --page-scale: 1.333;
  --page-space-sm: var(--page-space-base);
  --page-space-md: calc(var(--page-space-base) * var(--page-scale));
  --page-space-lg: calc(var(--page-space-base) * var(--page-scale) * var(--page-scale));
  --page-space-xl: calc(var(--page-space-base) * var(--page-scale) * var(--page-scale) * var(--page-scale));
  --page-space-xxl: calc(var(--page-space-base) * var(--page-scale) * var(--page-scale) * var(--page-scale) * var(--page-scale));

  max-width: none;
  padding-top: 0;
}

/* --- Split Hero --- */
/* Perfect fourth typographic scale (1.333 ratio) for hero:
   subtitle = base, headline = base × 1.333^3 ≈ base × 2.37
   Spacing uses the same scale for vertical rhythm. */
.hp-hero {
  --hero-base: clamp(1rem, 1.6vw, 1.18rem);
  --hero-scale: 1.333;
  --hero-subtitle: var(--hero-base);
  --hero-headline: calc(var(--hero-base) * var(--hero-scale) * var(--hero-scale) * var(--hero-scale));
  --hero-gap: calc(var(--hero-base) * var(--hero-scale));
  --hero-section-gap: calc(var(--hero-base) * var(--hero-scale) * var(--hero-scale));

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--hero-section-gap);
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--page-space-xl) 1.5rem 0;
  min-height: auto;
  position: relative;
}

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

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

.hp-headline {
  font-family: var(--font-display);
  font-size: var(--hero-headline);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.035em;
}

/* "local ___." line — keeps static text and carousel on the same baseline */
.hp-headline-line2 {
  display: inline;
  white-space: nowrap;
}

/* Carousel word — inline, normal flow, baseline-aligned by nature */
.hp-carousel-word {
  display: inline;
  color: var(--primary-yellow-darker);
  font-weight: 800;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

/* Exiting — fades out and slides up slightly */
.hp-carousel-word.is-exiting {
  opacity: 0;
  transform: translateY(-0.15em);
}

/* Entering — starts below, snaps instantly (no transition) */
.hp-carousel-word.is-entering {
  opacity: 0;
  transform: translateY(0.15em);
  transition: none;
}

.hp-subtitle {
  font-family: var(--font-body);
  font-size: var(--hero-subtitle);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  font-weight: 450;
  max-width: 420px;
}

.hp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.hp-cta-row .download-btn,
.hp-cta-row .dev-btn {
  margin: 0;
  font-size: 1.1rem;
}

.hp-cta-icon {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  flex-shrink: 0;
}

.hp-cta-stat {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.65;
}

.hp-cta-row .download-sub,
.hp-cta-row .dev-sub {
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.75;
  font-style: normal;
}

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

/* Demo panel — glassmorphic light theme per DESIGN.md */
.hp-demo-panel {
  width: 100%;
  max-width: 440px;
  padding: 1.4rem;
  height: 290px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-heavy);
}

.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-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Carousel item shared layout tokens */
.hp-demo-panel {
  --demo-gap: 0.5rem;
  --demo-font: 0.82rem;
  --demo-padding: 0.6rem 0.85rem;
  --demo-radius: var(--radius-lg);
  --demo-user-max: 80%;
  --demo-response-max: clamp(220px, 68vw, 300px);
}

.hp-demo-chat,
.hp-demo-coding,
.hp-demo-image,
.hp-demo-audio {
  display: flex;
  flex-direction: column;
  gap: var(--demo-gap);
  height: 100%;
}

.hp-demo-chat {
  justify-content: space-between;
}

.hp-chat-user {
  background: rgba(252, 216, 70, 0.25);
  color: var(--on-primary-muted);
  font-family: var(--font-body);
  font-size: var(--demo-font);
  font-weight: 500;
  padding: var(--demo-padding);
  border-radius: var(--demo-radius) var(--demo-radius) var(--demo-radius) 4px;
  line-height: 1.38;
  align-self: flex-start;
  max-width: var(--demo-user-max);
  width: fit-content;
  border: 1px solid rgba(252, 216, 70, 0.12);
}

.hp-demo-prompt {
  max-width: var(--demo-user-max);
  align-self: flex-start;
}

.hp-chat-ai {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--demo-font);
  padding: var(--demo-padding);
  border-radius: var(--demo-radius) var(--demo-radius) 4px var(--demo-radius);
  line-height: 1.4;
  align-self: flex-end;
  max-width: var(--demo-response-max);
  border: none;
}

/* Coding demo */
.hp-code-block {
  margin: 0;
  padding: var(--demo-padding);
  padding-top: 1.4rem;
  background: var(--surface-container-low);
  border-radius: var(--demo-radius) var(--demo-radius) 4px var(--demo-radius);
  border: none;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-secondary);
  overflow: hidden;
  align-self: flex-end;
  max-width: var(--demo-response-max);
  width: var(--demo-response-max);
  position: relative;
}

.hp-code-copy {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--text-light);
  opacity: 0.5;
  pointer-events: none;
}

.hp-code-block code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.hp-code-kw { color: #8b5cf6; }
.hp-code-fn { color: #059669; }
.hp-code-str { color: #059669; }
.hp-code-lit { color: #e44d26; }
.hp-code-ellipsis {
  color: var(--text-light);
  display: block;
  margin-top: 0.15rem;
  letter-spacing: 0.15em;
}

.hp-demo-image {
  justify-content: space-between;
}

.hp-demo-image-placeholder {
  width: var(--demo-response-max);
  aspect-ratio: 2 / 1;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--demo-radius);
  align-self: flex-end;
  background: var(--surface-container-low) url("https://raw.githubusercontent.com/lemonade-sdk/assets/refs/heads/main/docs/generated_image.png") center/contain no-repeat;
  border: none;
}

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

.hp-demo-image-prompt {
  font-family: var(--font-body);
  font-size: var(--demo-font);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.hp-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 96px;
  width: var(--demo-response-max);
  align-self: flex-end;
  border-radius: var(--demo-radius);
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  margin-top: 20px;
  flex-shrink: 0;
}

.hp-waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--primary-yellow-darker);
  opacity: 0.7;
  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: var(--page-space-xxl) 1.8rem 0;
  text-align: center;
  position: relative;
}

/* No-Line Rule: use spacing, not dividers */
.hp-section + .hp-section::before {
  display: none;
}

.hp-section-label {
  /* Ice Chip component */
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.42rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: calc(var(--page-space-base) * 0.475);
  border: 1px solid var(--outline-variant);
}

.hp-section-heading {
  font-family: var(--font-display);
  /* One perfect fourth step below hero headline (hero = base × 1.333³, section = base × 1.333²) */
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--page-space-sm);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hp-section-desc {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.65vw, 1.08rem);
  color: var(--text-secondary);
  margin: 0 auto var(--page-space-sm);
  max-width: 760px;
  line-height: 1.65;
}


/* --- Value proposition cards --- */
.hp-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}

.hp-value-card {
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(45, 47, 47, 0.08);
}

.hp-value-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.hp-value-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hp-value-icon .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hp-value-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hp-value-card:hover .hp-value-link {
  opacity: 1;
}

.hp-value-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hp-value-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.hp-value-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hp-value-list li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1.1em;
  position: relative;
}

.hp-value-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45em;
  height: 0.45em;
  background: var(--primary-yellow);
  border-radius: var(--radius-round);
}

.hp-logo-ticker {
  overflow: hidden;
  margin-top: var(--page-space-sm);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

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

.hp-logo-ticker:hover .hp-logo-ticker-track {
  animation-play-state: paused;
}

.hp-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hp-logo-chip:hover {
  transform: translateY(-1px);
}

.hp-logo-chip img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

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

.hp-release-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
}

.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: 100%;
  min-width: 0;
  max-width: none;
  animation: none;
  padding: var(--page-space-md) var(--page-space-lg);
  background: var(--glass-bg-dense);
}

.hp-release-section .release-content {
  margin-bottom: 0;
  padding: 0;
  gap: 0;
}

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

.hp-release-section .release-name {
  margin: 0 0 calc(var(--page-space-base) * 0.25);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.hp-release-section .release-date {
  margin: 0 0 var(--page-space-sm);
}

.hp-release-section .release-highlights {
  margin-top: 0;
}

.hp-release-section .highlight-list {
  gap: 0.6rem;
}

.hp-release-section .highlight-list li {
  font-size: 1rem;
  line-height: 1.55;
}

.hp-release-section .release-link {
  margin: var(--page-space-md) auto 0;
  align-self: center;
}

/* --- Technical details section --- */
.hp-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: left;
  background: var(--glass-bg-dense);
  overflow: hidden;
}

.hp-tech-item {
  padding: 1.5rem 1.75rem;
  position: relative;
}

/* Etched-glass vertical divider between columns */
.hp-tech-item:not(:nth-child(4n))::after {
  content: '';
  position: absolute;
  top: 18%;
  bottom: 18%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(45, 47, 47, 0.14), transparent);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.45);
}

/* Etched-glass horizontal divider between rows (only after top row of 4) */
.hp-tech-item:not(:nth-last-child(-n+4))::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(45, 47, 47, 0.14), transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hp-tech-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hp-tech-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hp-tech-icon .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.hp-tech-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* --- 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: 100%;
}

.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: rgba(26, 27, 48, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  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;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hp-api-modality-icon {
  font-size: 1.15rem;
  color: rgba(255, 224, 102, 0.78);
  flex-shrink: 0;
}

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

.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: rgba(26, 27, 48, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  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;
  box-shadow: var(--shadow-ambient);
}

.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: var(--radius);
  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;
}

.hp-api-sample-panel pre {
  margin: 0.68rem 0 0;
  border-radius: var(--radius);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--radius);
  letter-spacing: 0.04em;
}


/* --- Ecosystem section --- */
.hp-eco-apps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem 0.85rem;
  text-align: center;
  margin-top: 1.35rem;
  width: min(960px, 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.6rem 0.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: transparent;
  border: none;
  transition: all 0.22s ease;
}

.hp-eco-app:hover {
  background: var(--glass-bg-hover);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-medium);
  transform: scale(1.06);
}

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

.hp-eco-app-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 620;
  color: var(--text-primary);
  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;
}

/* Consistent width for section CTA buttons */
.hp-section-cta {
  min-width: 320px;
  justify-content: center;
}

/* --- Getting Started section --- */
.gs-platforms {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  justify-items: center;
  gap: calc(var(--page-space-base) * 0.3);
  max-width: 760px;
  margin: 0 auto var(--page-space-sm);
}

.gs-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--page-space-base) * 0.15);
  padding: calc(var(--page-space-base) * 0.275);
  background: transparent;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.gs-platform:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.gs-platform.is-active {
  opacity: 1;
  background: var(--glass-bg-hover);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-medium);
  transform: scale(1.06);
}

.gs-platform img {
  width: 52px;
  height: 52px;
  display: block;
  pointer-events: none;
}

.gs-platform-name {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--text-muted);
  text-align: center;
}

.gs-platform.is-active .gs-platform-name {
  color: var(--text-primary);
}

/* Install action row */
.gs-install {
  margin-bottom: calc(var(--page-space-base) * 0.5);
  min-height: 60px;
}

.gs-console {
  position: relative;
  padding: calc(var(--page-space-base) * 0.55) calc(var(--page-space-base) * 1.4) calc(var(--page-space-base) * 0.55) calc(var(--page-space-base) * 0.65);
  max-width: 550px;
  margin: 0 auto;
  text-align: left;
}

.gs-copy-btn {
  position: absolute;
  top: 50%;
  right: calc(var(--page-space-base) * 0.425);
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  border-radius: var(--radius);
  line-height: 0;
  padding: 0.38rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gs-copy-btn svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
  fill: currentColor;
}

.gs-copy-btn:hover,
.gs-copy-btn:focus {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow-darker);
  color: var(--accent-gold);
  transform: translateY(-50%) translateY(-1px);
}

.gs-copy-btn.is-copied {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow-darker);
  color: var(--accent-gold);
}

.gs-console pre {
  margin: 0;
  background: transparent;
  padding: 0;
  white-space: pre;
  overflow-x: auto;
}

.gs-console code {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.55;
  font-family: var(--font-mono);
  display: block;
}

.gs-fedora-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0.75rem 0 0.35rem;
}

/* Install download button */
.gs-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  min-width: 320px;
  border-radius: var(--radius-btn);
  background: var(--primary-yellow);
  color: var(--on-primary);
  text-decoration: none;
  box-shadow: var(--shadow-yellow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gs-download-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-yellow-hover);
}

.gs-download-link .material-symbols-outlined {
  font-size: 1.2em;
}

/* Quick start row */
.gs-quickstart {
}

.gs-quickstart-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

.gs-quickstart-text .material-symbols-outlined {
  font-size: 1.1em;
  vertical-align: -0.15em;
  color: var(--accent-gold);
}

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

@media (max-width: 980px) {
  .hp-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hero-section-gap);
    padding: var(--page-space-xl) 1rem 0;
    text-align: center;
  }

  /* Flatten left column and subtitle group so we can reorder:
     headline -> subtitle -> demo -> CTAs */
  .hp-hero-left,
  .hp-subtitle-group {
    display: contents;
  }

  .hp-headline {
    order: 1;
    max-width: 560px;
  }

  .hp-subtitle {
    order: 2;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .hp-cta-row {
    order: 3;
    justify-content: center;
    width: 100%;
    max-width: 440px;
  }

  .hp-hero-right {
    order: 4;
    width: 100%;
    margin: var(--page-space-md) auto 0;
  }

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


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

  /* Recompute etched dividers for 2-column layout */
  .hp-tech-item:not(:nth-child(4n))::after { display: none; }
  .hp-tech-item:not(:nth-last-child(-n+4))::before { display: none; }

  .hp-tech-item:not(:nth-child(2n))::after {
    content: '';
    display: block;
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(45, 47, 47, 0.14), transparent);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.45);
  }

  .hp-tech-item:not(:nth-last-child(-n+2))::before {
    content: '';
    display: block;
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(45, 47, 47, 0.14), transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  .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;
  }

  .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.35rem;
  }

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

  .hp-release-section .release-announcement {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: var(--page-space-md);
  }

  .hp-release-section .release-link {
    margin-left: auto;
    margin-right: auto;
  }

  .hp-logo-chip img {
    height: 28px;
  }

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

  .hp-eco-app img {
    width: 60px;
    height: 60px;
  }

  .gs-platform img {
    width: 44px;
    height: 44px;
  }

  .gs-console {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .hp-section {
    padding: var(--page-space-xxl) 1rem 0;
  }

  .hp-hero {
    --hero-base: 0.95rem;
  }

  .hp-cta-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .hp-cta-row .download-btn,
  .hp-cta-row .dev-btn {
    font-size: 0.95rem;
    padding: 0.6em 1em;
    flex: 0 1 auto;
  }

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

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

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

  .hp-eco-app img {
    width: 52px;
    height: 52px;
  }

  .hp-eco-app-name {
    font-size: 0.75rem;
  }

  .gs-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 420px;
    gap: 0.4rem;
  }

  .gs-platform img {
    width: 44px;
    height: 44px;
  }

}

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

  /* 1-column: no vertical dividers; horizontal between all but last */
  .hp-tech-item:not(:nth-child(2n))::after { display: none; }
  .hp-tech-item:not(:nth-last-child(-n+2))::before { display: none; }

  .hp-tech-item:not(:last-child)::before {
    content: '';
    display: block;
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(45, 47, 47, 0.14), transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  }

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

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

  .hp-demo-panel,
  .hp-tech-card,
  .hp-api-modality,
  .hp-api-sample-panel,
  .hp-eco-app {
    border-radius: var(--radius);
  }

  .hp-logo-chip img {
    height: 24px;
  }

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

  .hp-eco-app {
    padding: 0.4rem 0.25rem;
  }

  .hp-eco-app img {
    width: 44px;
    height: 44px;
  }

  .hp-eco-app-name {
    font-size: 0.7rem;
  }

  .gs-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 340px;
    gap: 0.25rem;
  }

  .gs-platform {
    padding: 0.35rem;
  }

  .gs-platform img {
    width: 38px;
    height: 38px;
  }

  .gs-platform-name {
    display: none;
  }

  .gs-console {
    border-radius: var(--radius);
    padding: 0.7rem 0.85rem;
  }

  .gs-console code {
    font-size: 0.8rem;
  }
}
