/* === CALCULATOR PANEL === */

/* ---- Segmented Picker ---- */
.glass-picker {
  display: flex;
  background: var(--glass-inset-bg, rgba(0, 0, 0, 0.25));
  border-radius: var(--radius-pill);
  padding: 4px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.glass-picker .picker-option {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  z-index: 1;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.glass-picker .picker-option.active {
  color: var(--text-primary, rgba(255, 255, 255, 0.95));
}

.picker-pill {
  position: absolute;
  background: var(--glass-gradient, linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 100%));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.45));
  box-shadow: var(--glass-shadow, 0 10px 30px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.62));
  border-radius: var(--radius-pill);
  transition: all var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  z-index: 0;
  pointer-events: none;
  top: 4px;
  bottom: 4px;
}

/* ---- Quantity Slider ---- */
.slider-section {
  margin-bottom: 24px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.slider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slider-value-display {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, rgba(255, 255, 255, 0.95));
  line-height: 1;
}

.slider-value-display span.unit-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  margin-left: 4px;
}

.slider-wrapper {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.slider-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible;
}

.slider-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-amber, #ff9500), var(--accent-cyan, #00c7ff));
  box-shadow: 0 0 10px rgba(0, 199, 255, 0.4);
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  transition: width 0.05s linear;
}

.slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  pointer-events: none;
  transition: transform 0.05s linear, box-shadow var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  z-index: 2;
}

.slider-thumb:active,
.slider-wrapper:active .slider-thumb {
  cursor: grabbing;
  box-shadow: 0 4px 16px rgba(0, 199, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1.15);
}

/* native range input (hidden, overlaid for interactivity) */
.slider-input-native {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  opacity: 0;
  cursor: grab;
  height: 24px;
  margin: 0;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}

.slider-input-native:active {
  cursor: grabbing;
}

/* Volume tier badges */
.volume-tiers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tier-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
  transition: all var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  white-space: nowrap;
}

.tier-badge.active-tier {
  background: rgba(0, 199, 255, 0.18);
  border-color: rgba(0, 199, 255, 0.5);
  color: var(--accent-cyan, #00c7ff);
  box-shadow: 0 0 8px rgba(0, 199, 255, 0.25);
}

/* ---- Glass Toggles ---- */
.toggles-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  line-height: 1.3;
  flex: 1;
}

.toggle-delta {
  font-size: 12px;
  color: var(--accent-cyan, #00c7ff);
  margin-top: 2px;
  display: block;
}

.glass-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1)),
              border-color var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  flex-shrink: 0;
}

.glass-toggle.on {
  background: var(--accent-blue, #007aff);
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toggle-knob {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  top: 2px;
  left: 3px;
  transition: left var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1)),
              transform var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.glass-toggle.on .toggle-knob {
  left: 23px;
}

/* ---- Price Card ---- */
.price-card {
  padding: 20px 24px;
  border-radius: var(--radius-card, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.price-display {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary, rgba(255, 255, 255, 0.95));
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.price-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  margin-bottom: 8px;
}

.price-total-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
  margin-bottom: 4px;
}

@keyframes priceFlash {
  0%   { opacity: 1; }
  30%  { opacity: 0.5; }
  100% { opacity: 1; }
}

.price-display.updating {
  animation: priceFlash 0.3s var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
}

/* ---- Calculator Panel section label ---- */
.calc-section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
  margin-bottom: 12px;
}

/* ---- Calculator Panel glass container ---- */
.calc-panel.glass {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

/* Btn prominent in calc */
.calc-panel .btn-prominent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.85) 0%, rgba(0, 122, 255, 0.55) 100%);
  border: 1px solid rgba(0, 122, 255, 0.7);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1)),
              filter var(--spring-duration, 0.25s) var(--spring, cubic-bezier(0.16, 1, 0.3, 1));
  margin-top: 16px;
}

