@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Legacy aliases kept for Stage 2 compatibility */
  --vinastech-blue: #1875bb;
  --vinastech-blue-dark: #0f5f9f;
  --vinastech-orange: #e3791c;
  --vinastech-text: #1d2939;
  --vinastech-surface: #ffffff;

  /* Brand */
  --vst-color-primary: #1875bb;
  --vst-color-primary-hover: #0f5f9f;
  --vst-color-primary-active: #0a477a;
  --vst-color-primary-light: #23aae1;
  --vst-color-primary-soft: #eaf6fd;
  --vst-color-primary-subtle: #f4fbff;
  --vst-color-accent: #e3791c;
  --vst-color-accent-soft: #fff4e8;

  /* Text */
  --vst-color-heading: #10243e;
  --vst-color-text: #344054;
  --vst-color-muted: #667085;
  --vst-color-subtle: #98a2b3;
  --vst-color-link: var(--vst-color-primary);
  --vst-color-link-hover: var(--vst-color-primary-hover);

  /* Surfaces */
  --vst-color-white: #ffffff;
  --vst-color-background: #ffffff;
  --vst-color-background-soft: #f5f8fb;
  --vst-color-background-blue: #eff8ff;
  --vst-color-background-dark: #0b2742;
  --vst-color-border: #e2e8f0;
  --vst-color-border-strong: #cbd5e1;

  /* Status */
  --vst-color-success: #16803c;
  --vst-color-success-soft: #ecfdf3;
  --vst-color-warning: #b54708;
  --vst-color-warning-soft: #fffaeb;
  --vst-color-danger: #b42318;
  --vst-color-danger-soft: #fef3f2;
  --vst-color-info: #175cd3;
  --vst-color-info-soft: #eff8ff;

  /* Typography */
  --vst-font-family-heading: Arial, Helvetica, sans-serif;
  --vst-font-family-body: Arial, Helvetica, sans-serif;
  --vst-font-weight-regular: 400;
  --vst-font-weight-medium: 500;
  --vst-font-weight-semibold: 600;
  --vst-font-weight-bold: 700;
  --vst-line-height-tight: 1.08;
  --vst-line-height-heading: 1.18;
  --vst-line-height-body: 1.65;

  /* Layout */
  --vst-container-max: 1200px;
  --vst-container-wide: 1360px;
  --vst-container-narrow: 880px;
  --vst-gutter: clamp(1rem, 3vw, 2rem);
  --vst-section-y: clamp(4rem, 7vw, 7rem);
  --vst-section-y-sm: clamp(2.5rem, 5vw, 4rem);
  --vst-section-y-lg: clamp(5.5rem, 9vw, 9rem);

  /* Spacing */
  --vst-space-1: 0.25rem;
  --vst-space-2: 0.5rem;
  --vst-space-3: 0.75rem;
  --vst-space-4: 1rem;
  --vst-space-5: 1.25rem;
  --vst-space-6: 1.5rem;
  --vst-space-8: 2rem;
  --vst-space-10: 2.5rem;
  --vst-space-12: 3rem;
  --vst-space-16: 4rem;

  /* Radius */
  --vst-radius-xs: 4px;
  --vst-radius-sm: 6px;
  --vst-radius-md: 8px;
  --vst-radius-lg: 12px;
  --vst-radius-xl: 16px;
  --vst-radius-pill: 999px;

  /* Shadows */
  --vst-shadow-xs: 0 1px 2px rgba(16, 36, 62, 0.06);
  --vst-shadow-sm: 0 4px 14px rgba(16, 36, 62, 0.08);
  --vst-shadow-md: 0 14px 36px rgba(16, 36, 62, 0.12);
  --vst-shadow-focus: 0 0 0 4px rgba(35, 170, 225, 0.22);

  /* Motion */
  --vst-transition-fast: 160ms ease;
  --vst-transition-base: 240ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--vinastech-text);
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--vst-color-primary-light);
  outline-offset: 3px;
}

.vst-design-system,
.vst-design-system * {
  box-sizing: border-box;
}

.vst-design-system {
  min-height: 100vh;
  background: var(--vst-color-background);
  color: var(--vst-color-text);
  font-family: var(--vst-font-family-body);
  font-size: 16px;
  line-height: var(--vst-line-height-body);
}

.vst-design-system a {
  color: var(--vst-color-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.vst-design-system a:hover {
  color: var(--vst-color-link-hover);
}

.vst-container,
.vst-container-wide,
.vst-container-narrow {
  width: min(100% - (var(--vst-gutter) * 2), var(--vst-container-max));
  margin-inline: auto;
}

.vst-container-wide {
  width: min(100% - (var(--vst-gutter) * 2), var(--vst-container-wide));
}

.vst-container-narrow {
  width: min(100% - (var(--vst-gutter) * 2), var(--vst-container-narrow));
}

.vst-section {
  padding-block: var(--vst-section-y);
}

.vst-section-sm {
  padding-block: var(--vst-section-y-sm);
}

.vst-section-lg {
  padding-block: var(--vst-section-y-lg);
}

.vst-section-blue {
  background: var(--vst-color-background-blue);
}

.vst-section-dark {
  background: var(--vst-color-background-dark);
  color: rgba(255, 255, 255, 0.86);
}

.vst-section-dark .vst-heading,
.vst-section-dark .vst-section-title,
.vst-section-dark .vst-heading-hero {
  color: var(--vst-color-white);
}

.vst-stack {
  display: flex;
  flex-direction: column;
  gap: var(--vst-stack-gap, var(--vst-space-6));
}

.vst-row {
  display: flex;
  align-items: center;
  gap: var(--vst-row-gap, var(--vst-space-4));
}

.vst-row-wrap {
  flex-wrap: wrap;
}

.vst-grid {
  display: grid;
  gap: var(--vst-grid-gap, var(--vst-space-6));
}

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

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

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

.vst-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-3);
  align-items: center;
}

