:root {
  --primary: #6366f1;
  --accent: #22d3ee;
  --dark: #0f172a;
  --gradient1: #6366f1;
  --gradient2: #a855f7;
  --gradient3: #ec4899;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

/* Animated Background */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: var(--gradient1);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: var(--gradient2);
  bottom: 10%;
  right: 10%;
  animation-delay: 5s;
}

.orb3 {
  width: 350px;
  height: 350px;
  background: var(--gradient3);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 40px) scale(0.9);
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  padding: 50px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Side */
.hero-text {
  z-index: 1;
}

.badge {
  margin-top: 20px;
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
  }
}

h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Feature Pills */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* CTA Button */
.cta-btn {
  position: relative;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  border: none;
  padding: 18px 45px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient2), var(--gradient3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.5);
}

.cta-btn span {
  position: relative;
  z-index: 1;
}

/* Right Side - Magazine Cover */
.hero-image {
  position: relative;
  perspective: 1000px;
}

.magazine-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.magazine-wrapper:hover {
  transform: rotateY(-15deg) rotateX(5deg);
}

.magazine-cover {
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.3);
  transition: all 0.5s ease;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-card1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.float-card2 {
  bottom: 10%;
  left: -10%;
  animation-delay: 1.5s;
}

.float-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--accent);
}

.float-card p {
  font-size: 24px;
  font-weight: 700;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 80px 0;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gradient2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: #94a3b8;
  font-size: 16px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 50px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.modal p {
  color: #94a3b8;
  margin-bottom: 30px;
}

.modal input {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.modal input::placeholder {
  color: #64748b;
}

.modal input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.3s ease;
}

.close:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .float-card {
    display: none;
  }
  .modal-content {
    padding: 30px;
  }
}

.sub-btn {
  display: inline-block;
  position: relative; /* FIX */
  overflow: hidden; /* FIX */

  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  border: none;
  width: 300px;
  padding: 18px 45px;
  /*margin:10px;*/
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Gradient overlay */
.sub-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient2), var(--gradient3));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0; /* FIX */
}

/* Text always on top */
.sub-btn span {
  position: relative;
  z-index: 1; /* FIX */
}

/* Hover effect */
.sub-btn:hover::before {
  opacity: 1;
}

.sub-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.5);
}
