/* --- MINIMUM TECH SPECS (Apple-Style Bento) --- */

.mts-section {
  position: relative;
  background-color: var(--bg);
  padding: var(--space-7) var(--space-4);
  overflow: hidden;
}

.mts-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Header --- */
.mts-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-6);
}

.mts-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.mts-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand);
  animation: mts-breathe 3s ease-in-out infinite;
}

.mts-header h2 {
  font-size: var(--size-5);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.mts-text-gradient {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mts-header p {
  color: var(--text-muted);
  font-size: var(--size-2);
  line-height: 1.5;
}

/* --- Bento Grid --- */
.mts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  /* Make the first card span 2 columns if space allows */
}

@media (min-width: 768px) {
  .mts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-card { grid-column: span 1; } 
  .wide-card { grid-column: span 2; }
}

/* --- Card Component --- */
.mts-card {
  background: linear-gradient(145deg, var(--elev-2), var(--elev-1));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.mts-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

/* Internal Glow on Hover */
.mts-bg-glow {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mts-card:hover .mts-bg-glow { opacity: 1; }

/* Icon Squircle */
.mts-icon-squircle {
  width: 48px;
  height: 48px;
  border-radius: 14px; /* Squircle-ish */
  background: color-mix(in srgb, var(--elev-3) 50%, transparent);
  border: 1px solid var(--stroke-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s ease;
}
.mts-icon-squircle.small {
  width: 40px; height: 40px; border-radius: 12px;
}

.mts-card:hover .mts-icon-squircle {
  background: var(--brand);
  color: var(--bg); /* Dark icon on bright background */
  border-color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* Layouts */
.mts-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mts-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ok) 20%, transparent);
}

/* Typography */
.mts-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mts-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.mts-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.mts-sub-highlight {
  font-size: 0.85rem;
  color: var(--ok);
  font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.mts-sub-highlight::before {
  content: "✓"; font-weight: 800;
}

.mts-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Tags & Bars */
.mts-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--elev-1);
  border: 1px solid var(--stroke-2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mts-flex-row {
  display: flex; align-items: baseline; gap: 4px;
}

.mts-progress-track {
  width: 100%;
  height: 4px;
  background: var(--stroke);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.mts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 10px;
  animation: mts-slide 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transform-origin: left;
}

/* Wide Card Layout */
.mts-split-layout {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.mts-power-unit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mts-vertical-divider {
  width: 1px;
  height: 40px;
  background: var(--stroke-2);
}

/* Animations */
@keyframes mts-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes mts-slide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .mts-split-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mts-vertical-divider {
    width: 100%; height: 1px;
  }
}