/* ============================================================
   CSS Custom Properties — Dark Ice Theme
   ============================================================ */
:root {
  --bg-primary: #070713;
  --bg-secondary: #0c0c1e;
  --bg-surface: #10102a;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);

  --accent-blue: #4f8ef7;
  --accent-blue-light: #7bb3ff;
  --accent-cyan: #22d3ee;
  --accent-purple: #a78bfa;
  --accent-glow-blue: rgba(79, 142, 247, 0.35);
  --accent-glow-purple: rgba(167, 139, 250, 0.25);

  --gradient-brand: linear-gradient(135deg, #4f8ef7 0%, #a78bfa 100%);
  --gradient-hero-bg: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 142, 247, 0.18) 0%, transparent 70%);
  --gradient-text: linear-gradient(135deg, #7bb3ff 0%, #c4b5fd 50%, #22d3ee 100%);

  --text-primary: #eef2ff;
  --text-secondary: rgba(238, 242, 255, 0.68);
  --text-muted: rgba(238, 242, 255, 0.42);
  --text-link: #7bb3ff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 7rem;

  --navbar-height: 68px;
  --container-max: 1200px;
  --container-padding: 1.5rem;

  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(79, 142, 247, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#main-content {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-blue-light); }
ul, ol { list-style: none; }
address { font-style: normal; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--spacing-xl);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   Badges
   ============================================================ */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--spacing-sm);
}

/* ============================================================
   Glass Card Component
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.55);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* ============================================================
   Animated Blob Shapes
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(70px);
  opacity: 0;
  animation: blob-fade-in 1.2s ease-out forwards, blob-morph 14s ease-in-out infinite;
  pointer-events: none;
}

.blob--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.18) 0%, rgba(79, 142, 247, 0.05) 70%);
  top: -120px; left: -120px;
  animation-delay: 0s, 0s;
}

.blob--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, rgba(167, 139, 250, 0.04) 70%);
  top: 80px; right: -100px;
  animation-delay: 0.3s, 3s;
  animation-duration: 1.2s, 18s;
}

.blob--3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, rgba(34, 211, 238, 0.03) 70%);
  bottom: 0; left: 35%;
  animation-delay: 0.6s, 6s;
  animation-duration: 1.2s, 20s;
}

@keyframes blob-fade-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes blob-morph {
  0%,  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  20%        { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  40%        { border-radius: 50% 60% 30% 70% / 40% 70% 60% 50%; }
  60%        { border-radius: 40% 50% 60% 40% / 70% 30% 50% 60%; }
  80%        { border-radius: 60% 40% 50% 60% / 30% 60% 40% 70%; }
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 19, 0.72);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(7, 7, 19, 0.88);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nav-arrow {
  transition: transform 0.4s ease;
}

.nav-item.has-megamenu:hover .nav-arrow,
.nav-item.has-megamenu.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-link--cta {
  color: var(--accent-blue-light) !important;
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.nav-link--cta:hover {
  background: rgba(79, 142, 247, 0.12) !important;
  border-color: rgba(79, 142, 247, 0.55);
}

/* ============================================================
   Mega-menu
   ============================================================ */
.nav-item.has-megamenu {
  position: static;
}

.megamenu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--navbar-height);
  background: rgba(10, 10, 26, 0.96);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 999;
}

.nav-item.has-megamenu:hover .megamenu,
.nav-item.has-megamenu.open .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.megamenu-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem var(--container-padding);
}

.megamenu-products-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 142, 247, 0.45) transparent;
  padding-bottom: 0.35rem;
}

.megamenu-products-scroll::-webkit-scrollbar {
  height: 6px;
}

.megamenu-products-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.megamenu-products-scroll::-webkit-scrollbar-thumb {
  background: rgba(79, 142, 247, 0.35);
  border-radius: 999px;
}

.megamenu-products-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 142, 247, 0.55);
}

.megamenu-products {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: min-content;
}

