/* =====================================================================
   RISS — link-in-bio profile
   Sections:
   01 Tokens + reset            07 Stats
   02 Base + utilities          08 CTA
   03 Buttons                   09 Tabs + locked grid
   04 Ribbon background        10 Features
   05 Hero + profile card      11 Social proof
                                12 Instagram / FAQ / footer / sticky / join bar
                                13 Modals
                                14 Reveal + responsive + motion
   ===================================================================== */

/* ---------------------------------------------------------------
   01. TOKENS + RESET
--------------------------------------------------------------- */
:root {
  /* Palette — every colour on the page comes from these */
  --bg: #05030d;
  --rib-dark: #0a0a1c;
  --rib-mid: #12143a;
  --rib-lit: #2a2a9a;
  --edge-indigo: #5b5bff;
  --edge-violet: #8b5cf6;
  --edge-pink: #ff6fa5;
  --glass-bg: rgba(18, 18, 52, 0.38);
  --glass-border: rgba(139, 120, 255, 0.25);
  --text: #f2f0ff;
  --text-dim: #b8b4d9;

  /* Derived tints — mixed only from the palette above */
  --text-mute: #8b87b4;
  --text-accent: #c7c0ff;
  --edge-indigo-soft: rgba(91, 91, 255, 0.35);
  --edge-violet-soft: rgba(139, 92, 246, 0.35);
  --edge-pink-soft: rgba(255, 111, 165, 0.35);
  --bg-soft: rgba(10, 10, 28, 0.72);
  --cta-shadow: #3a2585;
  --glass-blur: 18px;
  --ink: var(--text);
  --ink-dim: var(--text-dim);
  --ink-mute: var(--text-mute);
  --rose: var(--text-accent);
  --green: #4ade80;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-display: "Sora", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-card: 0 28px 60px -24px rgba(0, 0, 0, 0.85);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 680px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-color: var(--edge-violet) var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3, p, blockquote, figure { margin: 0; }

button,
a { -webkit-tap-highlight-color: transparent; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; }

[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--edge-indigo), var(--edge-violet));
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--edge-violet);
  outline-offset: 3px;
  border-radius: 6px;
}

html.no-scroll { overflow: hidden; }

main:focus { outline: none; }

/* ---------------------------------------------------------------
   02. BASE + UTILITIES
--------------------------------------------------------------- */
/* Keep page content above the fixed background scene */
.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

@media (min-width: 520px) {
  .shell { width: min(100% - 48px, var(--shell)); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible { transform: translateY(0); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(139, 120, 255, 0.12);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-title--sm { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }

.section-sub {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: 46ch;
}

.section-head {
  margin-bottom: 22px;
}

.section-head .section-title { margin-top: 8px; }

/* 1px gradient rules between sections ---------------------------- */
.cta-block,
.content-section,
.features,
.social-proof,
.secondary,
.faq {
  position: relative;
}

.cta-block::before,
.content-section::before,
.features::before,
.social-proof::before,
.secondary::before,
.faq::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: min(100% - 40px, var(--shell));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--edge-violet-soft) 22%,
    var(--edge-indigo-soft) 78%,
    transparent
  );
  pointer-events: none;
}

/* ---------------------------------------------------------------
   03. BUTTONS
--------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s;
  touch-action: manipulation;
  user-select: none;
}

.btn__icon,
.btn__chevron {
  flex: none;
  width: 21px;
  height: 21px;
}

.btn__label { position: relative; z-index: 2; }

.btn__icon { position: relative; z-index: 2; }

.btn__chevron {
  width: 17px;
  height: 17px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease-out);
}

/* Primary 3D CTA ------------------------------------------------ */
.btn--cta {
  color: #fff;
  padding-bottom: 16px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, var(--edge-pink) 0%, var(--edge-violet) 55%, var(--edge-indigo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 6px 0 var(--cta-shadow),
    0 14px 34px -8px rgba(139, 92, 246, 0.6);
  text-shadow: 0 1px 0 rgba(20, 4, 60, 0.35);
}

.btn--cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: radial-gradient(circle at 50% 40%, rgba(199, 183, 255, 0.5), transparent 62%);
  opacity: 0;
  animation: ctaPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.btn--cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 7px 0 var(--cta-shadow),
    0 20px 44px -8px rgba(139, 92, 246, 0.7);
}

