/* ===========================================================
   Models page — cream + serif aesthetic
   =========================================================== */
:root {
  --cream:        #F5EFE5;
  --cream-warm:   #F0E9DB;
  --cream-card:   #FAF5EC;
  --ink:          #1E1B17;
  --ink-soft:     #3A3530;
  --ink-muted:    #6F6457;
  --brand:        #3b28cc;
  --brand-dark:   #2a1d9e;
  --brand-soft:   rgba(59,40,204,0.08);
  --rule:         #E6DECB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--cream); color: var(--ink); }
body.cream-body {
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.6rem; }

/* ============ Floating pill nav ============ */
.pill-nav-shell {
  position: sticky; top: 1rem; z-index: 100;
  padding: 0 1.4rem;
  margin-top: 1rem;
}
.pill-nav {
  max-width: 1100px; margin: 0 auto;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.55rem 0.75rem 0.55rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 6px 24px -10px rgba(30,27,23,0.12);
}
.pn-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.pn-logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: transparent; }
.pn-links { flex: 1; display: flex; justify-content: center; gap: 1.6rem; }
.pn-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; padding: 0.35rem 0.2rem; border-bottom: 2px solid transparent; }
.pn-links a:hover { color: var(--ink); }
.pn-links a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ============ Pill buttons ============ */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-pill:hover { transform: translateY(-1px); }
.btn-pill-primary { background: var(--brand); color: white; box-shadow: 0 8px 20px -8px rgba(59,40,204,0.55); }
.btn-pill-primary:hover { background: var(--brand-dark); color: white; }
.btn-pill-tiny { padding: 0.45rem 0.95rem; font-size: 0.78rem; }

/* ============ Models page content ============ */
.models-main { padding-top: 2.4rem; padding-bottom: 4rem; }

.back-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem;
  background: white; border: 1px solid var(--rule);
  border-radius: 100px;
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.6rem;
}
.back-pill:hover { color: var(--brand); border-color: var(--brand); }

.models-hero {
  text-align: center;
  padding: 2.5rem 1.4rem;
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: 28px;
  margin-bottom: 2rem;
}
.brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.5rem 1.1rem;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 100px;
  font-size: 0.86rem; font-weight: 700;
  margin-bottom: 1rem;
}
.brand-badge i { font-size: 1rem; }
.models-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.models-hero h1 em { font-style: italic; color: var(--brand); }
.models-sub { color: var(--ink-muted); font-size: 0.92rem; }

.brand-switch-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2rem;
}
.brand-btn {
  padding: 0.55rem 1.2rem;
  background: white;
  border: 1.5px solid var(--rule);
  border-radius: 100px;
  color: var(--ink-soft);
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.brand-btn:hover { border-color: var(--ink); color: var(--ink); }
.brand-btn.active {
  background: var(--brand); color: white; border-color: var(--brand);
  box-shadow: 0 6px 14px -6px rgba(59,40,204,0.5);
}

/* ============ Model grid ============ */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.model-card {
  position: relative;
  background: var(--cream-card);
  border: 1.5px solid var(--rule);
  border-radius: 20px;
  padding: 1.6rem 1rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.model-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(30,27,23,0.18);
}
.model-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.7rem;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 1.3rem;
}
.model-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.15;
}

.cream-footer-mini {
  text-align: center;
  padding: 2rem 1.6rem 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-top: 1px dashed var(--rule);
  margin-top: 2rem;
}

@media (max-width: 620px) {
  .pn-links { display: none; }
  .pn-logo span { display: none; }
  .models-hero { padding: 1.8rem 1rem; }
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .model-card { padding: 1.1rem 0.6rem 0.9rem; }
}
