:root {
  --bg: #fbfbfc;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f6;
  --border: rgba(15, 15, 20, 0.08);
  --text: #111114;
  --text-dim: #6b6b76;
  --text-faint: #9a9aa3;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-light: #eef0ff;
  --green: #16a34a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  width: 420px;
  height: 420px;
  background: rgba(99, 102, 241, 0.08);
  top: -120px;
  right: -80px;
}
.blob-2 {
  width: 380px;
  height: 380px;
  background: rgba(15, 15, 20, 0.04);
  bottom: -140px;
  left: -100px;
}
.blob-3 {
  width: 340px;
  height: 340px;
  background: rgba(99, 102, 241, 0.06);
  bottom: -100px;
  right: -60px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(251, 251, 252, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0f0f14;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
}
.logo-icon .bar {
  width: 3px;
  border-radius: 2px;
  background: #ffffff;
}
.logo-icon .bar-1 { height: 6px; }
.logo-icon .bar-2 { height: 12px; }
.logo-icon .bar-3 { height: 9px; }

.nav-cta {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

main {
  position: relative;
  z-index: 1;
}

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 80px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
}

.subhead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}

.email-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 2px 10px rgba(15, 15, 20, 0.04);
}
.email-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  padding: 10px 0;
}
.email-form input::placeholder {
  color: var(--text-faint);
}
.email-form button {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.email-form button:hover {
  transform: translateY(-1px) scale(1.03);
}
.email-form button:disabled {
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.avatar-stack {
  display: flex;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}
.avatar:first-child { margin-left: 0; }
.avatar-1 { background: #6366f1; }
.avatar-2 { background: #ec4899; }
.avatar-3 { background: #0f0f14; }
#counter {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* COLLAGE */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}
@keyframes riseIn {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.collage {
  position: relative;
  width: 420px;
  height: 390px;
  perspective: 1400px;
}
.collage::before {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.collage-floor {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -8px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15, 15, 20, 0.2), transparent 72%);
  z-index: 0;
}
.collage-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
}

.collage-item {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}
.collage-item.item-1 {
  width: 226px;
  height: 226px;
  top: 34px;
  left: 4px;
  --rot: -5deg;
  animation-duration: 6.4s;
  animation-delay: -1.2s;
  z-index: 40;
}
.collage-item.item-2 {
  width: 160px;
  height: 160px;
  top: 0;
  left: 246px;
  --rot: 9deg;
  animation-duration: 7.2s;
  animation-delay: -3.4s;
  z-index: 20;
}
.collage-item.item-3 {
  width: 176px;
  height: 176px;
  top: 206px;
  left: 196px;
  --rot: -7deg;
  animation-duration: 5.8s;
  animation-delay: -0.6s;
  z-index: 30;
}
.collage-item.item-4 {
  width: 116px;
  height: 116px;
  top: 254px;
  left: 0;
  --rot: 12deg;
  animation-duration: 6.8s;
  animation-delay: -2.1s;
  z-index: 10;
}

.collage-parallax {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease-out;
}

.collage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 34px rgba(15, 15, 20, 0.24);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s ease;
}
.item-1 .collage-img { animation-delay: 0.05s; }
.item-2 .collage-img { animation-delay: 0.16s; border-radius: 22px; }
.item-3 .collage-img { animation-delay: 0.1s; border-radius: 22px; }
.item-4 .collage-img {
  animation-delay: 0.22s;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(15, 15, 20, 0.2);
}
.collage-img:hover {
  transform: scale(1.055) rotate(-1deg);
  box-shadow: 0 26px 46px rgba(15, 15, 20, 0.32);
  filter: brightness(1.03);
}

/* FEATURES */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(15, 15, 20, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 15, 20, 0.08);
}
.feature-icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* REFERRAL */
.referral {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 90px 24px;
  position: relative;
  z-index: 1;
}
.referral-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.referral h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.referral-sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 50px;
}

.referral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  text-align: left;
}
.referral-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(15, 15, 20, 0.03);
}
.referral-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.referral-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text);
}
.referral-card p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(15, 15, 20, 0.03);
}
.tier-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.tier-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.tier-perk {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

/* FINAL CTA */
.final-cta {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.final-cta h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text);
}
.final-cta .email-form {
  margin: 0 auto;
}

/* FOOTER */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .hero-content { max-width: 480px; }
  .subhead { margin-left: auto; margin-right: auto; }
  .email-form { margin: 0 auto; }
  .social-proof { justify-content: center; }
  .collage { width: 260px; height: 242px; }
  .collage-item.item-1 { width: 140px; height: 140px; top: 21px; left: 2px; }
  .collage-item.item-2 { width: 99px; height: 99px; top: 0; left: 153px; }
  .collage-item.item-3 { width: 109px; height: 109px; top: 128px; left: 122px; }
  .collage-item.item-4 { width: 72px; height: 72px; top: 158px; left: 0; }
  .features { grid-template-columns: 1fr; }
  .referral-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
}
