/* ============================================================
   CSS Custom Properties — Tecvico Theme
   ============================================================ */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-surface: #ffffff;

  --glass-bg: #ffffff;
  --glass-bg-hover: #f9fafb;
  --glass-bg-strong: #eaedff;
  --glass-border: #f3f4f6;
  --glass-border-hover: #3051ff;
  --glass-blur: none;
  --glass-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --glass-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --accent-blue: #3051ff;
  --accent-blue-light: #3051ff;
  --accent-blue-dark: #0933df;
  --accent-cyan: #3051ff;
  --accent-purple: #cc9428;
  --accent-gold: #cc9428;
  --accent-glow-blue: rgba(48, 81, 255, 0.12);
  --accent-glow-purple: rgba(204, 148, 40, 0.12);

  --gradient-brand: #3051ff;
  --gradient-hero-bg: transparent;
  --gradient-text: #3051ff;

  --text-primary: #1d2433;
  --text-secondary: rgba(29, 36, 51, 0.72);
  --text-muted: #9ca3af;
  --text-link: #3051ff;

  /* Semantic UI colors */
  --color-success: #087a53;
  --color-success-soft: #e9f8f2;
  --color-warning: #9a6b0b;
  --color-warning-soft: #fff6df;
  --color-danger: #b42318;
  --color-danger-soft: #fff0ee;
  --color-info: #3051ff;
  --color-info-soft: #eef1ff;
  --border-default: #e3e7ee;
  --border-strong: #cbd2dd;
  --focus-ring: 0 0 0 3px rgba(48, 81, 255, 0.16);

  --footer-bg: #1f2937;
  --footer-bottom-bg: #000000;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 10px 28px rgba(17, 24, 39, 0.10);

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

  --navbar-height: 72px;
  --navbar-expand-duration: 0.85s;
  --navbar-link-duration: 0.28s;
  --navbar-expand-ease: cubic-bezier(0.4, 0, 0.1, .9);
  --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: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Ubuntu', 'Open Sans', 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: none;
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.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-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  color: var(--accent-blue);
}

/* ============================================================
   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-gold);
  background: rgba(204, 148, 40, 0.1);
  border: 1px solid rgba(204, 148, 40, 0.22);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--spacing-sm);
}

/* ============================================================
   Glass Card Component
   ============================================================ */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

a.glass-card:hover,
.section-item-link:hover,
.product-overview-card:has(.btn-primary):hover {
  border-color: rgba(48, 81, 255, 0.24);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(48, 81, 255, 0.18);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-blue-dark);
  border-color: var(--accent-blue-dark);
  box-shadow: 0 7px 16px rgba(48, 81, 255, 0.22);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--accent-blue);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  background: var(--color-info-soft);
  border-color: var(--accent-blue);
  color: var(--accent-blue-dark);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.btn-sm,
.btn--sm {
  min-height: 36px;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.78rem !important;
}

/* ============================================================
   Animated Blob Shapes
   ============================================================ */
.blob {
  display: none;
}

.blob--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(48, 81, 255, 0.18) 0%, rgba(48, 81, 255, 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: #ffffff;
  border-bottom: 2px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.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: auto;
  height: 40px;
  max-width: 184px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-logo .brand-icon {
  height: 48px;
  max-width: 184px;
}

.brand-name {
  display: none;
}

.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: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--navbar-link-duration) var(--navbar-expand-ease),
    background var(--navbar-link-duration) var(--navbar-expand-ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-blue);
  background: transparent;
}

.nav-link--cta {
  color: #fff !important;
  background: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible,
.nav-link--cta.active {
  color: #fff !important;
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: none;
}

.navbar-account {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: .35rem;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.navbar-account::-webkit-details-marker { display: none; }
.navbar-account-menu { position: relative; }
.navbar-account-menu > summary::marker { content: ''; }

.navbar-account:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--focus-ring);
}

.navbar-account__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-blue), #1736b8);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.navbar-account__avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar-account__status { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--color-success); }

.navbar-account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 2rem));
  padding: .65rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 1100;
}

