:root {
  --bg-color: #050511;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-color: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse-glow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes title-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Background */
.background-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  animation: pulse-glow 15s ease-in-out infinite;
}

/* Hero Enhancements */
.hero-visual .glass-card {
  animation: float 6s ease-in-out infinite;
}

.hero-visual .card-2 {
  animation-delay: -3s;
  /* Offset float */
}

h1 {
  background-size: 200% auto;
  animation: title-gradient 5s linear infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-delay-1 {
  transition-delay: 0.1s;
}

.stagger-delay-2 {
  transition-delay: 0.2s;
}

.stagger-delay-3 {
  transition-delay: 0.3s;
}

/* Enhanced Button Glow */
.cta-button.full-width {
  position: relative;
  overflow: hidden;
}

.cta-button.full-width::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.5s;
}

.cta-button.full-width:hover::after {
  transform: rotate(45deg) translateY(100%);
}

footer {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

footer a {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-link-secondary {
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Hero */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    text-align: left;
    padding: 6rem 5%;
    justify-content: space-between;
  }

  .hero-content {
    max-width: 50%;
  }
}

.badge {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.cta-button.primary {
  background: white;
}

.cta-button.full-width {
  width: 100%;
  background: var(--accent-color);
  color: white;
  margin-top: 1.5rem;
}

.cta-button.full-width:hover {
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
}

/* Visual Mockups */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin-top: 3rem;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  position: absolute;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
  top: 0;
  right: 0;
  width: 80%;
  height: 70%;
  z-index: 1;
  padding: 20px;
}

.card-2 {
  bottom: 0;
  left: 0;
  width: 60%;
  height: 40%;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-header {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.circle {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.line {
  width: 60%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-top: 10px;
}

.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  height: 100px;
}

.bar {
  flex: 1;
  background: var(--accent-color);
  opacity: 0.8;
  border-radius: 4px;
}

.bar-1 {
  height: 40%;
}

.bar-2 {
  height: 70%;
}

.bar-3 {
  height: 50%;
}

.stat-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 5px 0;
}

.stat-trend {
  color: #4ade80;
  font-size: 0.9rem;
}

/* Features */
.features-section {
  padding: 6rem 5%;
}

.features-section h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Payment Section */
.payment-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.pricing-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pricing-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.pricing-info {
  flex: 1;
}

.pricing-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.price-tag {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.price-tag span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-list li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.guarantee {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.payment-form-container {
  flex: 1;
  background: #11111d;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Stripe Elements overrides (logic in JS, usually, but container styles here) */
#payment-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

#payment-message {
  margin-top: 1rem;
  color: #ef4444;
  font-size: 0.9rem;
  text-align: center;
}

/* Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 20px;
  height: 20px;
  -webkit-animation: spin 1s linear infinite;
  /* Safari */
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

#success-view {
  text-align: center;
}

footer {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

footer a {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}