.vst-heading-hero,
.vst-heading-xl,
.vst-heading-lg,
.vst-heading-md,
.vst-heading-sm,
.vst-heading-xs,
.vst-section-title,
.vst-card-title {
  margin: 0;
  color: var(--vst-color-heading);
  font-family: var(--vst-font-family-heading);
  font-weight: var(--vst-font-weight-bold);
  text-wrap: balance;
}

.vst-heading-hero {
  max-width: 980px;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: var(--vst-line-height-tight);
}

.vst-heading-xl {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: var(--vst-line-height-tight);
}

.vst-heading-lg,
.vst-section-title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: var(--vst-line-height-heading);
}

.vst-heading-md {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: var(--vst-line-height-heading);
}

.vst-heading-sm {
  font-size: 1.125rem;
  line-height: 1.35;
}

.vst-heading-xs {
  font-size: 1rem;
  line-height: 1.4;
}

.vst-lead {
  max-width: 760px;
  margin: 0;
  color: var(--vst-color-text);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.68;
}

.vst-body {
  margin: 0;
  color: var(--vst-color-text);
}

.vst-small,
.vst-caption {
  margin: 0;
  color: var(--vst-color-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.vst-caption {
  font-size: 0.78rem;
}

.vst-eyebrow,
.vst-label,
.vst-nav-text,
.vst-button-text {
  font-size: 0.8rem;
  font-weight: var(--vst-font-weight-semibold);
  letter-spacing: 0.04em;
}

.vst-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-2);
  margin: 0;
  color: var(--vst-color-primary-hover);
  text-transform: uppercase;
}

.vst-label {
  display: inline-block;
  color: var(--vst-color-heading);
}

.vst-nav-text {
  color: var(--vst-color-heading);
  letter-spacing: 0;
}

.vst-section-heading {
  display: grid;
  gap: var(--vst-space-4);
  max-width: 800px;
}

.vst-section-heading-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.vst-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--vst-space-2);
  border: 1px solid transparent;
  border-radius: var(--vst-radius-pill);
  padding: 0.72rem 1.15rem;
  background: transparent;
  color: var(--vst-color-heading);
  font: inherit;
  font-weight: var(--vst-font-weight-semibold);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--vst-transition-fast), border-color var(--vst-transition-fast), background var(--vst-transition-fast), color var(--vst-transition-fast), box-shadow var(--vst-transition-fast);
}

.vst-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.vst-btn:active {
  transform: translateY(0);
}

.vst-btn:focus-visible {
  outline: none;
  box-shadow: var(--vst-shadow-focus);
}

.vst-btn[disabled],
.vst-btn.is-disabled,
.vst-btn[aria-disabled="true"] {
  opacity: 0.56;
  pointer-events: none;
}

.vst-btn-primary {
  background: var(--vst-color-primary);
  color: var(--vst-color-white);
}

.vst-btn-primary:hover {
  background: var(--vst-color-primary-hover);
  color: var(--vst-color-white);
}

.vst-btn-primary:active {
  background: var(--vst-color-primary-active);
}

.vst-btn-secondary {
  background: var(--vst-color-white);
  color: var(--vst-color-primary-hover);
  border-color: rgba(255, 255, 255, 0.7);
}

.vst-btn-secondary:hover {
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary-active);
}

.vst-btn-outline {
  border-color: var(--vst-color-border-strong);
  background: var(--vst-color-white);
  color: var(--vst-color-heading);
}

.vst-btn-outline:hover {
  border-color: var(--vst-color-primary);
  color: var(--vst-color-primary-hover);
}

.vst-btn-ghost {
  color: var(--vst-color-primary-hover);
}

.vst-btn-ghost:hover {
  background: var(--vst-color-primary-soft);
}

.vst-btn-link {
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  color: var(--vst-color-primary-hover);
  font-weight: var(--vst-font-weight-semibold);
}

.vst-btn-sm {
  min-height: 36px;
  padding: 0.52rem 0.88rem;
  font-size: 0.9rem;
}

.vst-btn-lg {
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  font-size: 1.02rem;
}

.vst-btn-icon {
  width: 44px;
  min-width: 44px;
  padding-inline: 0;
}

.vst-btn-icon svg,
.vst-icon svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.vst-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  background: var(--vst-color-white);
  box-shadow: var(--vst-shadow-xs);
  transition: border-color var(--vst-transition-base), box-shadow var(--vst-transition-base), transform var(--vst-transition-base);
}

.vst-card:hover {
  border-color: rgba(24, 117, 187, 0.34);
  box-shadow: var(--vst-shadow-sm);
  transform: translateY(-2px);
}

.vst-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--vst-color-primary-soft), var(--vst-color-background-soft));
  overflow: hidden;
}