.btn--cta:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 0 var(--cta-shadow),
    0 6px 18px -6px rgba(139, 92, 246, 0.55);
}

.btn--cta .btn__icon { filter: drop-shadow(0 2px 4px rgba(20, 4, 60, 0.35)); }

.btn--xl {
  width: 100%;
  min-height: 64px;
  padding: 19px 22px 22px;
  font-size: clamp(1.02rem, 3.9vw, 1.18rem);
  gap: 12px;
}

.btn--sm {
  min-height: 44px;
  padding: 11px 20px 13px;
  font-size: 0.92rem;
}

/* Shine sweep --------------------------------------------------- */
.btn__shine {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -40%;
  width: 34%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg) translateX(-220%);
  animation: shine 4.6s ease-in-out infinite;
  pointer-events: none;
}

/* Ghost --------------------------------------------------------- */
.btn--ghost {
  min-height: 48px;
  color: var(--ink-dim);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(139, 120, 255, 0.45);
  background: rgba(18, 18, 52, 0.55);
}

.btn--ghost:active { transform: translateY(2px); }

/* Instagram gradient border ------------------------------------- */
.btn--instagram {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background:
    linear-gradient(150deg, rgba(18, 18, 52, 0.94), rgba(5, 3, 13, 0.94)) padding-box,
    linear-gradient(115deg, var(--edge-pink), var(--edge-violet) 58%, var(--edge-indigo)) border-box;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 18px 40px -24px rgba(139, 92, 246, 0.65);
}

.btn--instagram .btn__chevron { margin-left: auto; }

.btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -24px rgba(139, 92, 246, 0.8);
}

.btn--instagram:hover .btn__chevron { transform: translateX(3px); }

.btn--instagram:active { transform: translateY(1px) scale(0.995); }

.btn--instagram .btn__icon { color: var(--edge-pink); }

.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  opacity: 0.9;
  animation: ripple 0.62s ease-out forwards;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   04. RIBBON BACKGROUND
--------------------------------------------------------------- */
/* ===== FEATURE:RIBBONS START ===== */
/* Fixed procedural neon-ribbon canvas painted by script.js.
   No filters, blends or transitions on the canvas itself. */
#bg-ribbons {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg);
  pointer-events: none;
}

/* Sits above the canvas, below the content: calmer centre behind text */
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 3, 13, 0.6) 0%,
    rgba(5, 3, 13, 0.3) 55%,
    transparent 100%
  );
}
/* ===== FEATURE:RIBBONS END ===== */