.calc-panel .btn-prominent:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 8px 28px rgba(0, 122, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.calc-panel .btn-prominent:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

.btn-prominent .btn-icon {
  font-size: 18px;
  line-height: 1;
}


/* ═══════════════════════════════════════════════════════════════════════════
   GROUP ORDER PANEL + FINISHES GRID + MANIFESTO
   ═══════════════════════════════════════════════════════════════════════════ */


/* === GROUP ORDER PANEL === */

/* ─── Group Order Card Layout ───────────────────────────────────────────── */
.group-order-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

/* ─── Group Header ──────────────────────────────────────────────────────── */
.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9500 0%, #ff2d55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.group-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.group-header-title {
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-header-subtitle {
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-system);
  font-size: 11px;
  color: var(--text-secondary);
}

.progress-bar-label span:last-child {
  font-weight: 600;
  color: var(--accent-cyan);
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  box-shadow: 0 0 8px rgba(0, 199, 255, 0.5);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Glass Form Fields ─────────────────────────────────────────────────── */
.glass-field {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: var(--glass-border-subtle);
  border-radius: var(--radius-field);
  color: var(--text-primary);
  font-family: var(--font-system);
  font-size: 15px;
  outline: none;
  transition:
    border var(--spring-duration) var(--spring),
    box-shadow var(--spring-duration) var(--spring),
    background var(--spring-duration) var(--spring);
}

.glass-field::placeholder {
  color: var(--text-tertiary);
}

.glass-field:focus {
  border: var(--glass-border);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

select.glass-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.65)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select.glass-field option {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.95);
}

/* ─── Color Swatches ────────────────────────────────────────────────────── */
.color-swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch-label {
  font-family: var(--font-system);
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 4px;
  flex-basis: 100%;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color var(--spring-duration) var(--spring),
    box-shadow var(--spring-duration) var(--spring),
    transform var(--spring-duration) var(--spring);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.40);
}

.color-swatch[data-color="negro"] {
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.color-swatch[data-color="negro"].active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.40), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.color-swatch[data-color="blanco"]   { background: #f5f5f5; }
.color-swatch[data-color="cardinal"] { background: #9b1b30; }
.color-swatch[data-color="navy"]     { background: #001f5b; }

/* ─── Payment Button ────────────────────────────────────────────────────── */
.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 199, 255, 0.45);
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.75) 0%,
    rgba(0, 199, 255, 0.55) 100%
  );
  backdrop-filter: blur(var(--glass-blur-control));
  -webkit-backdrop-filter: blur(var(--glass-blur-control));
  color: rgba(255, 255, 255, 0.98);
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 122, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform var(--spring-duration) var(--spring),
    box-shadow var(--spring-duration) var(--spring),
    filter var(--spring-duration) var(--spring);
  user-select: none;
}

.btn-pay:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
  box-shadow:
    0 12px 32px rgba(0, 122, 255, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-pay:active {
  transform: scale(0.97);
  filter: brightness(0.95);
  box-shadow:
    0 4px 12px rgba(0, 122, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ─── Trust Badges ──────────────────────────────────────────────────────── */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-system);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}


/* === FINISHES GRID === */

/* ─── Grid Container ────────────────────────────────────────────────────── */
.finishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .finishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .finishes-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Individual Finish Card ────────────────────────────────────────────── */
.finish-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  background: var(--glass-gradient), var(--glass-tint);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--spring-duration) var(--spring),
    box-shadow var(--spring-duration) var(--spring);
}

.finish-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(var(--glass-blur-panel)) saturate(220%) brightness(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur-panel)) saturate(220%) brightness(1.15);
}

/* ─── Card Image Placeholder ────────────────────────────────────────────── */
.finish-card-img {
  height: 180px;
  border-radius: calc(var(--radius-card) - 4px) calc(var(--radius-card) - 4px) 0 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}

.finish-card-img-gradient {
  position: absolute;
  inset: 0;
  transition: filter var(--spring-duration) var(--spring);
}