.vst-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vst-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--vst-space-4);
  padding: var(--vst-space-6);
}

.vst-card-title {
  font-size: 1.08rem;
  line-height: 1.35;
}

.vst-card-description {
  margin: 0;
  color: var(--vst-color-muted);
  line-height: 1.65;
}

.vst-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-3);
  margin-top: auto;
}

.vst-card-solution {
  border-top: 4px solid var(--vst-color-primary);
}

.vst-card-service {
  border-top: 4px solid var(--vst-color-primary-light);
}

.vst-card-product .vst-card-media {
  aspect-ratio: 4 / 3;
}

.vst-card-partner {
  align-items: center;
  justify-content: center;
  padding: var(--vst-space-6);
  text-align: center;
}

.vst-card-resource {
  background: var(--vst-color-background-soft);
}

.vst-stat-card {
  padding: var(--vst-space-6);
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  background: var(--vst-color-white);
}

.vst-stat-value {
  color: var(--vst-color-primary-hover);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--vst-font-weight-bold);
  line-height: 1;
}

.vst-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-2);
  width: fit-content;
  border: 1px solid rgba(24, 117, 187, 0.16);
  border-radius: var(--vst-radius-pill);
  padding: 0.28rem 0.65rem;
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary-hover);
  font-size: 0.78rem;
  font-weight: var(--vst-font-weight-semibold);
  line-height: 1.2;
}

.vst-badge-success {
  background: var(--vst-color-success-soft);
  color: var(--vst-color-success);
}

.vst-badge-warning {
  background: var(--vst-color-warning-soft);
  color: var(--vst-color-warning);
}

.vst-badge-neutral {
  background: var(--vst-color-background-soft);
  color: var(--vst-color-text);
}

.vst-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-2);
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--vst-color-muted);
  font-size: 0.9rem;
  list-style: none;
}

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

.vst-breadcrumb a:hover {
  color: var(--vst-color-primary-hover);
}

.vst-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--vst-space-2);
  color: var(--vst-color-subtle);
}

.vst-form {
  display: grid;
  gap: var(--vst-space-5);
}

.vst-field {
  display: grid;
  gap: var(--vst-space-2);
}

.vst-input,
.vst-textarea,
.vst-select,
.vst-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--vst-color-border-strong);
  border-radius: var(--vst-radius-md);
  padding: 0.72rem 0.9rem;
  background: var(--vst-color-white);
  color: var(--vst-color-heading);
  font: inherit;
  transition: border-color var(--vst-transition-fast), box-shadow var(--vst-transition-fast);
}

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

.vst-input:focus,
.vst-textarea:focus,
.vst-select:focus,
.vst-search:focus {
  border-color: var(--vst-color-primary);
  outline: none;
  box-shadow: var(--vst-shadow-focus);
}

.vst-check,
.vst-radio {
  display: flex;
  gap: var(--vst-space-3);
  align-items: flex-start;
  color: var(--vst-color-text);
}

.vst-check input,
.vst-radio input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--vst-color-primary);
}

.vst-search-wrap {
  position: relative;
}

.vst-search-wrap .vst-search {
  padding-left: 2.55rem;
}

.vst-search-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  color: var(--vst-color-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.vst-accordion {
  display: grid;
  gap: var(--vst-space-3);
}

.vst-accordion-item {
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  background: var(--vst-color-white);
}

.vst-accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: var(--vst-space-4);
  border: 0;
  padding: var(--vst-space-4) var(--vst-space-5);
  background: transparent;
  color: var(--vst-color-heading);
  font: inherit;
  font-weight: var(--vst-font-weight-semibold);
  text-align: left;
  cursor: pointer;
}

.vst-accordion-trigger::after {
  content: "+";
  color: var(--vst-color-primary);
  font-size: 1.35rem;
  line-height: 1;
}

.vst-accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.vst-accordion-panel {
  padding: 0 var(--vst-space-5) var(--vst-space-5);
  color: var(--vst-color-muted);
}

.vst-accordion-panel[hidden] {
  display: none;
}

.vst-tabs {
  display: grid;
  gap: var(--vst-space-5);
}

.vst-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-2);
  border-bottom: 1px solid var(--vst-color-border);
}

.vst-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.65rem 0.85rem;
  background: transparent;
  color: var(--vst-color-muted);
  font: inherit;
  font-weight: var(--vst-font-weight-semibold);
  cursor: pointer;
}

.vst-tab[aria-selected="true"] {
  border-bottom-color: var(--vst-color-primary);
  color: var(--vst-color-primary-hover);
}

.vst-tab-panel[hidden] {
  display: none;
}

.vst-alert {
  display: flex;
  gap: var(--vst-space-3);
  border: 1px solid rgba(23, 92, 211, 0.18);
  border-radius: var(--vst-radius-lg);
  padding: var(--vst-space-4);
  background: var(--vst-color-info-soft);
  color: var(--vst-color-text);
}

.vst-alert-success {
  border-color: rgba(22, 128, 60, 0.2);
  background: var(--vst-color-success-soft);
}

.vst-alert-warning {
  border-color: rgba(181, 71, 8, 0.22);
  background: var(--vst-color-warning-soft);
}

.vst-cta {
  display: grid;
  gap: var(--vst-space-6);
  border-radius: var(--vst-radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--vst-color-background-dark);
  color: rgba(255, 255, 255, 0.86);
}

