/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ff6b9d;
  --rose: #c44569;
  --purple: #6c5ce7;
  --violet: #a855f7;
  --deep: #0a0118;
  --warm: #ff9a76;
  --glow: #f8b4d9;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--deep);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(255,107,157,0.3); color: #fff; }

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--deep);
  pointer-events: none; opacity: 0;
  transition: opacity 0.45s ease;
}
.page-transition.active { opacity: 1; pointer-events: all; }

/* ===== CURSOR ===== */
.cursor {
  position: fixed; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  pointer-events: none; z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--bounce), height 0.35s var(--bounce);
  mix-blend-mode: screen; will-change: left, top;
}
.cursor-dot {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; pointer-events: none; z-index: 100001;
  transform: translate(-50%, -50%); opacity: 0.9; will-change: left, top;
}
.cursor.hovering { width: 56px; height: 56px; background: radial-gradient(circle, rgba(255,107,157,0.3), transparent 70%); }
.cursor.clicking { width: 14px; height: 14px; transition: width 0.1s, height 0.1s; }

/* ===== BACKGROUND ===== */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; will-change: transform; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, var(--pink), transparent 70%); top: -15%; left: -15%; animation: orb-drift-1 25s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, var(--purple), transparent 70%); bottom: -15%; right: -15%; animation: orb-drift-2 30s ease-in-out infinite; }
.orb-3 { width: 450px; height: 450px; background: radial-gradient(circle, var(--warm), transparent 70%); top: 40%; left: 40%; animation: orb-drift-3 22s ease-in-out infinite; }
.orb-4 { width: 300px; height: 300px; background: radial-gradient(circle, var(--violet), transparent 70%); top: 20%; right: 20%; animation: orb-drift-1 35s ease-in-out infinite reverse; opacity: 0.2; }

.noise {
  position: fixed; inset: 0; z-index: 1; opacity: 0.025; pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}

#hearts-canvas { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,1,24,0.85) 0%, transparent 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; }
.nav-brand-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-icon svg { width: 16px; height: 16px; fill: #fff; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-link {
  position: relative; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 400;
  color: rgba(255,255,255,0.45); transition: color 0.3s; border-radius: 10px;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple)); border-radius: 1px;
  transition: width 0.3s var(--smooth), left 0.3s var(--smooth);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; left: 20%; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--card-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border); border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: -100%; right: -100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,157,0.5), rgba(108,92,231,0.5), transparent);
  animation: shimmer-slide 4s ease-in-out infinite;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

/* ===== TYPOGRAPHY ===== */
.heading-display { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; }
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--glow) 40%, var(--warm) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem;
  border: none; cursor: none; position: relative; overflow: hidden;
  transition: transform 0.2s var(--bounce), box-shadow 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff; box-shadow: 0 4px 25px rgba(255,107,157,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(255,107,157,0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== INPUT GROUP ===== */
.input-group {
  display: flex; gap: 0; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group:focus-within {
  border-color: var(--pink); box-shadow: 0 0 40px rgba(255,107,157,0.12);
}
.input-group input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 1rem 1.25rem; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
.input-group input::placeholder { color: rgba(255,255,255,0.25); }
.input-group button {
  background: linear-gradient(135deg, var(--pink), var(--rose)); border: none;
  padding: 1rem 1.75rem; color: #fff; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.9rem; cursor: none; white-space: nowrap;
  transition: opacity 0.3s, transform 0.15s;
}
.input-group button:hover { opacity: 0.9; }
.input-group button:active { transform: scale(0.97); }

/* ===== CLICK EFFECTS ===== */
.click-ripple {
  position: fixed; border-radius: 50%; border: 2px solid var(--pink);
  pointer-events: none; z-index: 9997;
  animation: ripple-out 0.8s ease-out forwards;
}
.mini-heart {
  position: fixed; pointer-events: none; z-index: 9996; font-size: 1.2rem;
  animation: float-up 1.4s ease-out forwards;
}

/* ===== FOOTER ===== */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: 1.25rem; text-align: center; font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-brand span { display: none; }
  .nav-link { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .main-content { padding: 5rem 1.25rem 2.5rem; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
  .btn, .nav-link, .input-group button, .heart-btn, a { cursor: pointer; }
}

@media (max-width: 480px) {
  .input-group { flex-direction: column; }
  .input-group button { border-radius: 0; }
  .glass-card { border-radius: 24px; }
}