.megamenu-product-item {
  flex: 0 0 220px;
  max-width: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: var(--transition-fast);
}

.megamenu-product-item:hover,
.megamenu-product-item:focus-within {
  border-color: rgba(79, 142, 247, 0.35);
  background: rgba(79, 142, 247, 0.06);
}

.megamenu-product-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
}

.megamenu-product-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.megamenu-product-link:hover .megamenu-product-name,
.megamenu-product-item:focus-within > .megamenu-product-link .megamenu-product-name {
  color: var(--accent-blue-light);
}

.megamenu-sub-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s ease, color 0.4s ease;
}

.megamenu-product-item.has-subproducts:hover .megamenu-sub-chevron,
.megamenu-product-item.has-subproducts:focus-within .megamenu-sub-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue-light);
}

.megamenu-product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.megamenu-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.megamenu-product-item.has-subproducts:hover .megamenu-sublist,
.megamenu-product-item.has-subproducts:focus-within .megamenu-sublist {
  max-height: 320px;
  opacity: 1;
  border-top-color: var(--glass-border);
}

.megamenu-sublink {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.megamenu-sublink:hover,
.megamenu-sublink:focus-visible {
  color: var(--accent-blue-light);
  background: rgba(79, 142, 247, 0.08);
}

.megamenu-sublink:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ============================================================
   Navbar Toggle (mobile)
   ============================================================ */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-toggle:hover {
  background: var(--glass-bg);
}

.toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

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

/* ============================================================
   SVG Blob Image Decorations
   ============================================================ */
.blob-img {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.blob-img--hero-left {
  width: 420px;
  top: 5%;
  left: -80px;
  opacity: 0.04;
  filter: blur(2px);
  animation: blob-morph 16s ease-in-out infinite;
}

.blob-img--hero-right {
  width: 380px;
  top: 15%;
  right: -60px;
  opacity: 0.01;
  filter: blur(1px);
  animation: blob-morph 20s ease-in-out infinite reverse;
}

.blob-img--page-hero {
  width: 500px;
  top: -50px;
  right: -100px;
  opacity: 0.15;
  filter: blur(3px);
  animation: blob-morph 18s ease-in-out infinite;
}

.blob-img--page-corner {
  width: 280px;
  bottom: -30px;
  left: 5%;
  opacity: 0.1;
  filter: blur(2px);
  animation: blob-morph 22s ease-in-out infinite reverse;
}

.blob-img--downloads {
  width: 600px;
  top: -80px;
  right: -120px;
  opacity: 0.12;
  filter: blur(4px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
  padding-bottom: var(--spacing-2xl);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  padding-top: var(--spacing-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  animation: fade-slide-up 0.8s ease-out 0.1s both;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: fade-slide-up 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-blue-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: fade-slide-up 0.8s ease-out 0.3s both;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fade-slide-up 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-slide-up 0.8s ease-out 0.5s both;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--navbar-height) + var(--spacing-2xl)) 0 var(--spacing-xl);
  overflow: hidden;
}

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

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  animation: fade-slide-up 0.7s ease-out 0.1s both;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  animation: fade-slide-up 0.7s ease-out 0.2s both;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   Features Grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Products Grid (Home)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.product-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

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

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.85;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-card-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue-light);
}

/* ============================================================
   Problems Grid
   ============================================================ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.problem-item {
  padding: 2rem 1.75rem;
  position: relative;
}

.problem-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(79, 142, 247, 0.15);
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.problem-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Supporters Grid
   ============================================================ */
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.supporter-card {
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.supporter-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.supporter-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.supporter-body {
  min-width: 0;
}

.supporter-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.supporter-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   About Strip
   ============================================================ */
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 3rem;
  overflow: hidden;
  position: relative;
}

.about-strip-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.about-strip-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-strip-blobs {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  overflow: hidden;
  pointer-events: none;
}

.strip-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: blob-morph 12s ease-in-out infinite;
}