.vst-cta .vst-heading-lg,
.vst-cta .vst-heading-xl {
  color: var(--vst-color-white);
}

.vst-logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--vst-space-4);
}

.vst-logo-tile,
.vst-icon-block,
.vst-empty-state {
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  padding: var(--vst-space-6);
  background: var(--vst-color-white);
}

.vst-logo-tile {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: var(--vst-color-muted);
  font-weight: var(--vst-font-weight-semibold);
  text-align: center;
}

.vst-icon-block {
  display: grid;
  gap: var(--vst-space-3);
}

.vst-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--vst-radius-md);
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary-hover);
}

.vst-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-2);
  align-items: center;
}

.vst-page-link {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-md);
  color: var(--vst-color-heading);
  text-decoration: none;
}

.vst-page-link[aria-current="page"],
.vst-page-link:hover {
  border-color: var(--vst-color-primary);
  background: var(--vst-color-primary);
  color: var(--vst-color-white);
}

.vst-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--vst-space-3);
  color: var(--vst-color-muted);
  text-align: center;
}

.vst-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-2);
  color: var(--vst-color-muted);
}

.vst-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--vst-color-border);
  border-top-color: var(--vst-color-primary);
  border-radius: 50%;
  animation: vst-spin 800ms linear infinite;
}

.vst-skeleton {
  display: block;
  min-height: 1rem;
  border-radius: var(--vst-radius-sm);
  background: linear-gradient(90deg, #eef2f6, #f8fafc, #eef2f6);
  background-size: 220% 100%;
  animation: vst-skeleton 1.2s ease-in-out infinite;
}

.vst-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--vst-space-4);
}

.vst-color-swatch {
  overflow: hidden;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  background: var(--vst-color-white);
}

.vst-color-chip {
  min-height: 92px;
  background: var(--vst-swatch-color);
}

.vst-color-meta {
  display: grid;
  gap: var(--vst-space-1);
  padding: var(--vst-space-4);
}

.vst-demo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--vst-color-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.vst-demo-nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--vst-space-6);
}

.vst-demo-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-3);
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-bold);
  text-decoration: none;
}

.vst-demo-logo img {
  width: auto;
  height: 42px;
}

.vst-demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-4);
  align-items: center;
}

.vst-demo-links a {
  color: var(--vst-color-text);
  font-size: 0.92rem;
  font-weight: var(--vst-font-weight-semibold);
  text-decoration: none;
}

.vst-demo-links a:hover {
  color: var(--vst-color-primary-hover);
}

.vst-hero-panel {
  display: grid;
  gap: var(--vst-space-8);
  min-height: min(720px, calc(100vh - 72px));
  align-content: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.vst-demo-block {
  display: grid;
  gap: var(--vst-space-8);
}

.vst-demo-surface {
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--vst-color-white);
}

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

@keyframes vst-skeleton {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 1100px) {
  .vst-grid-4,
  .vst-logo-strip,
  .vst-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .vst-grid-2,
  .vst-grid-3,
  .vst-grid-4 {
    grid-template-columns: 1fr;
  }

  .vst-demo-nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: var(--vst-space-4);
  }

  .vst-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .vst-design-system {
    font-size: 15px;
  }

  .vst-color-grid,
  .vst-logo-strip {
    grid-template-columns: 1fr;
  }

  .vst-btn {
    width: 100%;
  }

  .vst-btn-icon,
  .vst-btn-link {
    width: auto;
  }

  .vst-btn-link,
  .vst-preview-footer a {
    min-height: 44px;
  }

  .vst-tab-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--vst-space-1);
  }

  .vst-tab {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.vst-home-preview {
  min-height: 100vh;
  background: var(--vst-color-background);
  color: var(--vst-color-text);
  font-family: var(--vst-font-family-body);
  line-height: var(--vst-line-height-body);
}

.vst-home-preview,
.vst-home-preview * {
  box-sizing: border-box;
}

.vst-home-preview a {
  color: inherit;
}

.vst-skip-link {
  position: fixed;
  top: var(--vst-space-3);
  left: var(--vst-space-3);
  z-index: 1000;
  transform: translateY(-150%);
}

.vst-skip-link:focus {
  transform: translateY(0);
}

.vst-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition: border-color var(--vst-transition-base), box-shadow var(--vst-transition-base);
}

.vst-site-header.is-scrolled {
  border-color: var(--vst-color-border);
  box-shadow: var(--vst-shadow-xs);
}

.vst-header-inner {
  display: grid;
  min-height: 74px;
  align-items: center;
  gap: var(--vst-space-5);
  grid-template-columns: auto 1fr auto;
}

.vst-site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-3);
  min-height: 44px;
  min-width: 44px;
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-bold);
  text-decoration: none;
}

.vst-site-brand img {
  width: auto;
  height: 42px;
  display: block;
}

.vst-primary-nav {
  display: flex;
  justify-content: center;
}

.vst-primary-nav-list {
  display: flex;
  align-items: center;
  gap: var(--vst-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vst-nav-item {
  position: static;
}

.vst-nav-link,
.vst-nav-trigger,
.vst-mobile-toggle,
.vst-mobile-close,
.vst-mobile-accordion-trigger {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--vst-color-heading);
  font: inherit;
  font-weight: var(--vst-font-weight-semibold);
  cursor: pointer;
}

.vst-nav-link,
.vst-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--vst-space-2);
  border-radius: var(--vst-radius-pill);
  padding: 0.62rem 0.85rem;
  text-decoration: none;
}