.navbar-account-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.navbar-account-menu[open] .navbar-account-dropdown,
.navbar-account-menu:focus-within .navbar-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 769px) {
  .navbar-account-menu:hover .navbar-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.navbar-account-dropdown__identity { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: .75rem; align-items: center; padding: .65rem .7rem .85rem; }
.navbar-account-dropdown__identity img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.navbar-account-dropdown__identity div { min-width: 0; display: grid; }
.navbar-account-dropdown__identity strong { overflow: hidden; color: var(--text-primary); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.navbar-account-dropdown__identity span { overflow: hidden; color: var(--text-muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.navbar-account-dropdown__section { display: grid; gap: .15rem; padding: .5rem 0; border-top: 1px solid var(--border-default); }
.navbar-account-dropdown__section a { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: .55rem; align-items: center; min-height: 48px; padding: .5rem .7rem; border-radius: var(--radius-sm); color: #445066; }
.navbar-account-dropdown__section a:hover { background: var(--color-info-soft); color: var(--accent-blue); }
.navbar-account-dropdown__section a > span:first-child { display: grid; place-items: center; width: 28px; font: 700 1rem Arial,sans-serif; }
.navbar-account-dropdown__section a > span:last-child { min-width: 0; display: grid; }
.navbar-account-dropdown__section a strong { color: inherit; font-size: .75rem; }
.navbar-account-dropdown__section a small { margin-top: .08rem; color: var(--text-muted); font-size: .62rem; }
.navbar-account-dropdown__section--compact a { display: flex; min-height: 36px; padding: .45rem .7rem; font-size: .72rem; font-weight: 600; }
.navbar-account-dropdown__section--compact form { margin: 0; }
.navbar-account-dropdown__section--compact button { width: 100%; min-height: 36px; padding: .45rem .7rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-danger); font: 600 .72rem var(--font-sans); text-align: left; cursor: pointer; }
.navbar-account-dropdown__section--compact button:hover { background: var(--color-danger-soft); }

.nav-logout-form {
  margin: 0;
}

.nav-link-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-link-button:hover,
.nav-link-button:focus-visible {
  color: var(--accent-blue);
  background: transparent;
}

.nav-arrow {
  transition: transform var(--navbar-expand-duration) var(--navbar-expand-ease);
}

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

.megamenu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--navbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--navbar-expand-duration) var(--navbar-expand-ease),
    visibility var(--navbar-expand-duration) var(--navbar-expand-ease),
    transform var(--navbar-expand-duration) var(--navbar-expand-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.is-closing {
  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(48, 81, 255, 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(48, 81, 255, 0.35);
  border-radius: 999px;
}

.megamenu-products-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(48, 81, 255, 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(48, 81, 255, 0.35);
  background: rgba(48, 81, 255, 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 var(--navbar-expand-duration) var(--navbar-expand-ease),
    color var(--navbar-expand-duration) var(--navbar-expand-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 var(--navbar-expand-duration) var(--navbar-expand-ease),
    opacity var(--navbar-expand-duration) var(--navbar-expand-ease),
    border-color var(--navbar-expand-duration) var(--navbar-expand-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(48, 81, 255, 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: auto;
  bottom: 0;
  left: -80px;
  opacity: 0.4;
  filter: none;
  animation: none;
}

.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: auto;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + 2.5rem);
  overflow: hidden;
  padding-bottom: var(--spacing-xl);
  background: #ffffff;
}

.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-lg);
  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-gold);
  background: rgba(204, 148, 40, 0.1);
  border: 1px solid rgba(204, 148, 40, 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-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  animation: fade-slide-up 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--accent-blue);
  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;
  background: #ffffff;
}

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

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Projects Showcase
   ============================================================ */
.projects-showcase-section {
  background: var(--bg-secondary);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.projects-filter-btn {
  border: 1px solid var(--glass-border);
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.projects-filter-btn:hover,
.projects-filter-btn.is-active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

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

.projects-showcase-grid .project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.projects-showcase-grid .project-card.is-hidden {
  display: none;
}

.projects-showcase-grid .project-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  padding: 0.5rem 0.5rem 0;
}

.projects-showcase-grid .project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.5s ease;
}

.projects-showcase-grid .project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.projects-showcase-grid .project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.projects-showcase-grid .project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.projects-showcase-grid .project-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-card-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(48, 81, 255, 0.08);
  border: 1px solid rgba(48, 81, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-card-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.project-card-links a {
  font-size: 0.8rem;
  color: var(--accent-blue);
  word-break: break-all;
}

.project-card-attachments {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================================
   Experience / Benefits
   ============================================================ */
.experience-section {
  background: #ffffff;
}

.experience-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

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

.experience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.experience-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.experience-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-card-icon--text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.experience-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.experience-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

/* ============================================================
   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;
  line-height: 1;
}

.feature-icon--inline {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

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

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

a.section-item-link:hover {
  border-color: rgba(48, 81, 255, 0.35);
}

a.supporter-card.section-item-link {
  display: flex;
}

a.screenshot-item.section-item-link {
  display: block;
}

a.faq-item--link.section-item-link {
  display: block;
  padding: 1.25rem 1.5rem;
}

a.faq-item--link .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

a.faq-item--link .faq-link-preview {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.product-card-image {
  padding: 0.5rem 0.5rem 0;
  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(48, 81, 255, 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(48, 81, 255, 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(48, 81, 255, 0.4);
  background: rgba(48, 81, 255, 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(48, 81, 255, 0.65);
  background: rgba(48, 81, 255, 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(48, 81, 255, 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(48, 81, 255, 0.1);
  border-color: rgba(48, 81, 255, 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;
}

.history-link-icon {
  margin-right: 0.35rem;
}

.history-visual-image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.about-hero-gallery {
  margin-top: 2.5rem;
}

.about-section-screenshots {
  margin-top: 1.5rem;
}

.about-hero-gallery:not(:has(.screenshot-item)) {
  display: none;
}

.about-section-screenshots:not(:has(.screenshot-item)) {
  display: none;
}

.standards-grid:not(:has(.standard-card)) {
  display: none;
}

.history-visual:has(.history-visual-image) .history-year {
  display: none;
}

.standard-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(204, 148, 40, 0.1);
  border: 1px solid rgba(204, 148, 40, 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(48, 81, 255, 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-blue);
  background: rgba(48, 81, 255, 0.08);
  border: 1px solid rgba(48, 81, 255, 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-blue);
  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--beta {
  color: rgb(253, 186, 116);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.release-channel-label--rc {
  color: rgb(196, 181, 253);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.release-channel-label--preview {
  color: rgb(147, 197, 253);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.release-channel-label--nightly {
  color: rgb(252, 165, 165);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.release-channel-label--current {
  color: var(--accent-blue);
  background: rgba(48, 81, 255, 0.08);
  border: 1px solid rgba(48, 81, 255, 0.2);
}

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

.release-channel-label--custom {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  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(48, 81, 255, 0.1);
  border: 1px solid rgba(48, 81, 255, 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(48, 81, 255, 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(48, 81, 255, 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-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

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

.sub-downloads-corner-link {
  flex-shrink: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

.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-version-meta .release-channel-label {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0;
}

.versions-table-version {
  display: inline-block;
  margin-right: 0.45rem;
}

.versions-table th[scope="row"] .release-channel-label {
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0;
  vertical-align: middle;
}

.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(48, 81, 255, 0.06);
  font-weight: 600;
}

.versions-table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.versions-table-link:hover {
  background: rgba(48, 81, 255, 0.1);
}

.versions-table-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.82;
  transition: var(--transition-smooth);
}

.versions-table-link:hover .versions-table-icon {
  opacity: 1;
}

.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-hint {
  font-size: 0.78rem;
  color: var(--text-muted, var(--text-secondary));
  margin-top: 0.35rem;
  line-height: 1.4;
}

.form-file-list {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-group input[type="file"] {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(48, 81, 255, 0.12);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  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,
.form-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: var(--focus-ring);
  background: #ffffff;
}

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

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select,
.form-group:has(.errorlist) input,
.form-group:has(.errorlist) textarea,
.form-group:has(.errorlist) select,
.form-group.has-error input[type="file"] {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9099a8; opacity: 1; }

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  cursor: not-allowed;
  background: #f2f4f7;
  color: #7d8796;
}

.errorlist {
  margin-top: .35rem;
  color: var(--color-danger);
  font-size: .76rem;
  font-weight: 600;
}

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

.form-group--captcha {
  background: rgba(48, 81, 255, 0.04);
  border: 1px solid rgba(48, 81, 255, 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); }
}

.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(48, 81, 255, 0.12);
  border: 1px solid rgba(48, 81, 255, 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;
  margin-top: var(--spacing-2xl);
  color: #ffffff;
}

.footer-main {
  background: var(--footer-bg);
  background-image: url('../images/tecvico/footer-bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.footer-main-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3.5rem var(--container-padding);
}

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

.footer-logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-social-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-list a {
  display: block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-list a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social-list img {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-bottom {
  background: var(--footer-bottom-bg);
  padding: 1.75rem var(--container-padding);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-main-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer-social {
    align-items: flex-start;
    padding-right: 4rem;
  }
}

/* ============================================================
   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: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem var(--container-padding) 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--navbar-expand-duration) var(--navbar-expand-ease),
      padding var(--navbar-expand-duration) var(--navbar-expand-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;
  }

  .nav-item--account { padding-top: .5rem; border-top: 1px solid var(--border-default); }
  .navbar-account { margin: 0; }
  .navbar-account-dropdown { position: static; width: 100%; margin-top: .5rem; box-shadow: none; transform: none; }
  .navbar-account-menu:not([open]) .navbar-account-dropdown { display: none; }

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

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

  .megamenu {
    position: static;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-item.has-megamenu:hover .megamenu {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
    transform: none;
  }

  .nav-item.has-megamenu.open .megamenu {
    max-height: 2000px;
    overflow: visible;
    margin-top: 0.25rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: 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:hover .megamenu-sub-chevron,
  .megamenu-product-item.has-subproducts:focus-within .megamenu-sub-chevron {
    transform: none;
    color: var(--text-muted);
  }

  .megamenu-product-item.has-subproducts:hover .megamenu-sublist,
  .megamenu-product-item.has-subproducts:focus-within .megamenu-sublist {
    max-height: 0;
    opacity: 0;
    border-top-color: transparent;
  }

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

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

  .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-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: hero-preview-in 1.1s ease-out 0.6s both;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

@keyframes hero-preview-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   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(48, 81, 255, 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(48, 81, 255, 0.3);
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(48, 81, 255, 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;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.download-card:hover .platform-icon {
  opacity: 1;
}

.download-card--unavailable .platform-icon {
  opacity: 0.35;
}

.btn-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  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(48, 81, 255, 0.3));
  padding: 1.5rem;
}

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

  .hero-visual {
    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-blue);
}

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

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

/* ============================================================
   Video Blocks
   ============================================================ */
.video-block {
  width: 100%;
  max-width: var(--video-max-width, 100%);
  margin-inline: auto;
}

.video-block--sm {
  --video-max-width: 480px;
}

.video-block--md {
  --video-max-width: 720px;
}

.video-block--lg {
  --video-max-width: 960px;
}

.video-block--full {
  --video-max-width: 100%;
}

.video-block-inner {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 24, 0.55);
}

.video-block--ratio-16-9 {
  --video-aspect-ratio: 16 / 9;
}

.video-block--ratio-4-3 {
  --video-aspect-ratio: 4 / 3;
}

.video-block--ratio-1-1 {
  --video-aspect-ratio: 1 / 1;
}

.video-block-inner iframe,
.video-block-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-section .section-desc {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.product-videos-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-video-header {
  margin-bottom: 0.75rem;
}

.video-panel--styled {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.5rem;
  backdrop-filter: blur(12px);
}

.video-panel-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-panel-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
}

.video-panel-blob--1 {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -50px;
  background: radial-gradient(circle, rgba(48, 81, 255, 0.42) 0%, transparent 72%);
  opacity: 0.85;
}

.video-panel-blob--2 {
  width: 200px;
  height: 200px;
  bottom: -70px;
  left: -40px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 72%);
  opacity: 0.9;
}

.video-panel-blob--3 {
  width: 140px;
  height: 140px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  opacity: 0.75;
}

.video-panel-inner {
  position: relative;
  z-index: 1;
}

.video-panel-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 0.35rem;
}

.video-panel-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-panel-heading .section-badge {
  margin-bottom: 0.65rem;
}

.video-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--text-primary);
}

.video-panel-title svg {
  flex-shrink: 0;
  color: var(--accent-blue-light);
}

.video-panel-desc {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.video-panel--styled .video-block-inner {
  border: 1px solid rgba(48, 81, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(8, 12, 24, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-videos-list .product-video-item .section-desc,
.product-videos-list .product-video-item .rich-content.section-desc {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.product-videos-list .video-panel--styled + .video-panel--styled,
.product-videos-list .product-video-item + .product-video-item {
  margin-top: 0;
}

.product-videos-list .video-panel--styled,
.product-videos-list .product-video-item {
  margin-top: 0;
}

.video-preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.video-preview-heading .section-badge { margin-bottom: .55rem; }
.video-preview-heading h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.video-preview-heading > span { color: var(--text-muted); font-size: .76rem; font-weight: 700; }
.video-preview-more { display: flex; justify-content: center; margin-top: 1.75rem; }

.video-library-hero .page-hero-content { max-width: none; }
.video-library-section { background: var(--bg-secondary); }
.video-library-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; color: var(--text-secondary); font-size: .8rem; }
.video-library-summary strong { color: var(--text-primary); font-size: 1rem; }
.video-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.video-library-card { min-width: 0; padding: 1.2rem; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.video-library-card .video-panel--styled { height: 100%; padding: 1.25rem; }
.video-library-card .video-panel-title, .video-library-card .section-title { font-size: 1.05rem; }
.video-library-card .section-header { margin-bottom: 1rem; text-align: left; }
.video-library-card .section-desc { margin-bottom: 1rem; font-size: .78rem; }
.video-library-empty { grid-column: 1 / -1; }

.video-pagination { display: grid; grid-template-columns: minmax(110px,1fr) auto minmax(110px,1fr); align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--border-default); }
.video-pagination__pages { display: flex; align-items: center; gap: .35rem; }
.video-pagination__page, .video-pagination__ellipsis { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .4rem; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: #fff; color: #4c586c; font-size: .76rem; font-weight: 700; }
.video-pagination__page:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.video-pagination__page.is-current { border-color: var(--accent-blue); background: var(--accent-blue); color: #fff; }
.video-pagination__ellipsis { border-color: transparent; background: transparent; }
.video-pagination__direction { color: var(--accent-blue); font-size: .78rem; font-weight: 700; }
.video-pagination__direction:last-child { justify-self: end; }
.video-pagination__direction.is-disabled { color: var(--text-muted); pointer-events: none; }

@media (max-width: 768px) {
  .video-library-grid { grid-template-columns: 1fr; }
  .video-pagination { grid-template-columns: 1fr 1fr; }
  .video-pagination__pages { grid-column: 1 / -1; grid-row: 1; justify-content: center; flex-wrap: wrap; }
  .video-pagination__direction { grid-row: 2; }
  .video-preview-heading { align-items: flex-start; }
}

@media (max-width: 640px) {
  .video-panel--styled {
    padding: 1.25rem 1rem 1rem;
  }

  .video-panel-blob--1 {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -70px;
  }

  .video-panel-blob--2 {
    width: 150px;
    height: 150px;
  }
}

.container--narrow {
  max-width: 720px;
}

.portal-card {
  padding: 2rem;
}

.portal-footer-text,
.portal-intro {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.portal-footer-text a,
.portal-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

.portal-footer-text a:hover,
.portal-link:hover {
  text-decoration: underline;
}

.form-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.flash-messages {
  position: sticky;
  top: 72px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.flash-message {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.flash-message--success,
.flash-message--info {
  background: var(--color-success-soft);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.flash-message--error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.page-hero-content--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.portal-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-pill--submitted { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.status-pill--under_review { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.status-pill--quoted { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.status-pill--accepted { background: rgba(16, 185, 129, 0.15); color: #047857; }
.status-pill--declined { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.status-pill--in_progress { background: rgba(6, 182, 212, 0.15); color: #0e7490; }
.status-pill--delivered { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.status-pill--closed { background: rgba(107, 114, 128, 0.15); color: #374151; }

.portal-empty {
  text-align: center;
}

.portal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.portal-section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.portal-subtitle {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.portal-body-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.portal-meta-list {
  display: grid;
  gap: 0.75rem;
}

.portal-meta-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.portal-meta-list dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.portal-attachment-list ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* ============================================================
   Authenticated client workspace
   ============================================================ */
.portal-body {
  --dashboard-ink: #172033;
  --dashboard-muted: #647087;
  --dashboard-line: #e5e9f1;
  --dashboard-canvas: #f5f7fb;
  background: var(--dashboard-canvas);
}

.portal-body #main-content { min-height: calc(100vh - var(--navbar-height)); }

.dashboard-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - var(--navbar-height));
  max-width: 1600px;
  margin: 0 auto;
  background: var(--dashboard-canvas);
}

.dashboard-sidebar {
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.15rem 1.25rem;
  background: #fff;
  border-right: 1px solid var(--dashboard-line);
  z-index: 5;
}

.dashboard-sidebar__profile { display: flex; align-items: center; gap: .8rem; padding: 0 .55rem 1.6rem; }
.dashboard-avatar,
.profile-context-card__avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  color: #fff; background: linear-gradient(145deg, var(--accent-blue), #1736b8);
  font-weight: 700; box-shadow: 0 7px 18px rgba(48,81,255,.2);
}
.dashboard-avatar img,
.profile-context-card__avatar img,
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-avatar img { border-radius: inherit; }
.dashboard-sidebar__identity { min-width: 0; display: grid; }
.dashboard-sidebar__identity strong { color: var(--dashboard-ink); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-sidebar__identity span { color: var(--dashboard-muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-nav { display: grid; gap: .28rem; }
.dashboard-nav__label { margin: .3rem .75rem .55rem; color: #9aa3b3; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-nav__label--secondary { margin-top: 1.35rem; }
.dashboard-nav__link { display: flex; align-items: center; gap: .78rem; min-height: 44px; padding: .65rem .75rem; border-radius: 9px; color: #505d73; font-size: .86rem; font-weight: 500; }
.dashboard-nav__link:hover { color: var(--accent-blue); background: #f4f6ff; }
.dashboard-nav__link.is-active { color: var(--accent-blue); background: #eef1ff; font-weight: 700; box-shadow: inset 3px 0 0 var(--accent-blue); }
.dashboard-nav__icon { display: grid; place-items: center; width: 24px; height: 24px; color: currentColor; font-family: Arial, sans-serif; font-size: 1.05rem; font-weight: 700; }
.dashboard-sidebar__footer { margin-top: auto; padding: 1rem .5rem 0; border-top: 1px solid var(--dashboard-line); }
.dashboard-security-note { display: flex; gap: .6rem; margin-bottom: .8rem; color: var(--dashboard-muted); font-size: .68rem; line-height: 1.45; }
.dashboard-security-note strong { display: block; color: #3d485b; font-size: .72rem; }
.dashboard-security-note__mark { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.1); }
.dashboard-signout { width: 100%; padding: .6rem; border: 0; background: transparent; color: #7b8494; font: 600 .76rem var(--font-sans); text-align: left; cursor: pointer; }
.dashboard-signout:hover { color: #b42318; }

.dashboard-main { min-width: 0; padding: 2.4rem clamp(1.25rem, 3.5vw, 3.5rem) 4rem; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: 1180px; margin: 0 auto 2rem; }
.dashboard-header > div:first-child { max-width: 720px; }
.dashboard-eyebrow { margin-bottom: .45rem; color: var(--accent-gold) !important; font-size: .7rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-header h1 { color: var(--dashboard-ink); font: 700 clamp(1.75rem, 3vw, 2.35rem)/1.15 var(--font-heading); letter-spacing: -.035em; }
.dashboard-header p { margin-top: .55rem; color: var(--dashboard-muted); font-size: .92rem; }
.dashboard-header__meta { margin-left: .45rem; }
.dashboard-header__actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.dashboard-content { max-width: 1180px; margin: 0 auto; }
.dashboard-content .btn-primary, .dashboard-header .btn-primary { box-shadow: 0 7px 16px rgba(48,81,255,.17); }

.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.metric-card { display: grid; min-height: 154px; padding: 1.2rem 1.25rem; background: #fff; border: 1px solid var(--dashboard-line); border-radius: 13px; box-shadow: 0 2px 8px rgba(22,32,51,.035); }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.metric-card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eef1ff; color: var(--accent-blue); font: 700 .75rem var(--font-heading); }
.metric-card__icon--gold { color: #9a6b0b; background: #fff6df; }
.metric-card__icon--green { color: #087a53; background: #e9f8f2; }
.metric-card__trend { color: #8b94a5; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metric-card > strong { color: var(--dashboard-ink); font: 700 1.55rem/1.15 var(--font-heading); letter-spacing: -.025em; }
.metric-card > span { align-self: end; color: var(--dashboard-muted); font-size: .76rem; }

.dashboard-panel { background: #fff; border: 1px solid var(--dashboard-line); border-radius: 13px; box-shadow: 0 2px 9px rgba(22,32,51,.035); overflow: hidden; }
.dashboard-panel__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--dashboard-line); }
.dashboard-panel__header h2 { font-size: 1rem; letter-spacing: -.015em; }
.dashboard-panel__header p { margin-top: .25rem; color: var(--dashboard-muted); font-size: .76rem; }
.dashboard-panel__count { padding: .25rem .6rem; border-radius: 99px; background: #f1f3f7; color: #687386; font-size: .68rem; font-weight: 700; }
.portal-table th, .portal-table td { border-color: var(--dashboard-line); }
.portal-table th { padding: .78rem 1.15rem; background: #fafbfc; color: #7e8797; font-size: .65rem; letter-spacing: .07em; }
.portal-table td { padding: 1rem 1.15rem; color: #4c586c; font-size: .78rem; }
.portal-table tbody tr { transition: background .16s ease; }
.portal-table tbody tr:hover { background: #fafbff; }
.portal-table tbody tr:last-child td { border-bottom: 0; }
.project-title-link { color: var(--dashboard-ink); font-weight: 700; }
.project-title-link:hover, .table-action:hover { color: var(--accent-blue); }
.table-muted { color: #9ba3b1; }
.table-action { color: var(--accent-blue); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status-pill { position: relative; gap: .35rem; padding: .28rem .58rem; font-size: .65rem; }
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.portal-empty { display: grid; justify-items: center; padding: 3.5rem 1.5rem; }
.portal-empty__symbol { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border: 1px dashed #9daceb; border-radius: 14px; background: #f4f6ff; color: var(--accent-blue); font: 300 1.65rem Arial,sans-serif; }
.portal-empty h3 { font-size: 1.05rem; }
.portal-empty p { max-width: 500px; margin: .55rem auto 1.25rem; color: var(--dashboard-muted); font-size: .82rem; }

.dashboard-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
.dashboard-form-layout--wizard { grid-template-columns: minmax(0, 1fr) 300px; }
.dashboard-form-card { padding: 0 1.4rem 1.5rem; }
.dashboard-form-card .dashboard-panel__header { margin: 0 -1.4rem 1.4rem; }
.dashboard-form-card .form-group { margin-bottom: 1.15rem; }
.dashboard-form-card .form-group label { color: #344054; font-size: .76rem; font-weight: 700; }
.dashboard-form-card .form-group input:not([type=file]), .dashboard-form-card .form-group textarea, .dashboard-form-card .form-group select { min-height: 44px; border: 1px solid #d7dce5; border-radius: 8px; background: #fff; color: var(--dashboard-ink); font-size: .82rem; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.dashboard-form-card .form-group textarea { min-height: 130px; }
.dashboard-form-card .form-group input:focus, .dashboard-form-card .form-group textarea:focus, .dashboard-form-card .form-group select:focus { border-color: #7790ff; outline: 3px solid rgba(48,81,255,.09); box-shadow: none; }
.dashboard-form-card .form-hint { color: #858fa0; font-size: .69rem; }
.dashboard-form-actions { display: flex; justify-content: flex-end; padding-top: 1.1rem; border-top: 1px solid var(--dashboard-line); }
.profile-context-card, .brief-guidance-card { padding: 1.5rem; border-radius: 13px; background: #172449; color: #fff; box-shadow: 0 12px 30px rgba(23,36,73,.14); }
.profile-context-card__avatar { width: 54px; height: 54px; margin-bottom: 1rem; background: rgba(255,255,255,.14); box-shadow: none; }
.profile-context-card__avatar { overflow: hidden; }
.profile-context-card h2, .brief-guidance-card h2 { color: #fff; font-size: 1rem; }
.profile-context-card > p { margin-top: .3rem; color: rgba(255,255,255,.65); font-size: .72rem; overflow-wrap: anywhere; }
.profile-context-card__rule { height: 1px; margin: 1.35rem 0; background: rgba(255,255,255,.13); }
.profile-context-card__label { display: block; margin-bottom: .5rem; color: rgba(255,255,255,.55); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.profile-context-card__expertise { margin-top: 1rem; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); color: rgba(255,255,255,.72); font-size: .68rem; line-height: 1.5; }
.profile-status { display: flex; align-items: center; gap: .45rem; font-size: .72rem; }
.profile-status span { width: 7px; height: 7px; border-radius: 50%; background: #47d7a0; box-shadow: 0 0 0 4px rgba(71,215,160,.12); }
.brief-guidance-card__eyebrow { color: #e4ba65; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brief-guidance-card h2 { margin-top: .55rem; line-height: 1.4; }
.brief-guidance-card ul { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.brief-guidance-card li { display: flex; gap: .7rem; }
.brief-guidance-card li > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: rgba(255,255,255,.1); color: #e4ba65; font-size: .67rem; font-weight: 700; }
.brief-guidance-card li strong { color: #fff; font-size: .72rem; }
.brief-guidance-card li p { margin-top: .15rem; color: rgba(255,255,255,.6); font-size: .67rem; line-height: 1.5; }
.brief-guidance-card__note { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: .67rem; }
.portal-detail-grid .portal-card { padding: 1.5rem; }
.profile-avatar-field { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1rem; border: 1px solid var(--dashboard-line); border-radius: var(--radius-md); background: #fafbfc; }
.profile-avatar-preview { display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; border-radius: 18px; background: linear-gradient(145deg, var(--accent-blue), #1736b8); color: #fff; font: 700 1.35rem var(--font-heading); }
.profile-avatar-field input[type="file"] { width: 100%; padding: .45rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font-size: .75rem; }
.profile-avatar-field input[type="checkbox"] { width: auto; min-height: auto; margin: .65rem .25rem 0 .75rem; }
.profile-form-section { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--dashboard-line); }
.profile-form-section h3 { margin-bottom: 1rem; color: #465166; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 980px) {
  .dashboard-shell { grid-template-columns: 78px minmax(0,1fr); }
  .dashboard-sidebar { padding-inline: .7rem; }
  .dashboard-sidebar__profile { justify-content: center; padding-inline: 0; }
  .dashboard-sidebar__identity, .dashboard-nav__label, .dashboard-nav__link span:last-child, .dashboard-sidebar__footer { display: none; }
  .dashboard-nav__link { justify-content: center; padding-inline: 0; }
  .dashboard-form-layout, .dashboard-form-layout--wizard { grid-template-columns: 1fr; }
  .profile-context-card, .brief-guidance-card { order: -1; }
}

@media (max-width: 700px) {
  .dashboard-shell { display: block; }
  .dashboard-sidebar { position: static; width: 100%; height: auto; padding: .65rem 1rem; border-right: 0; border-bottom: 1px solid var(--dashboard-line); }
  .dashboard-sidebar__profile, .dashboard-nav__label, .dashboard-sidebar__footer { display: none; }
  .dashboard-nav { display: flex; overflow-x: auto; }
  .dashboard-nav__link { flex: 0 0 auto; min-height: 38px; padding: .45rem .7rem; white-space: nowrap; }
  .dashboard-nav__link span:last-child { display: inline; }
  .dashboard-nav__icon { width: 18px; }
  .dashboard-main { padding: 1.5rem 1rem 3rem; }
  .dashboard-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .dashboard-header__actions, .dashboard-header__actions .btn-primary { width: 100%; }
  .dashboard-header__actions .btn-primary { justify-content: center; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 128px; }
  .dashboard-panel__header { align-items: flex-start; }
  .portal-table { min-width: 730px; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .profile-avatar-field { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .form-grid--2,
  .portal-detail-grid {
    grid-template-columns: 1fr;
  }
}

.social-auth {
  margin-bottom: 1.25rem;
}

.social-auth-label {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.social-auth-buttons {
  display: grid;
  gap: 0.75rem;
}

.social-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-auth-btn:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(48, 81, 255, 0.1);
  transform: translateY(-1px);
}

.social-auth-btn--google .social-auth-icon {
  color: #ea4335;
}

.social-auth-btn--github .social-auth-icon {
  color: #24292f;
}

.social-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.portal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.portal-divider::before,
.portal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

.social-oauth-card {
  display: grid;
  gap: 1.25rem;
}

.social-oauth-provider {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(48, 81, 255, 0.04);
  border: 1px solid rgba(48, 81, 255, 0.12);
}

.social-oauth-provider--google {
  background: rgba(234, 67, 53, 0.06);
  border-color: rgba(234, 67, 53, 0.18);
}

.social-oauth-provider--github {
  background: rgba(36, 41, 47, 0.05);
  border-color: rgba(36, 41, 47, 0.15);
}

.social-oauth-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.social-oauth-provider--google .social-oauth-provider-icon {
  color: #ea4335;
}

.social-oauth-provider--github .social-oauth-provider-icon {
  color: #24292f;
}

.social-oauth-provider-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.social-oauth-provider-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.92rem;
}

.social-oauth-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.social-oauth-steps li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-oauth-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-blue);
}

.social-oauth-form {
  margin-top: 0.25rem;
}

.social-oauth-continue {
  width: 100%;
}

.social-oauth-redirect {
  text-align: center;
}

.social-oauth-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  border: 3px solid rgba(48, 81, 255, 0.15);
  border-top-color: var(--accent-blue);
  animation: social-oauth-spin 0.9s linear infinite;
}

@keyframes social-oauth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