.strip-blob--1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.3) 0%, transparent 70%);
  top: -50px; right: -50px;
}

.strip-blob--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  bottom: -30px; right: 60px;
  animation-delay: 4s;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--text-secondary);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text-primary);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================================
   Product Detail
   ============================================================ */
.product-detail-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2.5rem;
  align-items: start;
}

.product-detail-image img {
  border-radius: var(--radius-md);
  width: 100%;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.main-product-layout {
  padding-top: var(--spacing-xl);
}

.main-product-main .product-detail-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.main-product-main .sub-downloads {
  margin-top: 0;
}

/* ============================================================
   Sub-products Grid
   ============================================================ */
.subproducts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.subproduct-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.subproduct-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

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

.subproduct-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subproduct-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.subproduct-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.subproduct-card-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue-light);
  transition: var(--transition-fast);
}

.subproduct-card:hover .subproduct-card-link {
  gap: 0.5rem;
}

/* ============================================================
   Sub-product Detail Layout
   ============================================================ */
.sub-product-layout {
  padding-top: var(--spacing-xl);
}

.sub-product-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.sub-product-main,
.main-product-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sub-product-main .sub-downloads {
  margin-top: 0;
}

.sub-product-image {
  overflow: hidden;
  padding: 0;
}

.sub-product-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.sub-product-desc {
  padding: 2rem;
}

.sub-product-desc h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sub-product-desc p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   Articles
   ============================================================ */
.articles-section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-card {
  padding: 2rem 2rem 5.5rem 2rem;
  position: relative;
}

.article-card-header {
  margin-bottom: 0.5rem;
}

.citation-count-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  opacity: 0.7;
  text-decoration: none;
  color: var(--accent-blue-light);
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}

a.citation-count-badge {
  cursor: pointer;
}

a.citation-count-badge:hover {
  opacity: 1;
  border-color: rgba(79, 142, 247, 0.65);
  background: rgba(79, 142, 247, 0.12);
}

.citation-count-number {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.citation-count-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.article-citations {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.article-citations-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-blue-light);
  margin-bottom: 0.75rem;
}

.article-citations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  counter-reset: citations;
}

.article-citation-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  counter-increment: citations;
}

.article-citation-item::before {
  content: counter(citations) ".";
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  flex-shrink: 0;
  min-width: 1.2em;
}

.citation-text {
  flex: 1;
}

.citation-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.citation-link,
.citation-copy {
  color: var(--accent-blue-light);
  opacity: 0.75;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.citation-copy {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.citation-link:hover,
.citation-copy:hover {
  opacity: 1;
}

.citation-copy-feedback {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.2rem);
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-blue-light);
  white-space: nowrap;
  pointer-events: none;
}

.citation-copy-icon-done {
  display: none;
}

.citation-copy.is-copied .citation-copy-icon {
  display: none;
}

.citation-copy.is-copied .citation-copy-icon-done {
  display: flex;
}

.citation-copy.is-copied {
  opacity: 1;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.article-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-sections {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
}

.article-sections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.article-section-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.section-key {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-blue-light);
  margin-bottom: 0.25rem;
}

.section-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sub-product-sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-section {
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-title a:hover {
  color: var(--accent-blue-light);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--accent-blue-light);
  background: rgba(79, 142, 247, 0.07);
}

.sidebar-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
  opacity: 0.5;
}

.sidebar-back-btn {
  justify-content: center;
}

.sidebar-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   Products Overview
   ============================================================ */
.products-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-overview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2.5rem;
}

.product-overview-body {
  grid-column: 1;
}

.product-overview-image {
  grid-column: 2;
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: start;
}

.product-overview-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-overview-short {
  font-size: 1rem;
  color: var(--accent-blue-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-overview-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.product-overview-subs {
  grid-column: 1 / -1;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.product-overview-subs-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.product-overview-subs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sub-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-fast);
}

.sub-link-chip:hover {
  color: var(--accent-blue-light);
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.3);
}