.vst-nav-link:hover,
.vst-nav-trigger:hover,
.vst-nav-item.is-open > .vst-nav-trigger {
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary-hover);
}

.vst-nav-trigger::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.vst-mega-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  display: none;
  width: min(calc(100vw - (var(--vst-gutter) * 2)), 1120px);
  max-height: min(72vh, 620px);
  overflow: auto;
  border: 1px solid var(--vst-color-border);
  border-radius: 0 0 var(--vst-radius-xl) var(--vst-radius-xl);
  background: var(--vst-color-white);
  box-shadow: var(--vst-shadow-md);
  transform: translateX(-50%);
}

.vst-nav-item.is-open > .vst-mega-menu {
  display: block;
}

.vst-mega-menu-inner {
  display: grid;
  gap: var(--vst-space-8);
  padding: var(--vst-space-8);
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
}

.vst-mega-menu-grid {
  display: grid;
  gap: var(--vst-space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vst-mega-menu a,
.vst-mega-item-muted {
  display: grid;
  gap: var(--vst-space-1);
  border-radius: var(--vst-radius-md);
  padding: var(--vst-space-4);
  text-decoration: none;
}

.vst-mega-menu a {
  color: var(--vst-color-heading);
}

.vst-mega-menu a:hover,
.vst-mega-menu a:focus-visible {
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary-hover);
}

.vst-mega-item-title {
  font-weight: var(--vst-font-weight-bold);
}

.vst-mega-item-text {
  color: var(--vst-color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vst-mega-item-muted {
  border: 1px dashed var(--vst-color-border-strong);
  color: var(--vst-color-muted);
}

.vst-header-actions {
  display: flex;
  align-items: center;
  gap: var(--vst-space-3);
}

.vst-header-action-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--vst-radius-pill);
  padding: 0.58rem 0.75rem;
  color: var(--vst-color-text);
  font-weight: var(--vst-font-weight-semibold);
  text-decoration: none;
}

.vst-header-action-link:hover {
  background: var(--vst-color-background-soft);
  color: var(--vst-color-primary-hover);
}

.vst-header-action-link[aria-disabled="true"] {
  color: var(--vst-color-muted);
  cursor: not-allowed;
}

.vst-mobile-toggle {
  display: none;
  align-items: center;
  gap: var(--vst-space-2);
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-pill);
  padding: 0.55rem 0.85rem;
}

.vst-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  background: rgba(16, 36, 62, 0.42);
}

.vst-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 190;
  width: min(92vw, 420px);
  min-height: 100vh;
  overflow: auto;
  padding: var(--vst-space-5);
  background: var(--vst-color-white);
  box-shadow: -20px 0 60px rgba(16, 36, 62, 0.18);
  transform: translateX(105%);
  transition: transform var(--vst-transition-base);
}

.vst-home-preview.is-mobile-menu-open {
  overflow: hidden;
}

.vst-home-preview.is-mobile-menu-open .vst-mobile-overlay {
  display: block;
}

.vst-home-preview.is-mobile-menu-open .vst-mobile-drawer {
  transform: translateX(0);
}

.vst-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vst-space-4);
  margin-bottom: var(--vst-space-5);
}

.vst-mobile-close {
  width: 44px;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-pill);
}

.vst-mobile-nav-list {
  display: grid;
  gap: var(--vst-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vst-mobile-nav-link,
.vst-mobile-accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--vst-radius-md);
  padding: 0.75rem 0.85rem;
  color: var(--vst-color-heading);
  text-align: left;
  text-decoration: none;
}

.vst-mobile-accordion-trigger::after {
  content: "+";
  color: var(--vst-color-primary);
  font-size: 1.25rem;
}

.vst-mobile-accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.vst-mobile-nav-link:hover,
.vst-mobile-accordion-trigger:hover {
  background: var(--vst-color-primary-soft);
}

.vst-mobile-panel {
  display: grid;
  gap: var(--vst-space-2);
  padding: 0 0 var(--vst-space-3) var(--vst-space-4);
}

.vst-mobile-panel[hidden] {
  display: none;
}

.vst-home-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--vst-color-border);
  background:
    radial-gradient(circle at 85% 20%, rgba(35, 170, 225, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 74%);
}

.vst-home-hero-grid {
  display: grid;
  min-height: min(720px, calc(100vh - 74px));
  align-items: center;
  gap: var(--vst-space-12);
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.vst-hero-copy {
  display: grid;
  gap: var(--vst-space-6);
}

.vst-hero-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(24, 117, 187, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(24, 117, 187, 0.08), rgba(35, 170, 225, 0.08)),
    var(--vst-color-white);
  box-shadow: var(--vst-shadow-md);
}

.vst-hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vst-signal-card {
  position: absolute;
  right: var(--vst-space-6);
  bottom: var(--vst-space-6);
  max-width: 250px;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  padding: var(--vst-space-5);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--vst-shadow-sm);
}

