/* ============================================================
   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.4) 0%, rgba(79, 142, 247, 0.1) 70%);
  top: -120px; left: -120px;
  animation-delay: 0s, 0s;
}

.blob--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(167, 139, 250, 0.08) 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.25) 0%, rgba(34, 211, 238, 0.06) 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: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.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.22s 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.22s ease, visibility 0.22s ease, transform 0.22s 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: 2rem var(--container-padding);
}

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

.megamenu-column {
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.megamenu-column:hover {
  background: var(--glass-bg);
}

.megamenu-product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.megamenu-product-title:hover {
  color: var(--accent-blue-light);
}

.megamenu-product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.megamenu-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.megamenu-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

.megamenu-sublink:hover .sublink-dot {
  opacity: 1;
  box-shadow: 0 0 6px var(--accent-blue);
}

/* ============================================================
   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);
}

/* ============================================================
   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;
  max-width: 780px;
  padding-top: var(--spacing-2xl);
}

.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(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  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;
}

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

/* ============================================================
   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;
}

/* ============================================================
   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 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.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-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 2.25rem;
  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;
}

/* ============================================================
   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-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .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(2.2rem, 8vw, 3rem);
  }

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

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

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