/* ============================================================
   About Page
   ============================================================ */
.about-intro {
  padding: 2.5rem;
}

.about-custom-card {
  padding: 2.5rem;
}

.about-intro h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.standard-card {
  padding: 1.75rem;
}

.standard-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.standard-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.standard-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.history-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 3rem;
  overflow: hidden;
}

.history-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.history-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

.history-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: blob-morph 10s ease-in-out infinite;
}

.history-blob--1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.3) 0%, transparent 70%);
}

.history-blob--2 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  animation-delay: 4s;
}

.history-year {
  position: relative;
  z-index: 2;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Downloads Page
   ============================================================ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.download-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.download-card--unavailable {
  opacity: 0.65;
}

.download-platform-icon {
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.download-platform-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.download-platform-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

.download-version {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.download-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.coming-soon-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}

.release-block {
  margin-bottom: 3.5rem;
}

.release-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.release-product-parent {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.release-product-name {
  font-size: 1.35rem;
  font-weight: 700;
}

.release-channel {
  margin-bottom: 1.25rem;
}

.release-channel--previous {
  opacity: 0.82;
}

.release-channel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.release-channel-label--stable {
  color: rgb(134, 239, 172);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.release-channel-label--previous {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.download-card--previous {
  opacity: 0.78;
}

.download-btn--prev {
  opacity: 0.9;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
}

/* ============================================================
   Rich Content (rendered Markdown / HTML / plain descriptions)
   ============================================================ */
.rich-content p {
  margin-bottom: 0.85em;
  line-height: 1.75;
}

.rich-content p:last-child { margin-bottom: 0; }

.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5 {
  font-weight: 700;
  margin: 1.25em 0 0.5em;
  line-height: 1.25;
}

.rich-content h1 { font-size: 1.5rem; }
.rich-content h2 { font-size: 1.25rem; }
.rich-content h3 { font-size: 1.05rem; }

.rich-content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 0.85em;
}

.rich-content ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 0.85em;
}

.rich-content ul ul { list-style-type: circle; }
.rich-content ul ul ul { list-style-type: square; }

.rich-content li { margin-bottom: 0.3em; line-height: 1.65; }

.rich-content a {
  color: var(--accent-blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content a:hover { color: var(--accent-cyan); }

.rich-content code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88em;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.15);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.rich-content pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1em;
}

.rich-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
}

.rich-content blockquote {
  border-left: 3px solid rgba(79, 142, 247, 0.45);
  padding-left: 1rem;
  color: var(--text-secondary);
  margin: 1em 0;
  font-style: italic;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 0.9rem;
}

.rich-content th, .rich-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--glass-border);
  text-align: left;
}

.rich-content th {
  background: rgba(79, 142, 247, 0.08);
  font-weight: 600;
}

/* ============================================================
   Sub-Product Inline Downloads
   ============================================================ */
.sub-downloads {
  margin-top: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.sub-downloads-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.sub-downloads-channel {
  margin-bottom: 1.1rem;
}

.sub-downloads-channel--prev {
  opacity: 0.78;
}

.sub-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 0.6rem;
  align-items: stretch;
}

.sub-dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.sub-dl-item--na {
  opacity: 0.5;
}

.sub-dl-icon-wrap {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-dl-icon-wrap .sub-dl-icon,
.sub-dl-icon-wrap .sub-dl-source-svg {
  display: block;
}

.sub-dl-item .btn-primary.btn--sm {
  margin-top: auto;
}

.sub-dl-source-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #8892a6);
}

.sub-dl-icon {
  width: 32px;
  height: 32px;
}