.vst-platform-strip {
  display: grid;
  gap: var(--vst-space-4);
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.vst-platform-chip {
  display: grid;
  min-height: 76px;
  place-items: center;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  background: var(--vst-color-white);
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-bold);
  text-align: center;
}

.vst-capability-panel {
  display: grid;
  gap: var(--vst-space-5);
  border-left: 4px solid var(--vst-color-primary);
  border-radius: var(--vst-radius-lg);
  padding: var(--vst-space-6);
  background: var(--vst-color-white);
  box-shadow: var(--vst-shadow-xs);
}

.vst-industry-list {
  display: grid;
  gap: var(--vst-space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vst-industry-pill {
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-pill);
  padding: 0.78rem 1rem;
  background: var(--vst-color-white);
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-semibold);
}

.vst-case-placeholder {
  border: 1px dashed var(--vst-color-border-strong);
  border-radius: var(--vst-radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--vst-color-primary-subtle);
}

.vst-preview-footer {
  background: var(--vst-color-background-dark);
  color: rgba(255, 255, 255, 0.8);
}

.vst-preview-footer a {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.vst-preview-footer a:hover {
  color: var(--vst-color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.vst-footer-grid {
  display: grid;
  gap: var(--vst-space-8);
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

.vst-footer-logo {
  width: auto;
  height: 48px;
  margin-bottom: var(--vst-space-4);
  filter: brightness(0) invert(1);
}

.vst-footer-links {
  display: grid;
  gap: var(--vst-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vst-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--vst-space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--vst-space-6);
}

@media (max-width: 1180px) {
  .vst-primary-nav,
  .vst-header-actions .vst-header-action-link {
    display: none;
  }

  .vst-mobile-toggle {
    display: inline-flex;
  }

  .vst-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .vst-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .vst-hero-visual {
    min-height: 320px;
  }

  .vst-platform-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .vst-header-inner {
    min-height: 66px;
  }

  .vst-site-brand img {
    height: 36px;
  }

  .vst-home-hero-grid {
    min-height: auto;
    padding-block: var(--vst-section-y-sm);
  }

  .vst-hero-visual {
    min-height: 280px;
  }

  .vst-signal-card {
    position: static;
    margin: var(--vst-space-4);
  }

  .vst-platform-strip,
  .vst-industry-list,
  .vst-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 6: INTERNAL PAGES & SHELL STYLES (.vst-internal-page)
   ========================================================================== */

/* Active nav item indicator */
.vst-nav-item-active > .vst-nav-link,
.vst-nav-item-active > .vst-nav-trigger {
  color: var(--vst-color-primary) !important;
  font-weight: var(--vst-font-weight-semibold);
}
.vst-nav-item-active > .vst-nav-link::after,
.vst-nav-item-active > .vst-nav-trigger::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--vst-color-primary);
  border-radius: var(--vst-radius-pill);
  margin-top: 4px;
}

/* Internal Page Hero & Breadcrumb */
.vst-page-hero {
  background: linear-gradient(180deg, var(--vst-color-primary-soft) 0%, var(--vst-color-background) 100%);
  border-bottom: 1px solid var(--vst-color-border);
  padding-block: var(--vst-space-8) var(--vst-space-10);
}

.vst-breadcrumb {
  margin-bottom: var(--vst-space-4);
}

.vst-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vst-space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--vst-space-3.5, 0.875rem);
  color: var(--vst-color-muted);
}

.vst-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.vst-breadcrumb-list li + li::before {
  content: "/";
  margin-right: var(--vst-space-2);
  color: var(--vst-color-subtle);
}

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

.vst-breadcrumb-list a:hover {
  color: var(--vst-color-primary);
  text-decoration: underline;
}

.vst-breadcrumb-list li[aria-current="page"] {
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-medium);
}

.vst-page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--vst-font-weight-bold);
  color: var(--vst-color-heading);
  line-height: var(--vst-line-height-heading);
  margin: 0;
}

/* Prose container for legacy content */
.vst-internal-page #main {
  padding-block: var(--vst-section-y-sm);
  background: var(--vst-color-background);
}

.vst-internal-page .page-wrapper,
.vst-internal-page .content-area {
  max-width: var(--vst-container-wide);
  margin-inline: auto;
  padding-inline: var(--vst-gutter);
}

.vst-prose {
  max-width: 90ch;
  margin-inline: auto;
  color: var(--vst-color-text);
  line-height: var(--vst-line-height-body);
}

.vst-prose p {
  margin-bottom: var(--vst-space-4);
}

.vst-prose h2,
.vst-prose h3,
.vst-prose h4 {
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-bold);
  margin-top: var(--vst-space-8);
  margin-bottom: var(--vst-space-3);
  line-height: var(--vst-line-height-heading);
}

.vst-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--vst-radius-md);
  margin-block: var(--vst-space-4);
}

.vst-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--vst-space-6);
  overflow-x: auto;
  display: block;
}

.vst-prose th,
.vst-prose td {
  padding: var(--vst-space-3) var(--vst-space-4);
  border: 1px solid var(--vst-color-border);
  text-align: left;
}

.vst-prose th {
  background-color: var(--vst-color-background-soft);
  color: var(--vst-color-heading);
  font-weight: var(--vst-font-weight-semibold);
}

