/* ==========================================================================
   CreateMy.Link Critical Style Sheet (Synchronous)
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
  /* Colors */
  --color-primary: #12D6F5;
  --color-primary-rgb: 18, 214, 245;
  --color-secondary: #7B61FF;
  --color-secondary-rgb: 123, 97, 255;
  --color-accent: #FF4FD8;
  --color-accent-rgb: 255, 79, 216;
  --color-dark: #0F172A;
  --color-dark-rgb: 15, 23, 42;
  --color-dark-light: #1E293B;
  --color-dark-border: #334155;
  --color-light: #FFFFFF;
  --color-light-rgb: 255, 255, 255;
  --color-muted: #94A3B8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  --grad-text: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  --grad-dark-card: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  --grad-glow: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-secondary-rgb), 0.1) 30%, transparent 70%);

  /* Fonts */
  --font-headings: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.18);
  --shadow-primary: 0 10px 30px -10px rgba(18, 214, 245, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.2);

  /* Layout */
  --container-max-width: 1280px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base resets & scaffolding --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-dark-light);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

/* --- Decorative Radial Background Glows --- */
.radial-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.4) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.3) 0%, transparent 70%);
  top: 40%;
  left: -200px;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.25) 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-light);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Gradients text utility */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3);
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-gradient {
  background: var(--grad-primary);
  background-size: 200% auto;
  color: var(--color-light);
  box-shadow: var(--shadow-primary);
}

.btn-gradient:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(123, 97, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-light);
  border: 1px solid var(--color-dark-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Badges */
.pill-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  backdrop-filter: blur(10px);
}

/* --- Interactive custom cursor --- */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
  left: -100px;
  top: -100px;
  opacity: 0;
}

.custom-cursor-glow {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-secondary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  left: -100px;
  top: -100px;
  opacity: 0;
}

/* --- Section Headers --- */
.section-header {
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header .pill-badge {
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 70px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-light);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(18, 214, 245, 0.3));
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-light);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Hamburger Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--color-light);
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}

.mobile-nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-headings);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 280px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-title {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.play-icon {
  margin-right: 0.5rem;
}

/* Hero 3D phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.float-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.fg-1 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(18, 214, 245, 0.4) 0%, transparent 70%);
  top: -50px;
  left: -50px;
  animation: float 8s ease-in-out infinite alternate;
}

.fg-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.3) 0%, transparent 70%);
  bottom: -80px;
  right: -50px;
  animation: float 10s ease-in-out infinite alternate-reverse;
}

/* Phone Mockup Scaffolding */
.phone-mockup-wrapper {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform var(--transition-slow);
}

.phone-frame {
  width: 320px;
  height: 640px;
  aspect-ratio: 320 / 640;
  background: #090D16;
  border: 12px solid #1E293B;
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

/* Ear speaker notch mock */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #1E293B;
  border-radius: 999px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b0f19;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Phone Inner Card Customizer */
.card-preview-header {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.card-preview-avatar {
  margin-top: -50px;
  margin-left: 20px;
  position: relative;
  z-index: 2;
}

.avatar-img,
.avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #090D16;
  background: var(--color-dark-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-light);
}

.card-preview-info {
  padding: 1.5rem 1.25rem 1rem;
}

.card-preview-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.card-preview-info p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.company-badge {
  display: inline-block;
  background: rgba(18, 214, 245, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(18, 214, 245, 0.2);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.card-quick-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.quick-btn:hover {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

.card-preview-body {
  padding: 1.5rem 1.25rem;
}

.qr-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.qr-graphic {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  padding: 8px;
  background: white;
  border-radius: var(--border-radius-sm);
}

.qr-box p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.nfc-mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius-md);
}

.nfc-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.nfc-wave span {
  display: inline-block;
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 99px;
  animation: pulse 1s ease-in-out infinite alternate;
}

.nfc-wave span:nth-child(2) {
  height: 16px;
  animation-delay: 0.2s;
}

.nfc-wave span:nth-child(3) {
  height: 24px;
  animation-delay: 0.4s;
}

.nfc-text {
  display: flex;
  flex-direction: column;
}

.nfc-text strong {
  font-size: 0.85rem;
}

.nfc-text span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Floating Overlay Popups Layout */
.floating-popup {
  position: absolute;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius-md);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  pointer-events: none;
  animation: float 6s ease-in-out infinite alternate;
}

.fp-whatsapp {
  top: 20%;
  left: -90px;
  animation-delay: 0.5s;
}

.fp-leads {
  bottom: 25%;
  right: -90px;
  width: 220px;
  animation-delay: 1s;
}

.fp-payment {
  bottom: 8%;
  left: -80px;
  font-size: 0.85rem;
  font-weight: 600;
  animation-delay: 1.5s;
}

.fp-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(18, 214, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.fp-data {
  display: flex;
  flex-direction: column;
}

.fp-data strong {
  font-size: 0.85rem;
  line-height: 1.2;
}

.fp-data span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* --- Core Keyframe Animations & Animation Helpers (Critical) --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes float-slow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes float-medium {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-16px) rotate(-2deg);
  }
}

@keyframes float-fast {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-fade-in[data-delay="100"] {
  animation-delay: 0.1s;
}

.hero-fade-in[data-delay="200"] {
  animation-delay: 0.2s;
}

.hero-fade-in[data-delay="300"] {
  animation-delay: 0.3s;
}

.hero-fade-in[data-delay="400"] {
  animation-delay: 0.4s;
}

[data-delay="100"] {
  transition-delay: 0.1s;
}

[data-delay="200"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.3s;
}

[data-delay="400"] {
  transition-delay: 0.4s;
}

/* Header & Navigation Breakpoint Overrides (Critical) */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  #loginBtn,
  #signupBtn,
  #dashboardBtn {
    display: none;
  }
}

@media (max-width: 1200px) {
  .fp-whatsapp {
    left: -10%;
  }

  .fp-leads {
    right: -10%;
  }

  .fp-payment {
    left: -5%;
  }

  .floating-social-icons {
    right: -5%;
  }
}

@media (max-width: 768px) {
  .floating-popup {
    padding: 0.5rem 0.75rem;
  }

  .fp-icon {
    width: 22px;
    height: 22px;
  }

  .fp-data strong {
    font-size: 0.75rem;
  }

  .fp-data span {
    font-size: 0.65rem;
  }

  .fp-whatsapp {
    top: 5%;
    left: 15px;
    width: 155px;
    /* Compact width for mobile screens */
  }

  .fp-leads {
    top: 40%;
    right: 15px;
    width: 165px;
    /* Compact width for mobile screens */
    height: 90px;
  }

  .fp-payment {
    bottom: 5%;
    left: 15px;
    width: 155px;
    /* Compact width for mobile screens */
  }

  .floating-social-icons {
    display: none;
  }
}