/* ---------------------------------------------------------------
   05. HERO + PROFILE CARD
--------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: max(14px, env(safe-area-inset-top));
}

.hero__frame {
  width: min(100% - 24px, 760px);
  margin-inline: auto;
}

.hero__banner {
  position: relative;
  height: clamp(158px, 32vw, 236px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: translate3d(0, 0, 0);
}

.hero__banner-fallback {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 52% at 22% 30%, rgba(255, 111, 165, 0.8), transparent 62%),
    radial-gradient(42% 58% at 74% 22%, rgba(139, 92, 246, 0.85), transparent 64%),
    radial-gradient(48% 60% at 62% 88%, rgba(91, 91, 255, 0.6), transparent 66%),
    radial-gradient(40% 50% at 18% 82%, rgba(42, 42, 154, 0.85), transparent 62%),
    linear-gradient(140deg, var(--rib-mid), var(--rib-dark) 55%, var(--bg));
  background-size: 180% 180%;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

.hero__banner-img {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease;
  transform: translate3d(0, var(--sy, 0px), 0) scale(1.04);
  will-change: transform;
}

.hero__banner-img.is-loaded { opacity: 1; }

.hero__banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 13, 0.05) 0%, rgba(5, 3, 13, 0.32) 62%, var(--bg) 100%),
    radial-gradient(80% 60% at 50% 110%, var(--bg), transparent 60%);
}

.hero__spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 3px rgba(199, 192, 255, 0.85);
  opacity: 0.8;
  animation: twinkle 4s ease-in-out infinite;
}

.hero__spark--a { left: 18%; top: 28%; }
.hero__spark--b { right: 22%; top: 46%; animation-delay: 1.4s; width: 5px; height: 5px; }
.hero__spark--c { left: 64%; top: 18%; animation-delay: 2.6s; width: 4px; height: 4px; }

.profile-card {
  position: relative;
  margin-top: -54px;
  padding: 20px 20px 26px;
  border-radius: var(--radius-xl);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--edge-indigo), var(--edge-violet) 45%, var(--edge-pink));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.profile-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 16%;
  z-index: 3;
  width: 96px;
  height: 2px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--edge-pink), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.is-tilting .glare { opacity: 1; }

.profile-card__avatar {
  position: relative;
  width: 118px;
  height: 118px;
  margin: -58px auto 14px;
  transform: translateZ(34px);
}

.avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--edge-indigo),
    var(--edge-violet),
    var(--edge-pink),
    var(--rib-lit),
    var(--edge-violet),
    var(--edge-indigo)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 7s linear infinite;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.55));
}

.avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--edge-violet), var(--rib-lit) 58%, var(--rib-dark));
  border: 3px solid var(--bg);
  box-shadow: inset 0 -14px 26px rgba(5, 3, 13, 0.55), 0 16px 30px -14px rgba(0, 0, 0, 0.85);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.avatar img.is-loaded { opacity: 1; }

.avatar__initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(10, 4, 40, 0.5);
  letter-spacing: 0.02em;
}

.avatar--initials .avatar__initials { display: block; }

.online-dot {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: onlinePulse 2.6s ease-out infinite;
}

.profile-card__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transform: translateZ(22px);
}

.verified {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
  transform: translateY(1px);
}

.profile-card__handle {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-accent);
  letter-spacing: 0.04em;
  transform: translateZ(16px);
}

.profile-card__tagline {
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: 1rem;
  color: var(--ink-dim);
  transform: translateZ(12px);
}

.profile-card__location {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  transform: translateZ(10px);
}

.profile-card__location svg { width: 14px; height: 14px; color: var(--edge-violet); }

/* ---------------------------------------------------------------
   06. STATS
--------------------------------------------------------------- */
.stats-section {
  margin-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  position: relative;
  padding: 12px 4px 11px;
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(139, 120, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.stat__icon {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 6px;
  color: var(--edge-violet);
  opacity: 0.95;
}

.stat__icon svg {
  width: 100%;
  height: 100%;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 4.2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--text), var(--text-accent) 70%, var(--edge-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(91, 91, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------
   07. CTA BLOCK
--------------------------------------------------------------- */
.cta-block {
  margin-top: 40px;
}

.cta-block .shell { text-align: center; }

.cta-block__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 10px;
}

.cta-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto 22px;
}

.cta-block__title span {
  background: linear-gradient(100deg, var(--edge-pink), var(--text-accent) 55%, var(--edge-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-block__button {
  max-width: 460px;
  margin-inline: auto;
}

.trust-line {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.trust-line i {
  font-style: normal;
  color: rgba(139, 120, 255, 0.45);
}

.cta-block__micro {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------
   08. TABS + LOCKED GRID
--------------------------------------------------------------- */
.content-section {
  margin-top: 54px;
}

.content-section__head { margin-bottom: 20px; }

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tabs__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: linear-gradient(160deg, var(--edge-violet), var(--edge-indigo));
  box-shadow: 0 8px 20px -8px rgba(91, 91, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-out);
}

.tabs[data-active="media"] .tabs__pill { transform: translateX(100%); }

.tab {
  position: relative;
  z-index: 1;
  padding: 11px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.25s ease, transform 0.2s var(--ease-out);
}

.tab[aria-selected="true"] { color: #fff; }

.tab:active { transform: scale(0.98); }

.grid {
  columns: 2;
  column-gap: 10px;
}

@media (min-width: 560px) { .grid { columns: 3; } }
@media (min-width: 900px) { .grid { columns: 4; } }

.grid:focus-visible { outline-offset: 6px; }

/* Tile ---------------------------------------------------------- */
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--glass-border);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(139, 120, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
  will-change: transform;
  text-align: left;
  cursor: pointer;
}

.tile--wide { aspect-ratio: 1 / 1; }
.tile--tall { aspect-ratio: 3 / 4.6; }

.tile:hover,
.tile:focus-visible {
  border-color: rgba(139, 120, 255, 0.45);
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, 0.95), 0 0 30px -12px rgba(139, 92, 246, 0.6);
}

.tile:active { transform: scale(0.985); }

.tile__art {
  position: absolute;
  inset: -14%;
  filter: blur(18px) saturate(135%);
  opacity: 0.88;
  transform: scale(1.06) translateZ(0);
}

.tile__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 13, 0.12) 0%, rgba(5, 3, 13, 0.35) 45%, rgba(5, 3, 13, 0.82) 100%),
    radial-gradient(70% 55% at 50% 40%, rgba(5, 3, 13, 0.1), rgba(5, 3, 13, 0.55));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.tile__glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(199, 192, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}

.tile.is-tilting .tile__glare,
.tile:hover .tile__glare { opacity: 0.75; }

.tile__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transform: translateZ(24px);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 10, 28, 0.55);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pill svg { width: 11px; height: 11px; }

.pill--locked {
  color: #e3d9ff;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(42, 42, 154, 0.45);
}

.tile__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, rgba(139, 120, 255, 0.28), rgba(18, 18, 52, 0.35));
  border: 1px solid rgba(139, 120, 255, 0.5);
  box-shadow:
    0 12px 26px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 30px -6px rgba(139, 92, 246, 0.65);
  transform: translateZ(40px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tile__lock::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(199, 192, 255, 0.35);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.tile:hover .tile__lock::before,
.tile:focus-visible .tile__lock::before { opacity: 1; transform: scale(1.12); }

.tile__lock svg {
  width: 24px;
  height: 24px;
}

.tile__meta {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(242, 240, 255, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transform: translateZ(18px);
  pointer-events: none;
}

.tile__meta svg { width: 12px; height: 12px; color: var(--edge-pink); }

/* Lock shake feedback */
.tile.is-shaking .tile__lock { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.tile.is-shaking { border-color: rgba(255, 111, 165, 0.7); }

/* Ribbon-style art palettes (CSS only, no photos) ---------------- */
.art-1  { background: linear-gradient(145deg, var(--edge-pink) 0%, var(--edge-violet) 55%, var(--rib-dark) 100%); }
.art-2  { background: linear-gradient(145deg, var(--edge-indigo) 0%, var(--rib-lit) 48%, var(--rib-dark) 100%); }
.art-3  { background: linear-gradient(145deg, var(--edge-violet) 0%, var(--edge-indigo) 52%, var(--rib-mid) 100%); }
.art-4  { background: linear-gradient(145deg, #ff9ec4 0%, var(--edge-pink) 46%, var(--rib-mid) 100%); }
.art-5  { background: linear-gradient(145deg, #c4b5fd 0%, var(--edge-violet) 45%, var(--rib-mid) 100%); }
.art-6  { background: linear-gradient(145deg, var(--rib-lit) 0%, var(--edge-indigo) 50%, var(--rib-dark) 100%); }
.art-7  { background: linear-gradient(145deg, #ffb3d1 0%, #b06bff 48%, var(--rib-mid) 100%); }
.art-8  { background: linear-gradient(145deg, #6b5bff 0%, var(--edge-violet) 45%, var(--rib-mid) 100%); }
.art-9  { background: linear-gradient(145deg, var(--edge-pink) 0%, var(--edge-indigo) 60%, var(--rib-dark) 100%); }
.art-10 { background: linear-gradient(145deg, #a5a1ff 0%, var(--edge-indigo) 50%, var(--rib-mid) 100%); }
.art-11 { background: linear-gradient(145deg, #ff9ec4 0%, var(--edge-violet) 52%, var(--rib-dark) 100%); }
.art-12 { background: linear-gradient(145deg, #7d7bff 0%, var(--rib-lit) 46%, var(--rib-dark) 100%); }

.grid__hint {
  margin-top: 14px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------
   09. FEATURES
--------------------------------------------------------------- */
.features {
  margin-top: 58px;
}

.features__grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}

.feature {
  position: relative;
  padding: 20px 18px 20px;
  border-radius: var(--radius-lg);
  perspective: 600px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}

.feature:hover { transform: translateY(-3px); border-color: rgba(139, 120, 255, 0.45); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  transform: rotateX(14deg) rotateY(-14deg);
  transform-style: preserve-3d;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease-out);
}

.feature:hover .feature__icon { transform: rotateX(6deg) rotateY(-6deg) translateZ(8px); }

.feature__icon svg { width: 21px; height: 21px; color: var(--rib-dark); }

.feature__icon--rose   { background: linear-gradient(150deg, #e0d9ff, #a78bfa 55%, #6d4aff); }
.feature__icon--violet { background: linear-gradient(150deg, #d6d0ff, #8b7bff 55%, var(--edge-indigo)); }
.feature__icon--pink   { background: linear-gradient(150deg, #ffd6e6, #ff8fbe 55%, var(--edge-pink)); }
.feature__icon--blue   { background: linear-gradient(150deg, #d9d6ff, #8f8dff 55%, #4b4bdd); }

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* ---------------------------------------------------------------
   10. SOCIAL PROOF
--------------------------------------------------------------- */
.social-proof { margin-top: 58px; }

.proof-card {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
}

.proof-count {
  background: linear-gradient(100deg, var(--edge-pink), var(--text-accent) 52%, var(--edge-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-avatars {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rib-dark);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}

.mini-avatar:first-child { margin-left: 0; }

.mini-avatar--1 { background: linear-gradient(150deg, #ffd6e6, var(--edge-pink)); }
.mini-avatar--2 { background: linear-gradient(150deg, #d6d0ff, var(--edge-indigo)); color: var(--text); }
.mini-avatar--3 { background: linear-gradient(150deg, #c4b5fd, var(--edge-violet)); }
.mini-avatar--4 { background: linear-gradient(150deg, #e0d9ff, #a78bfa); }
.mini-avatar--more {
  background: var(--glass-bg);
  color: var(--ink-dim);
  border-color: var(--glass-border);
  font-size: 0.9rem;
}

.testimonials {
  position: relative;
  min-height: 142px;
  margin-top: 12px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
  pointer-events: none;
}

.testimonial.is-active {
  opacity: 1;
  transform: none;
}

.testimonial p {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.6;
  max-width: 40ch;
  margin-inline: auto;
}

.testimonial footer {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.testimonial__todo {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-accent);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.proof-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.proof-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 120, 255, 0.28);
  transition: background 0.3s, width 0.3s;
}

.proof-dots span.is-active {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--edge-pink), var(--edge-violet));
}

/* ---------------------------------------------------------------
   11. INSTAGRAM / FAQ / FOOTER / STICKY / JOIN BAR
--------------------------------------------------------------- */
.secondary { margin-top: 46px; }

.secondary .section-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.faq { margin-top: 54px; }

.accordion {
  display: grid;
  gap: 10px;
}

.accordion__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.accordion__item.is-open { border-color: rgba(139, 120, 255, 0.45); }

.accordion__item h3 { margin: 0; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 17px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

.accordion__trigger:hover { color: var(--text-accent); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 120, 255, 0.12);
  border: 1px solid var(--glass-border);
  transition: transform 0.35s var(--ease-out), background 0.3s;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  margin: -0.75px 0 0 -4px;
  border-radius: 2px;
  background: var(--text-accent);
  transition: transform 0.3s ease;
}

.accordion__icon::after { transform: rotate(90deg); }

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  background: linear-gradient(150deg, var(--edge-violet), var(--edge-indigo));
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out);
}

.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__inner {
  overflow: hidden;
}

.accordion__inner p {
  padding: 0 17px 18px;
  font-size: 0.9rem;
  color: var(--ink-dim);
  max-width: 52ch;
}

.footer {
  position: relative;
  margin-top: 60px;
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 0;
  background: transparent;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-violet-soft), var(--edge-indigo-soft), transparent);
  pointer-events: none;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.footer__disclaimer {
  margin: 10px auto 0;
  max-width: 40ch;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--ink-dim);
}

.footer__links a {
  text-decoration: none;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer__links a:hover {
  color: var(--text);
  border-color: rgba(139, 120, 255, 0.5);
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--ink-mute);
}

@media (max-width: 759px) {
  /* Keep the footer clear of the floating CTA */
  .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* Sticky mobile CTA --------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(150deg, rgba(18, 18, 52, 0.92), rgba(5, 3, 13, 0.94));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95);
  transform: translateY(140%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.sticky-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.sticky-cta__text strong {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sticky-cta__text span {
  font-size: 0.68rem;
  color: var(--ink-mute);
}

.sticky-cta .btn--sm { flex: none; }

@media (min-width: 760px) {
  .sticky-cta { display: none; }
}

/* Join bar — glass CTA shown after the hero ---------------------- */
.join-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 65;
  width: min(calc(100% - 24px), 520px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: linear-gradient(140deg, rgba(18, 18, 52, 0.92), rgba(5, 3, 13, 0.95));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(139, 120, 255, 0.14);
  transform: translateY(140%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
}

.join-bar.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.join-bar__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--edge-pink);
  box-shadow: 0 0 0 0 rgba(255, 111, 165, 0.5);
  animation: joinPulse 2.4s ease-out infinite;
}

.join-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.join-bar__cta { flex: none; }

.join-bar__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-dim);
  background: rgba(139, 120, 255, 0.12);
  transition: background 0.2s, color 0.2s;
}

.join-bar__close svg { width: 12px; height: 12px; }

.join-bar__close:hover,
.join-bar__close:focus-visible {
  background: rgba(139, 120, 255, 0.24);
  color: var(--text);
}

/* Keep the floating CTA and footer clear of the join bar */
body.has-joinbar .sticky-cta {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

body.has-joinbar .footer {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (max-width: 759px) {
  body.has-joinbar .footer {
    padding-bottom: calc(190px + env(safe-area-inset-bottom));
  }
}

/* ---------------------------------------------------------------
   12. MODALS
--------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 13, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  animation: fadeIn 0.3s ease both;
}

.modal__card {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 32px 22px 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(18, 18, 52, 0.96), rgba(5, 3, 13, 0.97));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(139, 120, 255, 0.15);
  animation: cardIn 0.35s var(--ease-out) both;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-dim);
  background: rgba(139, 120, 255, 0.1);
  border: 1px solid var(--glass-border);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal__close:hover { background: rgba(139, 120, 255, 0.22); color: var(--text); }
.modal__close:active { transform: scale(0.94); }
.modal__close svg { width: 17px; height: 17px; }

.modal__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #f0e6ff;
  background: radial-gradient(circle at 35% 30%, rgba(199, 192, 255, 0.3), rgba(139, 92, 246, 0.18) 55%, transparent 75%);
  border: 1px solid rgba(139, 120, 255, 0.4);
  box-shadow: 0 0 40px -8px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.modal__icon svg { width: 27px; height: 27px; }

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 4.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.modal__text {
  margin: 12px auto 22px;
  max-width: 34ch;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.modal__cta { width: 100%; }

.modal__trust {
  margin-top: 14px;
  font-size: 0.7rem;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------
   13. REVEAL, SKELETON, RESPONSIVE, MOTION
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Skeleton shimmer while fonts / images boot */
.booting .avatar,
.booting .hero__banner {
  position: relative;
}

.booting .avatar::after,
.booting .hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(100deg, transparent 20%, rgba(139, 120, 255, 0.18) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
  pointer-events: none;
}

.booting .avatar::after { border-radius: 50%; }

@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -80% 0; } }

@keyframes ctaPulse {
  0%, 100% { opacity: 0.15; transform: scale(0.94); }
  50% { opacity: 0.35; transform: scale(1.03); }
}

@keyframes shine {
  0%, 62% { transform: skewX(-18deg) translateX(-220%); }
  82%, 100% { transform: skewX(-18deg) translateX(680%); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes joinPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 111, 165, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 111, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 111, 165, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.15); }
}

@keyframes auroraShift {
  from { background-position: 0% 20%; }
  to   { background-position: 100% 80%; }
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 40px) rotate(-3deg); }
  20%, 80% { transform: translate3d(4px, 0, 40px) rotate(3deg); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 40px) rotate(-5deg); }
  40%, 60% { transform: translate3d(6px, 0, 40px) rotate(5deg); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Tilt base ----------------------------------------------------- */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.5s var(--ease-out);
}

.tilt.is-tilting {
  transition: transform 0.08s linear;
}

/* Responsive ---------------------------------------------------- */
@media (min-width: 520px) {
  .profile-card { padding: 22px 26px 30px; }
  .stats { gap: 10px; }
  .stat { padding: 15px 6px 13px; }
  .stat__value { font-size: 1.34rem; }
  .stat__label { font-size: 0.68rem; }
}

@media (min-width: 760px) {
  .hero__frame { width: min(100% - 40px, 760px); }
  .profile-card { margin-top: -64px; padding: 26px 34px 34px; }
  .profile-card__avatar { width: 128px; height: 128px; margin-top: -64px; }
  .content-section { margin-top: 64px; }
  .features__grid { gap: 14px; }
  .feature { padding: 24px 22px; }
  .modal__card { padding: 36px 28px 28px; }
}

@media (max-width: 359px) {
  .stat__label { font-size: 0.6rem; letter-spacing: 0.06em; }
  .avatar { border-width: 2px; }
}

/* Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }

  .tilt,
  .tile { transform: none !important; }

  .btn__shine,
  .btn--cta::before { display: none; }
}

/* Print --------------------------------------------------------- */
@media print {
  #bg-ribbons,
  .bg-veil,
  .sticky-cta,
  .join-bar,
  .modal,
  .btn__shine { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ===== FEATURE:HOVER START ===== */
/* Banner hover (lift, glow, zoom, one-shot sweep) + button/icon pop.
   Desktop pointers only, so phones never get sticky hover states. */
.hero__banner {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}

.hero__banner::before {
  content: "";
  position: absolute;
  inset: -35% -60%;
  z-index: 5;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translate3d(-130%, 0, 0) rotate(6deg);
  opacity: 0;
  pointer-events: none;
}

.hero__banner-img {
  transition: opacity 0.8s ease, transform 0.6s var(--ease-out);
}

.btn__icon,
.btn__chevron,
.stat__icon,
.feature__icon {
  transition: transform 0.28s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero__banner:hover {
    z-index: 30;
    transform: translateY(-8px) scale(1.04);
    border-color: rgba(139, 120, 255, 0.45);
    box-shadow:
      0 40px 80px -34px rgba(255, 111, 165, 0.5),
      0 24px 50px -30px rgba(91, 91, 255, 0.45);
  }

  .hero__banner:hover .hero__banner-img {
    transform: translate3d(0, var(--sy, 0px), 0) scale(1.1);
  }

  .hero__banner:hover::before {
    opacity: 1;
    animation: hoverSweep 1.1s var(--ease-out);
  }

  .btn:hover .btn__icon { transform: scale(1.16) rotate(-6deg); }
  .btn:hover .btn__chevron { transform: translateX(5px) scale(1.08); }
  .btn:hover .btn__shine { animation-duration: 1.5s; }

  .btn--cta:hover { transform: translateY(-2px) scale(1.02); }
  .btn--instagram:hover { transform: translateY(-3px) scale(1.015); }

  .stat:hover .stat__icon { transform: translateY(-3px) scale(1.18) rotate(-5deg); }

  .feature:hover .feature__icon {
    transform: rotateX(6deg) rotateY(-6deg) translateZ(8px) scale(1.07);
  }
}

@keyframes hoverSweep {
  from { transform: translate3d(-130%, 0, 0) rotate(6deg); }
  to   { transform: translate3d(160%, 0, 0) rotate(6deg); }
}
/* ===== FEATURE:HOVER END ===== */
