/* ─── Models page ───────────────────────────────────────────────────── */

.models-hero {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--bg) 100%);
  padding: calc(var(--nav-h) + 80px) 24px 64px;
  text-align: center;
}
.models-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.models-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.models-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.models-title-accent {
  background: linear-gradient(135deg, #34C759 0%, #0071E3 50%, #5856D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.models-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* Series sections */
.models-series {
  padding: 80px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.models-series-alt { background: var(--surface-2); }
.series-inner { max-width: 1200px; margin: 0 auto; }
.series-header {
  text-align: center;
  margin-bottom: 56px;
}
.series-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.series-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}
.series-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.model-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.model-card-art {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface-2) 100%);
  color: var(--accent);
}
[data-theme="dark"] .model-card-art {
  background: linear-gradient(135deg, rgba(10,132,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}
.model-svg {
  width: 70%;
  height: 80%;
}

/* Tint variations per cavity size for visual differentiation */
.model-card-cavity:nth-child(1) .model-card-art { color: #34C759; }
.model-card-cavity:nth-child(2) .model-card-art { color: #0071E3; }
.model-card-cavity:nth-child(3) .model-card-art { color: #5856D6; }
.model-card-shelf:nth-child(1) .model-card-art { color: #FF9500; }
.model-card-shelf:nth-child(2) .model-card-art { color: #FF3B30; }
.model-card-shelf:nth-child(3) .model-card-art { color: #AF52DE; }

.model-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.model-size-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.model-size-badge-shelf {
  background: rgba(255,149,0,0.12);
  color: #FF9500;
}
[data-theme="dark"] .model-size-badge-shelf {
  background: rgba(255,159,10,0.18);
  color: #FF9F0A;
}
.model-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.model-card-blurb {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Spec table */
.model-spec {
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.model-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.model-spec-row:last-child { border-bottom: none; }
.model-spec-row dt {
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 11px;
}
.model-spec-row dd {
  color: var(--text-primary);
  font-weight: 600;
}

/* Species list */
.model-species { margin-top: auto; }
.model-species-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.model-species-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.model-species-list li {
  font-size: 12px;
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 500;
}
.model-species-more {
  background: transparent !important;
  color: var(--text-tertiary) !important;
  font-style: italic;
}

/* Anatomy section */
.models-system {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  position: relative;
}
.anatomy-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.anatomy-art {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.anatomy-art svg { width: 100%; height: 100%; }
.anatomy-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.anatomy-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Drops teaser */
.models-drops-teaser {
  padding: 80px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.drops-teaser-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}
.drops-teaser-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.drops-teaser-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.drops-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-primary);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.drops-teaser-link:hover { opacity: 0.85; }

.drops-teaser-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-stack {
  position: relative;
  width: 200px;
  height: 200px;
}
.panel-stack-item {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 130px;
  height: 130px;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--rot));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.panel-stack-item:nth-child(1) { z-index: 1; background: var(--bg); }
.panel-stack-item:nth-child(2) { z-index: 2; }
.panel-stack-item:nth-child(3) { z-index: 3; }
.panel-stack-item:nth-child(4) { z-index: 4; background: var(--bg); }
.panel-stack-item:nth-child(1) { background: var(--bg); border-color: #FF9500; }
.panel-stack-item:nth-child(2) { background: var(--bg); border-color: #0071E3; }
.panel-stack-item:nth-child(3) { background: var(--bg); border-color: #34C759; }
.panel-stack:hover .panel-stack-item:nth-child(1) { transform: rotate(-18deg) translate(-12px, -8px); }
.panel-stack:hover .panel-stack-item:nth-child(2) { transform: rotate(-6deg) translate(-4px, -2px); }
.panel-stack:hover .panel-stack-item:nth-child(3) { transform: rotate(8deg) translate(4px, 2px); }
.panel-stack:hover .panel-stack-item:nth-child(4) { transform: rotate(20deg) translate(12px, 8px); }
.panel-stack-item svg { width: 60%; height: 60%; }

/* Responsive */
@media (max-width: 880px) {
  .drops-teaser-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
  .drops-teaser-art { order: -1; }
}
@media (max-width: 640px) {
  .models-hero { padding: calc(var(--nav-h) + 56px) 20px 48px; }
  .models-title { font-size: 36px; }
  .models-sub { font-size: 16px; }
  .models-series,
  .models-system,
  .models-drops-teaser { padding: 56px 20px; }
  .series-title { font-size: 26px; }
  .drops-teaser-title { font-size: 26px; }
  .model-card-art { height: 180px; }
  .model-card-body { padding: 24px; }
}