/* Page CTA */
.vst-page-cta {
  background: linear-gradient(135deg, var(--vst-color-background-dark) 0%, #0f3960 100%);
  color: var(--vst-color-white);
  padding-block: var(--vst-section-y-sm);
  border-radius: var(--vst-radius-lg);
  margin-inline: var(--vst-gutter);
  margin-block-end: var(--vst-section-y-sm);
}

.vst-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vst-space-6);
}

.vst-cta-text {
  max-width: 70ch;
}

.vst-cta-text .vst-heading-md {
  color: var(--vst-color-white);
  margin-top: var(--vst-space-2);
  margin-bottom: var(--vst-space-3);
}

.vst-lead-sm {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0;
}

.vst-cta-actions {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .vst-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   PHASE 7: ARTICLE DETAIL PAGES (.vst-article-page)
   ========================================================================== */

.vst-article-page {
  background-color: var(--vst-color-background);
}

.vst-article-header {
  padding-block: var(--vst-space-6) var(--vst-space-8);
  border-bottom: 1px solid var(--vst-color-border);
  background: var(--vst-color-primary-subtle);
  margin-bottom: var(--vst-space-8);
}

.vst-article-category {
  display: inline-block;
  background-color: var(--vst-color-primary-soft);
  color: var(--vst-color-primary);
  font-size: var(--vst-space-3.5, 0.875rem);
  font-weight: var(--vst-font-weight-semibold);
  padding: 4px 12px;
  border-radius: var(--vst-radius-pill);
  margin-bottom: var(--vst-space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vst-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vst-space-4);
  color: var(--vst-color-muted);
  font-size: 0.9rem;
  margin-top: var(--vst-space-4);
}

.vst-article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vst-article-featured-media {
  margin-block: var(--vst-space-6) var(--vst-space-8);
  border-radius: var(--vst-radius-lg);
  overflow: hidden;
  box-shadow: var(--vst-shadow-sm);
  background-color: var(--vst-color-background-soft);
}

.vst-article-featured-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Article Layout Grid (Content + Sticky Sidebar) */
.vst-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--vst-space-10);
  align-items: start;
  margin-bottom: var(--vst-space-12);
}

.vst-article-layout.vst-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 85ch;
  margin-inline: auto;
}

.vst-article-content {
  max-width: 80ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--vst-color-text);
}

.vst-article-aside {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: var(--vst-space-6);
}

/* Table of Contents Card */
.vst-article-toc {
  background: var(--vst-color-background-soft);
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  padding: var(--vst-space-5);
}

.vst-toc-title {
  font-size: 1.05rem;
  font-weight: var(--vst-font-weight-bold);
  color: var(--vst-color-heading);
  margin-bottom: var(--vst-space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vst-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.vst-toc-list a {
  color: var(--vst-color-muted);
  text-decoration: none;
  transition: color var(--vst-transition-fast);
  line-height: 1.4;
}

.vst-toc-list a:hover {
  color: var(--vst-color-primary);
}

/* Share Actions Bar */
.vst-article-share {
  display: flex;
  align-items: center;
  gap: var(--vst-space-3);
  margin-block: var(--vst-space-8);
  padding-top: var(--vst-space-6);
  border-top: 1px solid var(--vst-color-border);
}

.vst-share-label {
  font-weight: var(--vst-font-weight-semibold);
  color: var(--vst-color-heading);
  font-size: 0.95rem;
}

.vst-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--vst-radius-md);
  background: var(--vst-color-background-soft);
  border: 1px solid var(--vst-color-border);
  color: var(--vst-color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--vst-transition-fast);
}

.vst-share-btn:hover {
  background: var(--vst-color-primary-soft);
  color: var(--vst-color-primary);
  border-color: var(--vst-color-primary-light);
}

/* Toast Notice */
.vst-toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--vst-color-heading);
  color: var(--vst-color-white);
  padding: 12px 20px;
  border-radius: var(--vst-radius-md);
  box-shadow: var(--vst-shadow-md);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 200ms ease;
}

.vst-toast-notice.vst-show {
  opacity: 1;
  transform: translateY(0);
}

/* Related Articles Grid */
.vst-article-related {
  margin-block: var(--vst-space-12) var(--vst-space-8);
  padding-top: var(--vst-space-8);
  border-top: 1px solid var(--vst-color-border);
}

.vst-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vst-space-6);
  margin-top: var(--vst-space-6);
}

.vst-related-card {
  background: var(--vst-color-white);
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--vst-transition-fast), box-shadow var(--vst-transition-fast);
}

.vst-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vst-shadow-sm);
  border-color: var(--vst-color-primary-light);
}

.vst-related-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--vst-color-background-soft);
}

.vst-related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vst-related-card-body {
  padding: var(--vst-space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vst-related-card-title {
  font-size: 1.05rem;
  font-weight: var(--vst-font-weight-bold);
  line-height: 1.35;
  margin-bottom: var(--vst-space-3);
  color: var(--vst-color-heading);
}

.vst-related-card-title a {
  color: inherit;
  text-decoration: none;
}

.vst-related-card-title a:hover {
  color: var(--vst-color-primary);
}

@media (max-width: 1024px) {
  .vst-article-layout {
    grid-template-columns: 1fr;
  }
  .vst-article-aside {
    position: static;
  }
  .vst-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vst-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 8: WOOCOMMERCE ENTERPRISE CATALOG (.vst-product-archive & .vst-product-page)
   ========================================================================== */

/* Category & Archive Pages */
.vst-product-archive {
  background-color: var(--vst-color-background);
}

.vst-category-hero {
  padding-block: var(--vst-space-8) var(--vst-space-10);
  background: var(--vst-color-primary-subtle);
  border-bottom: 1px solid var(--vst-color-border);
  margin-bottom: var(--vst-space-8);
}

.vst-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--vst-space-6);
  margin-block: var(--vst-space-8) var(--vst-space-12);
}

.vst-product-card {
  background: var(--vst-color-white);
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--vst-transition-fast), box-shadow var(--vst-transition-fast);
}

