/*
  Catgirl Crew — Mewtenance Page
  - soft pastel, glass card
  - responsive hero + gallery
  - accessible typography + motion-safe animations
*/

:root {
  --bg1: #fdf1f6;
  --bg2: #efe9ff;
  --ink: #3b3b3b;
  --muted: #6a6a6a;
  --pink: #e75480;
  --hot: #ff69b4;
  --card: rgba(255, 255, 255, 0.86);
  --border: rgba(255, 255, 255, 0.7);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Segoe UI', 'Comic Sans MS', 'Comic Neue', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 900px at 10% 10%, rgba(255, 154, 200, 0.20), transparent 55%),
              radial-gradient(900px 700px at 90% 20%, rgba(170, 154, 255, 0.22), transparent 55%),
              linear-gradient(120deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* Ambient blobs */
.bg-blob {
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.blob-a { left: -160px; top: -160px; background: rgba(255, 105, 180, 0.35); }
.blob-b { right: -220px; top: 40px; background: rgba(160, 140, 255, 0.33); }
.blob-c { left: 25%; bottom: -260px; background: rgba(255, 190, 210, 0.30); }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  font-size: 18px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  font-weight: 700;
}

.status-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 6px rgba(255, 105, 180, 0.18);
}

.shell {
  width: min(1120px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.2vw, 34px);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.hero-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.06;
  color: var(--pink);
  text-shadow: 2px 2px rgba(255,255,255,0.9);
}

.lead {
  margin: 0 0 18px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #424242;
}

.progress {
  border-radius: 20px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.progress-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-label {
  color: var(--muted);
  font-weight: 700;
}

.progress-task {
  font-weight: 800;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,105,180,0.95), rgba(170,154,255,0.95));
  transition: width 600ms ease;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.tip { color: var(--muted); font-weight: 600; }

.skip {
  color: var(--hot);
  font-weight: 800;
  text-decoration: none;
}

.skip:hover { text-decoration: underline; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.08);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.10);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, rgba(231,84,128,0.95), rgba(255,105,180,0.95));
}

.btn.ghost {
  color: var(--pink);
  background: rgba(255,255,255,0.75);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini {
  border-radius: 20px;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.85);
}

.mini-icon { font-size: 1.25rem; }

.mini h2 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}

.mini p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-art .frame {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.caption {
  padding: 12px 14px 14px;
  font-weight: 800;
  color: var(--muted);
}

/* Sections */
.section-head {
  margin: 26px 0 14px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(0,0,0,0.10);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
}

.card figcaption {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.card figcaption strong { font-size: 1.05rem; }
.card figcaption span { color: var(--muted); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.qa {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 10px 12px;
}

.qa summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--pink);
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: '▾';
  float: right;
  color: rgba(231,84,128,0.85);
}

.qa[open] summary::after { content: '▴'; }

.qa-body p {
  margin: 10px 0 2px;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */
.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.footer-line {
  margin: 0 0 8px;
  font-weight: 900;
}

.fineprint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.noscript {
  margin: 14px auto 0;
  width: min(1120px, 100%);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mini-cards { grid-template-columns: 1fr; }
  .gallery .grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .topbar { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .progress-fill { transition: none; }
}