.sub-dl-source-svg {
  color: var(--text-secondary, #aab4c5);
}

.sub-dl-platform {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pkg-version-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pkg-version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.pkg-version-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pkg-version-row:first-child {
  padding-top: 0.5rem;
}

.pkg-version-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pkg-stable-inline {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}

.pkg-version-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.pkg-version-notes {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sub-downloads--package .sub-package-stable {
  margin-top: 0.6rem;
}

.sub-package-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.sub-release-notes {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.sub-install-extra-resource {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.sub-install-extra-resource a {
  font-weight: 600;
}

.sub-older-versions-inner {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.link-arrow {
  font-weight: 600;
  color: var(--accent-strong, var(--accent, #6b9dff));
}

.versions-archive-section {
  padding-top: 0;
}

.versions-empty {
  padding: 2rem 1.5rem;
}

.versions-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.versions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.versions-table th,
.versions-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.versions-table thead th {
  background: rgba(79, 142, 247, 0.06);
  font-weight: 600;
}

.versions-table-link {
  display: inline-flex;
  align-items: center;
}

.versions-table-icon {
  display: block;
}

.versions-table-text-link {
  font-weight: 600;
}

.versions-notes-row td {
  background: rgba(0, 0, 0, 0.06);
}

.versions-notes-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #8892a6);
  display: block;
  margin-bottom: 0.35rem;
}

.versions-notes-body {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.versions-package-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.versions-package-card {
  padding: 1.15rem 1.35rem;
}

.versions-package-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.versions-na {
  opacity: 0.45;
}

.info-block {
  padding: 2.5rem;
}

.info-block h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.info-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FAQ Page
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-blue-light);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.75rem 1.4rem;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
}

.faq-contact h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.faq-contact p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-form-wrap {
  padding: 2.5rem;
}

.contact-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.required-star {
  color: var(--accent-blue-light);
}

.optional-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted, var(--text-secondary));
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(79, 142, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-field-error {
  display: block;
  font-size: 0.78rem;
  color: rgb(252, 165, 165);
  margin-top: 0.3rem;
  min-height: 1em;
}

.form-group--captcha {
  background: rgba(79, 142, 247, 0.04);
  border: 1px solid rgba(79, 142, 247, 0.15);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.captcha-input {
  max-width: 130px !important;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-spinner svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn--sm {
  padding: 0.45rem 1.1rem !important;
  font-size: 0.85rem !important;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-icon {
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-email-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue-light);
  word-break: break-all;
}

.contact-address {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  max-width: 460px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  animation: modal-pop 0.22s ease-out both;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-blue-light);
}

.modal-icon-wrap--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: rgb(134, 239, 172);
}

.modal-icon-wrap--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: rgb(252, 165, 165);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-body {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  overflow: hidden;
  margin-top: var(--spacing-2xl);
}

.footer-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob-morph 16s ease-in-out infinite;
}

.footer-blob--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}

.footer-blob--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.07) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: 6s;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-address {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.footer-email {
  font-size: 0.87rem;
  color: var(--accent-blue-light);
  font-weight: 500;
  word-break: break-all;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy, .footer-credit {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-credit a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--text-secondary);
}

/* ============================================================
   Empty States
   ============================================================ */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: var(--spacing-xl) 0;
}

.empty-state-block {
  padding: 3rem;
  text-align: center;
}

.empty-state-block p {
  color: var(--text-muted);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .product-detail-intro {
    grid-template-columns: 1fr;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
  }

  .about-strip-blobs {
    display: none;
  }

  .history-block {
    grid-template-columns: 1fr;
  }

  .history-visual {
    display: none;
  }

  .product-overview-card {
    grid-template-columns: 1fr;
  }

  .product-overview-image {
    width: 100%;
    max-width: 400px;
    grid-column: 1;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --spacing-2xl: 4.5rem;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(7, 7, 19, 0.97);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1rem var(--container-padding) 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .navbar-menu.open {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .megamenu {
    position: static;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .megamenu-inner {
    padding: 1rem;
  }

  .megamenu-products-scroll {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .megamenu-products {
    flex-direction: column;
    gap: 0.75rem;
  }

  .megamenu-product-item {
    flex: 1 1 auto;
    max-width: none;
  }

  .megamenu-product-item.has-subproducts .megamenu-sublist {
    max-height: none;
    opacity: 1;
    border-top-color: var(--glass-border);
  }

  .nav-item.has-megamenu:hover .megamenu {
    transform: none;
  }

  .sub-product-grid {
    grid-template-columns: 1fr;
  }

  .sub-product-sidebar {
    order: -1;
  }

  .sidebar-sticky {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .about-strip-inner {
    padding: 2rem;
  }

  .product-overview-card {
    padding: 1.75rem;
  }

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

/* ============================================================
   Hero App Preview (Screenshot)
   ============================================================ */
.hero-app-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(79, 142, 247, 0.22),
    0 0 0 1px rgba(79, 142, 247, 0.12);
  animation: hero-preview-in 1.1s ease-out 0.6s both;
  align-self: center;
  transform: perspective(1400px) rotateY(-14deg) rotateX(3deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.7s ease;
}

.hero-app-preview:hover {
  transform: perspective(1400px) rotateY(-5deg) rotateX(1deg);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(79, 142, 247, 0.32),
    0 0 0 1px rgba(79, 142, 247, 0.2);
}

@keyframes hero-preview-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-20deg) rotateX(4deg) translateX(50px);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-14deg) rotateX(3deg) translateX(0);
  }
}

.hero-app-preview-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7, 7, 19, 0.88) 0%,
    rgba(7, 7, 19, 0.45) 48%,
    transparent 62%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-app-preview img {
  width: 100%;
  display: block;
  opacity: 0.65;
  border-radius: var(--radius-xl);
  transition: opacity 0.5s ease;
}

.hero-app-preview:hover img {
  opacity: 1;
}

/* ============================================================
   Screenshots Gallery
   ============================================================ */
.screenshots-section {
  position: relative;
  overflow: hidden;
}

.screenshots-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(79, 142, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
  background: var(--bg-secondary);
  cursor: zoom-in;
}

.screenshot-item img {
  width: 100%;
  display: block;
  opacity: 0.82;
  transition: opacity 0.35s ease, transform 0.45s ease;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.screenshot-item:hover {
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(79, 142, 247, 0.12);
  transform: translateY(-3px);
}

.screenshot-item:hover img {
  opacity: 1;
  transform: scale(1.03);
}

/* About page screenshots */
.about-screenshots-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.about-screenshots-grid .screenshot-item img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ============================================================
   Platform Icons (Downloads)
   ============================================================ */
.platform-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.download-card:hover .platform-icon {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(79, 142, 247, 0.6));
}

.download-card--unavailable .platform-icon {
  opacity: 0.35;
  filter: brightness(0) invert(1);
}

.btn-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* ============================================================
   Product Logo Image (fallback on product detail)
   ============================================================ */
.product-logo-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 4px 20px rgba(79, 142, 247, 0.3));
  padding: 1.5rem;
}

/* ============================================================
   Responsive — Images
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-app-preview {
    display: none;
  }

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

  .about-screenshots-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-screenshots-grid .screenshot-item--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .blob-img--hero-left,
  .blob-img--hero-right,
  .blob-img--page-hero,
  .blob-img--page-corner,
  .blob-img--downloads {
    opacity: 0.08;
  }

  .about-screenshots-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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

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

  .modal-box {
    padding: 1.75rem 1.25rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* ============================================================
   Read More / Content Truncation
   ============================================================ */
.readmore-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.readmore-wrap.is-clamped {
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 92%);
}

.readmore-wrap:not(.is-clamped) {
  -webkit-mask-image: none;
  mask-image: none;
}

.readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  margin-top: 0.5rem;
  line-height: 1;
  transition: color 0.18s ease;
}

.readmore-btn:hover {
  color: var(--accent-cyan);
}

.readmore-btn svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.readmore-btn.is-open svg {
  transform: rotate(180deg);
}
