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

:root {
  --bg: #080810;
  --surface: #0f0f18;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #d62976;
  --accent2: #fa7e1e;
  --accent3: #833ab4;
  --ig-grad: linear-gradient(135deg, #833ab4, #d62976, #fa7e1e);
  --ig-grad-subtle: linear-gradient(
    135deg,
    rgba(131, 58, 180, 0.15),
    rgba(214, 41, 118, 0.15),
    rgba(250, 126, 30, 0.15)
  );
  --text: #f0f0f0;
  --muted: #60607a;
  --card-bg: #13131e;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--ig-grad);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.2s,
    height 0.2s,
    background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(214, 41, 118, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    left 0.12s ease,
    top 0.12s ease;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 20px;
  height: 20px;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s,
    padding 0.3s;
}
nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 16px 48px;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  font-family: "Geist", sans-serif;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-dot {
  color: #e8608a;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--ig-grad);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 10px 22px;
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 100px;
  cursor: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.2);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: glow-pulse 6s ease-in-out infinite;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #833ab4, #d62976);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fa7e1e, #d62976);
  bottom: -80px;
  left: -80px;
  animation-delay: 3s;
}
@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.08;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.1);
  }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8608a;
  background: rgba(214, 41, 118, 0.08);
  border: 1px solid rgba(214, 41, 118, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--ig-grad);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: clamp(52px, 6vw, 90px);
  font-family: "Geist", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.1s ease both;
}
.hero-title em {
  font-family: "Geist", sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -2px;
  background: var(--ig-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 40px;
  font-weight: 400;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: fade-up 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ig-grad);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 100px;
  cursor: none;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(214, 41, 118, 0.35);
}
.btn-primary svg {
  transition: transform 0.2s;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
.btn-secondary:hover {
  color: var(--text);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PHONE MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 0.8s 0.2s ease both;
}

.phone-wrap {
  position: relative;
  width: 280px;
}

.phone {
  width: 280px;
  height: 580px;
  background: #13131e;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  border: 2px solid #3f3f3f;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #0a0a0f;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.phone-screen {
  padding: 0;
  height: calc(100% - 28px);
  overflow: hidden;
  background: #13131e;
}

/* Instagram-like UI inside phone */
.ig-header {
  background: #13131e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  color: white;
  gap: 10px;
  border-bottom: 1px solid #8c8c8c69;
}
.ig-back {
  font-size: 18px;
  color: #ffffff;
}
.ig-username {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}
.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.ig-profile {
  background: #13131e;
  padding: 14px;
  display: flex;
  color: white;
  gap: 16px;
  align-items: center;
}
.ig-profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #eee;
}
.ig-profile-avatar-img {
  height: 100%;
  width: 100%;
}
.ig-stats {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #222;
}
.ig-stat {
  display: flex;
  flex-direction: column;
  color: white;
  align-items: center;
}
.ig-stat strong {
  font-size: 14px;
  font-weight: 700;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.ig-cell {
  aspect-ratio: 1;
  background: #80808042;
  overflow: hidden;
  position: relative;
}
.ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card post - the magic one */
.ig-cell-magic {
  background: #1a1a25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playing-card {
  width: 56px;
  height: 80px;
  background: white;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: card-appear 1.2s 1s ease both;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.card-corner.top-left {
  top: 3px;
  left: 4px;
}
.card-corner.bot-right {
  bottom: 3px;
  right: 4px;
  transform: rotate(180deg);
}
.card-corner .cv {
  font-size: 8px;
  font-weight: 800;
  color: #c0392b;
  font-family: "Geist", sans-serif;
  line-height: 1.1;
}
.card-corner .cs {
  font-size: 7px;
  color: #c0392b;
  line-height: 1;
}
.queen-figure {
  width: 44px;
  height: 62px;
  background: url(../img/card.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

/* floating badges */
.badge-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}
.badge-1 {
  right: -100px;
  top: 80px;
  animation-delay: 0s;
}
.badge-2 {
  left: -100px;
  bottom: 140px;
  animation-delay: 2s;
}
.badge-icon {
  font-size: 16px;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* SECTION shared */
section {
  padding: 120px 48px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8608a;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 4vw, 64px);
  font-family: "Geist", sans-serif;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}
.section-title em {
  font-family: "Geist", sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -1px;
  background: var(--ig-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
}

/* HOW IT WORKS */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}

.step {
  background: var(--card-bg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.step:first-child {
  border-radius: 20px 0 0 20px;
}
.step:last-child {
  border-radius: 0 20px 20px 0;
}
.step:hover {
  border-color: rgba(214, 41, 118, 0.3);
}

.step-number {
  font-size: 72px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: "Geist", sans-serif;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--ig-grad-subtle);
  border: 1px solid rgba(214, 41, 118, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 64px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 40px;
  transition:
    border-color 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:first-child {
  border-radius: 20px 0 0 0;
}
.feature-card:nth-child(2) {
  border-radius: 0 20px 0 0;
}
.feature-card:nth-child(3) {
  border-radius: 0 0 0 20px;
}
.feature-card:last-child {
  border-radius: 0 0 20px 0;
}
.feature-card:hover {
  border-color: rgba(214, 41, 118, 0.2);
  background: rgba(131, 58, 180, 0.04);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 41, 118, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* TESTIMONIALS / SOCIAL PROOF */

/* CTA SECTION */
.cta-section {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    ellipse,
    rgba(131, 58, 180, 0.1) 0%,
    rgba(214, 41, 118, 0.07) 40%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner .section-title {
  font-size: clamp(40px, 5vw, 72px);
}
.cta-inner .section-sub {
  margin: 20px auto 40px;
  text-align: center;
  max-width: 420px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  nav {
    padding: 20px 24px;
  }
  nav.scrolled {
    padding: 14px 24px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 80px 24px;
  }
  .hero {
    padding: 100px 24px 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  .hero-visual {
    order: -1;
  }
  .badge-1,
  .badge-2 {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .step:first-child {
    border-radius: 20px 20px 0 0;
  }
  .step:last-child {
    border-radius: 0 0 20px 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card:first-child,
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:last-child {
    border-radius: 0;
  }
  .features-grid .feature-card:first-child {
    border-radius: 16px 16px 0 0;
  }
  .features-grid .feature-card:last-child {
    border-radius: 0 0 16px 16px;
  }
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.ig-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

footer > div {
  min-width: 20%;
}

footer > div:nth-child(2) {
  display: flex;
  justify-content: center;
}
footer > div:nth-child(3) {
  display: flex;
  justify-content: right;
}
span.footer-year {
  margin-right: 0.2rem;
}
