/* ===== Funnel Styles ===== */
:root {
  --bg: #0f1020;
  --card: #141633;
  --accent: #ff2fb3;
  --text: #e8ecff;
  --muted: #9aa3b2;
  --success: #00d18f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.header {
  padding: 8px 0 16px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.logo { display:flex; align-items:center; gap:12px; }
.logo-badge { width:36px; height:36px; border-radius:50%; background: radial-gradient(80% 80% at 30% 30%, #3a3db8, #171955); display:grid; place-items:center; font-weight:800; }
.logo-badge span { color:#fff; }
.logo-text { font-weight: 800; letter-spacing: 0.3px; }
.tagline { color: var(--muted); font-size: 14px; }

/* Grid of models */
.grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax(180px, 1fr) );
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display:block; background:#22253f; }
.card .meta { padding: 10px 12px 12px; display:flex; align-items:center; justify-content:space-between; }
.card .name { font-weight: 700; font-size: 15px; }
.badge { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); border:1px solid rgba(255,255,255,0.06); }

/* CTA bar */
.cta-bar {
  margin: 18px 0 8px; padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255,47,179,0.12), rgba(0,209,143,0.10));
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.cta-bar b { color: var(--text); }
.cta-bar .btn {
  background: var(--accent); color: white; border: none; padding: 10px 14px;
  border-radius: 999px; font-weight: 700; cursor: pointer;
}
/* Button Styles */
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-right: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  display: inline-block;
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-blue {
  background: #3b82f6 !important;
  color: white;
  border: 1px solid #3b82f6;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  display: inline-block;
  transform: translateY(0);
}

.btn-blue:hover {
  background: #2563eb !important;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Model page */
.hero {
  display:grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch;
}
.hero .pic {
  background: #191b3d; border-radius: 16px; overflow:hidden; border: 1px solid rgba(255,255,255,0.08);
}
.hero .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px;
}
.title { font-size: 28px; margin: 4px 0 2px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 14px; }

/* Fake chat box */
.chat {
  background: #0e1128;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 12px; height: 260px; display:flex; flex-direction:column; gap:10px; overflow:auto;
}
.msg { max-width: 78%; padding: 10px 12px; border-radius: 12px; }
.msg.user { margin-left: auto; background: rgba(255,255,255,0.08); }
.msg.bot  { background: rgba(0,209,143,0.10); border: 1px solid rgba(0,209,143,0.25); }

.input {
  display:flex; gap: 8px; margin-top: 10px;
}
.input input {
  flex:1; background: transparent; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 12px 14px; color: var(--text);
}
.input button { padding: 12px 16px; border-radius: 999px; border: none; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }

/* Join modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  width: min(520px, 92vw); background: #0f1230; border-radius: 18px; padding: 24px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 80px rgba(0,0,0,.6); position: relative; max-height: 90vh; display: flex; flex-direction: column;
}
.modal h3 { margin: 6px 0 8px; font-size: 24px; font-weight: 900; }
.modal p { color: var(--muted); margin: 0 0 14px; }
.modal .join-copy { overflow-y: auto; margin-right: -12px; padding-right: 12px; flex: 1; }
.modal .join-copy p { margin: 0 0 12px; }
.modal .join-copy ul { margin: 0 0 12px 18px; padding: 0; }
.modal .join-copy li { margin: 6px 0; color: var(--muted); position: relative; }
.modal .join-copy li:before { content: '•'; color: var(--accent); position: absolute; left: -16px; }
.modal .actions { display: flex; gap: 10px; margin-top: 16px; }
.modal .actions .btn { 
  flex: 1; 
  text-align: center; 
  background: linear-gradient(90deg, var(--accent), #6b4df7); 
  color: #fff; 
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.close-x { position: absolute; right: 12px; top: 12px; background: transparent; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }

/* Bottom Sheet */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; z-index: 100;
}
.overlay.active { display: block; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: -100%; background: #0f1230; z-index: 101;
  border-top-left-radius: 18px; border-top-right-radius: 18px; padding: 16px;
  border: 1px solid rgba(255,255,255,.12); transition: bottom .22s ease;
  box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
.sheet.active { bottom: 0; }
.sheet .grab { width: 40px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.2); margin: 0 auto 10px; }
.sheet .join-copy { overflow-y: auto; padding-right: 8px; margin-right: -8px; flex: 1; }
.sheet h3 { margin: 6px 0 8px; font-size: 20px; font-weight: 900; }
.sheet p { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.sheet .actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet .actions .btn { 
  flex: 1; 
  background: linear-gradient(90deg, var(--accent), #6b4df7); 
  color: #fff; 
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.sheet .safe { height: env(safe-area-inset-bottom, 0); }

/* Sticky CTA - Removed as requested */

/* Responsive */
@media (max-width: 840px) {
  .container { padding: 14px; }
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .chat { height: 44vh; max-height: 360px; }
  
  .modal-backdrop {
    align-items: flex-end; padding: 0;
  }
  .modal {
    width: 100%; max-width: 100%; border-radius: 18px 18px 0 0;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  
  .sticky-cta {
    display: flex;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* Footer */
.footer {
  background-color: #0f1230;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}
