/* PartnerMe AI Landing Page - Custom Styles */

/* === CSS Variables / Design Tokens === */
:root {
  /* Colors from beta platform */
  --color-bg-primary: #020617;
  /* slate-950 */
  --color-bg-secondary: #0f172a;
  /* slate-900 */
  --color-bg-tertiary: #1e293b;
  /* slate-800 */

  --color-text-primary: #f1f5f9;
  /* slate-100 */
  --color-text-secondary: #cbd5e1;
  /* slate-300 */
  --color-text-tertiary: #94a3b8;
  /* slate-400 */

  --color-blue: #2563EB;
  /* blue-600 */
  --color-purple: #7C3AED;
  /* purple-600 */
  --color-emerald: #34D399;
  /* emerald-400 */
  --color-cyan: #06b6d4;
  /* cyan-500 */

  --color-border: rgba(71, 85, 105, 0.3);
  /* slate-600 with opacity */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #06b6d4 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.5);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #1e40af 0%, #020617 40%, #020617 60%, #0f172a 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient background orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  z-index: 0;
  animation: floatOrbs 25s ease-in-out infinite;
  pointer-events: none;
}

body::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #2563EB, #7C3AED);
  top: -350px;
  right: -250px;
}

body::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7C3AED, #06b6d4);
  bottom: -300px;
  left: -200px;
  animation-delay: -12s;
}

@keyframes floatOrbs {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  25% {
    transform: translate(60px, -60px) scale(1.15) rotate(90deg);
  }

  50% {
    transform: translate(-40px, 40px) scale(0.9) rotate(180deg);
  }

  75% {
    transform: translate(40px, -40px) scale(1.05) rotate(270deg);
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 80px rgba(37, 99, 235, 0.3);
  }
}

@keyframes float {

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

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* === Utility Classes === */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.glow-animation {
  animation: glow 3s ease-in-out infinite;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* === Glassmorphism === */
.glass {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(139, 92, 246, 0.1) inset;
}

.glass-light {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

/* === Gradients === */
.gradient-text {
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.gradient-bg {
  background: var(--gradient-primary);
}

/* === Cards === */
.card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(139, 92, 246, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
  border-color: rgba(139, 92, 246, 0.4);
}

.card:hover::before {
  left: 100%;
}

.card-glow:hover {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.5),
    0 0 80px rgba(124, 58, 237, 0.3),
    0 12px 48px rgba(0, 0, 0, 0.4);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4), 0 0 20px rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* === Input Fields === */
.input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.input::placeholder {
  color: var(--color-text-tertiary);
}

/* === Icons === */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--gradient-glow);
  transition: all 0.3s ease;
}

.icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.icon-lg {
  width: 4rem;
  height: 4rem;
}

.icon-xl {
  width: 5rem;
  height: 5rem;
}

/* === Sections === */
.section {
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

.section-lg {
  padding: 6rem 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Grid === */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-lg {
    padding: 4rem 1rem;
  }
}

/* === Hero Glow Effect === */
.hero-glow {
  position: absolute;
  inset: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.1) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

/* === Scroll Animation === */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Premium Scrollbar === */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  border-radius: 6px;
  border: 2px solid var(--color-bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #06b6d4, #2563EB);
}

/* === Text Selection === */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--color-text-primary);
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

/* === Link Hover Effects === */
a {
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #06b6d4);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Disable underline for links with images (partner logos) */
a:has(img)::after {
  display: none;
}

/* Disable underline for logo links */
.logo::after,
a.logo::after {
  display: none;
}