.finish-card-img-gradient--amber {
  background: linear-gradient(
    135deg,
    rgba(255, 149, 0, 0.90) 0%,
    rgba(255, 59, 48, 0.75) 40%,
    rgba(10, 10, 20, 0.95) 100%
  );
}

.finish-card-img-gradient--cyan {
  background: linear-gradient(
    135deg,
    rgba(0, 199, 255, 0.85) 0%,
    rgba(0, 122, 255, 0.70) 40%,
    rgba(10, 10, 25, 0.95) 100%
  );
}

.finish-card-img-gradient--magenta {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 85, 0.85) 0%,
    rgba(175, 82, 222, 0.70) 40%,
    rgba(10, 10, 25, 0.95) 100%
  );
}

/* Specular highlight + noise overlay inside each card image */
.finish-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ─── Badge ─────────────────────────────────────────────────────────────── */
.finish-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-amber);
  color: #000000;
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.45);
}

.finish-card-badge--sold {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 199, 255, 0.45);
}

.finish-card-badge--free {
  background: var(--accent-magenta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.45);
}

/* ─── Overlay (slides up on hover) ─────────────────────────────────────── */
.finish-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.0) 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-family: var(--font-system);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.90);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--spring-duration) var(--spring),
    transform var(--spring-duration) var(--spring);
  pointer-events: none;
  z-index: 3;
  border-radius: calc(var(--radius-card) - 4px) calc(var(--radius-card) - 4px) 0 0;
}

.finish-card:hover .finish-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Card Body ─────────────────────────────────────────────────────────── */
.finish-card-body {
  padding: 14px 16px 16px;
}

.finish-card-title {
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.finish-card-subtitle {
  font-family: var(--font-system);
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ─── Icon Emoji inside card-img ────────────────────────────────────────── */
.finish-card-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}


/* === MANIFESTO SECTION === */

#manifesto {
  margin-top: 40px;
}

.manifesto-panel {
  padding: 48px 32px;
  backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  background: var(--glass-gradient), var(--glass-tint);
  border: var(--glass-border);
  border-radius: var(--radius-window);
  box-shadow: var(--glass-shadow-elevated);
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Top specular highlight line */
.manifesto-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.60) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.manifesto-title {
  font-family: var(--font-system);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.manifesto-body {
  font-family: var(--font-system);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px;
}

.manifesto-pillars {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.manifesto-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.manifesto-pillar-icon {
  font-size: 28px;
  line-height: 1;
}

.manifesto-pillar-text {
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}


/* === NAV === */

/* ── Floating capsule shell ──────────────────────────────── */
.nav-capsule {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);

  /* Glass material */
  backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-panel)) saturate(var(--glass-saturation));
  background: var(--glass-gradient), var(--glass-tint);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);

  /* Shape */
  border-radius: var(--radius-pill);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;

  /* Animate everything */
  transition: all var(--spring-duration) var(--spring);

  /* Prevent text selection on quick clicks */
  user-select: none;
}

/* Scrolled state — tighter, blurrier */
.nav-capsule.scrolled {
  backdrop-filter: blur(28px) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(28px) saturate(var(--glass-saturation));
  height: 48px;
  box-shadow: var(--glass-shadow-elevated);
}

/* ── Brand ───────────────────────────────────────────────── */
.nav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  padding: 0 12px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* ── Links container ─────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Individual link ─────────────────────────────────────── */
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background   var(--spring-duration) var(--spring),
    color        var(--spring-duration) var(--spring),
    border-color var(--spring-duration) var(--spring);
}

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

/* ── CTA button (smaller nav variant) ───────────────────── */
.nav-cta {
  margin-left: 4px;
  flex-shrink: 0;
  /* Override btn-glass sizing for the compact nav */
  font-size: 13px !important;
  padding: 8px 16px !important;
  min-height: unset !important;
  height: auto;
  line-height: 1;
}

/* ── Mobile — hide links, show only brand + CTA ──────────── */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-capsule {
    /* Allow capsule to shrink naturally */
    gap: 0;
  }

  .nav-brand {
    padding: 0 8px 0 12px;
  }
}