.vst-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vst-shadow-md);
  border-color: var(--vst-color-primary-light);
}

.vst-product-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--vst-color-background-soft);
  position: relative;
}

.vst-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--vst-space-3);
}

.vst-product-card-body {
  padding: var(--vst-space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vst-product-brand {
  font-size: 0.8rem;
  font-weight: var(--vst-font-weight-semibold);
  color: var(--vst-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.vst-product-card-title {
  font-size: 1rem;
  font-weight: var(--vst-font-weight-bold);
  line-height: 1.35;
  color: var(--vst-color-heading);
  margin-bottom: var(--vst-space-3);
}

.vst-product-card-title a {
  color: inherit;
  text-decoration: none;
}

.vst-product-card-title a:hover {
  color: var(--vst-color-primary);
}

.vst-product-price-label {
  font-weight: var(--vst-font-weight-bold);
  color: var(--vst-color-primary);
  font-size: 1.05rem;
  margin-top: auto;
  margin-bottom: var(--vst-space-4);
}

.vst-product-card-actions {
  display: flex;
  gap: var(--vst-space-2);
}

/* Product Detail Page Layout */
.vst-product-page {
  background-color: var(--vst-color-background);
}

.vst-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--vst-space-10);
  align-items: start;
  margin-block: var(--vst-space-6) var(--vst-space-10);
}

.vst-product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--vst-space-4);
}

.vst-product-gallery-main {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--vst-color-border);
  border-radius: var(--vst-radius-lg);
  overflow: hidden;
  background-color: var(--vst-color-white);
}

.vst-product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--vst-space-4);
}

.vst-product-gallery-thumbs {
  display: flex;
  gap: var(--vst-space-3);
  overflow-x: auto;
  padding-bottom: 4px;
}

.vst-product-gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--vst-color-border);
  border-radius: var(--vst-radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--vst-color-white);
  opacity: 0.7;
  transition: all var(--vst-transition-fast);
}

.vst-product-gallery-thumb.vst-thumb-active,
.vst-product-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--vst-color-primary);
}

.vst-product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vst-product-summary {
  display: flex;
  flex-direction: column;
}

.vst-product-summary h1 {
  font-size: var(--vst-font-size-h2, 1.85rem);
  font-weight: var(--vst-font-weight-bold);
  line-height: 1.25;
  color: var(--vst-color-heading);
  margin-block: var(--vst-space-2) var(--vst-space-4);
}

.vst-product-price-box {
  background: var(--vst-color-primary-subtle);
  border: 1px solid var(--vst-color-primary-soft);
  border-radius: var(--vst-radius-md);
  padding: var(--vst-space-4) var(--vst-space-5);
  margin-block: var(--vst-space-3) var(--vst-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vst-product-price-text {
  font-size: 1.35rem;
  font-weight: var(--vst-font-weight-bold);
  color: var(--vst-color-primary);
}

.vst-product-price-note {
  font-size: 0.85rem;
  color: var(--vst-color-muted);
}

.vst-product-features {
  margin-block: var(--vst-space-4) var(--vst-space-6);
}

.vst-product-features-title {
  font-weight: var(--vst-font-weight-bold);
  margin-bottom: var(--vst-space-2);
  color: var(--vst-color-heading);
}

.vst-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vst-space-4);
  margin-top: var(--vst-space-4);
}

/* Specifications Table styling */
.vst-product-specifications {
  margin-block: var(--vst-space-8) var(--vst-space-12);
  padding-top: var(--vst-space-8);
  border-top: 1px solid var(--vst-color-border);
}

.vst-product-specifications table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--vst-space-4);
  background: var(--vst-color-white);
  border-radius: var(--vst-radius-lg);
  overflow: hidden;
  border: 1px solid var(--vst-color-border);
}

.vst-product-specifications th,
.vst-product-specifications td {
  padding: var(--vst-space-3) var(--vst-space-4);
  border-bottom: 1px solid var(--vst-color-border);
  text-align: left;
  font-size: 0.95rem;
}

.vst-product-specifications tr:nth-child(even) {
  background-color: var(--vst-color-background-soft);
}

.vst-product-specifications th {
  font-weight: var(--vst-font-weight-bold);
  color: var(--vst-color-heading);
  width: 35%;
  background: var(--vst-color-primary-subtle);
}

/* Related Products Grid */
.vst-related-products {
  margin-block: var(--vst-space-12) var(--vst-space-10);
  padding-top: var(--vst-space-8);
  border-top: 1px solid var(--vst-color-border);
}

@media (max-width: 1200px) {
  .vst-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vst-product-hero {
    grid-template-columns: 1fr;
  }
  .vst-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .vst-product-grid {
    grid-template-columns: 1fr;
  }
}



