/* ============ Chloe Mitchell — Creator Hub ============ */

:root {
  --ivory: #fbf7f1;
  --cream: #f3eade;
  --beige: #e9dcc9;
  --blush: #f1d9d3;
  --blush-deep: #e6bfb6;
  --taupe: #b9a894;
  --ink: #3a332c;
  --ink-soft: #6b6055;
  --white: #ffffff;
  --gold: #c9a86a;
  --shadow-soft: 0 20px 45px -20px rgba(58, 51, 44, 0.28);
  --shadow-lift: 0 30px 60px -25px rgba(58, 51, 44, 0.35);
  --radius-lg: 32px;
  --radius-md: 22px;
  --font-display: "Marcellus", "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

button { font-family: inherit; border: none; background: none; cursor: pointer; }

.phone-frame {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fdfbf8 0%, var(--ivory) 30%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0,0,0,0.06);
}

@media (min-width: 560px) {
  body {
    background: linear-gradient(160deg, #efe6d8, #dfd2bf);
    padding: 32px 0;
  }
  .phone-frame {
    border-radius: 40px;
    box-shadow: 0 40px 90px -20px rgba(58,51,44,0.35), 0 0 0 1px rgba(255,255,255,0.4) inset;
    min-height: auto;
  }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.24,1), transform 0.9s cubic-bezier(.16,.8,.24,1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  max-height: 640px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

#hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.06);
  transition: transform 0.2s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(251,247,241,0.05) 0%,
    rgba(251,247,241,0.05) 45%,
    rgba(251,247,241,0.55) 78%,
    rgba(251,247,241,0.92) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 78px;
  text-align: center;
  padding: 0 24px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 6px;
  text-shadow: 0 2px 20px rgba(251,247,241,0.6);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.hero-handle {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0;
}

/* ---------- PROFILE OVERLAP ---------- */
.profile-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -68px;
  z-index: 5;
}

.profile-ring {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(160deg, var(--white), var(--cream) 60%, var(--blush));
  box-shadow: var(--shadow-lift);
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
}

.verified-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(150deg, #d9d0c2, #b9a894);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px rgba(58,51,44,0.25);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 26px 34px 6px;
  text-align: center;
}

.about p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- SOCIAL BUTTONS ---------- */
.socials {
  padding: 30px 24px 6px;
}

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

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 13px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.75), rgba(255,255,255,0.35));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 28px -14px rgba(58,51,44,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.35s ease, background 0.35s ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 36px -16px rgba(58,51,44,0.28), 0 0 0 1px rgba(201,168,106,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
}

.social-btn:active { transform: translateY(-1px) scale(0.96); }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
  box-shadow: 0 1px 4px rgba(58,51,44,0.15) inset;
}

.social-icon svg { width: 19px; height: 19px; }

.social-label {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  font-weight: 500;
}

.social-btn.private {
  background: linear-gradient(160deg, rgba(241,217,211,0.85), rgba(233,192,182,0.5));
  border-color: rgba(230,191,182,0.7);
}
.social-btn.private:hover {
  background: linear-gradient(160deg, rgba(241,217,211,0.95), rgba(233,192,182,0.65));
  box-shadow: 0 18px 36px -16px rgba(58,51,44,0.28), 0 0 22px rgba(230,191,182,0.55), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ---------- FEATURED CARD ---------- */
.featured {
  padding: 34px 24px 30px;
}

.featured-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s cubic-bezier(.2,.85,.3,1.15), box-shadow 0.5s ease;
}

.featured-card:hover {
  transform: scale(1.018) translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.featured-card:active { transform: scale(0.985); }

.featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

#featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.1);
  animation: slowzoom 16s ease-in-out infinite alternate;
}

@keyframes slowzoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.22); }
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    190deg,
    rgba(251,247,241,0.12) 0%,
    rgba(251,247,241,0.05) 40%,
    rgba(58,51,44,0.55) 100%
  );
}

.featured-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: -100% -100%;
  transition: background-position 1.1s ease;
  pointer-events: none;
}

.featured-card:hover .featured-shimmer {
  background-position: 120% 120%;
}

.featured-text {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.featured-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.featured-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.9);
}

/* ---------- MAIN BUTTON ---------- */
.main-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 18px 0;
  text-align: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #4a3d2e;
  background: linear-gradient(160deg, #f7efe3, #e9d6c4 55%, #ddc2a8);
  box-shadow: 0 16px 30px -12px rgba(180,142,96,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.35s ease;
}

.main-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 66%);
  background-size: 220% 220%;
  background-position: -120% -120%;
  transition: background-position 0.8s ease;
}

.main-btn:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 22px 40px -14px rgba(180,142,96,0.55), inset 0 1px 0 rgba(255,255,255,0.8);
}
.main-btn:hover::after { background-position: 120% 120%; }
.main-btn:active { transform: translateY(0) scale(0.97); }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 8px 0 40px;
}
.footer p {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
}

/* ---------- AGE VERIFICATION MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58,51,44,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(165deg, #fffdf9, var(--ivory));
  border-radius: 26px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(58,51,44,0.45);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2);
  border: 1px solid rgba(255,255,255,0.6);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: var(--ink);
}

.modal-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 13px 0;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-btn.leave {
  background: rgba(58,51,44,0.06);
  color: var(--ink-soft);
}
.modal-btn.leave:hover { background: rgba(58,51,44,0.1); }

.modal-btn.continue {
  background: linear-gradient(160deg, #f7efe3, #e9d6c4 55%, #ddc2a8);
  color: #4a3d2e;
  box-shadow: 0 12px 22px -10px rgba(180,142,96,0.5);
}
.modal-btn.continue:hover { transform: translateY(-2px); }
.modal-btn:active { transform: scale(0.95); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-media, .featured-card, .social-btn, .main-btn, #featured-img {
    transition: none !important;
    animation: none !important;
  }
}
