:root {
  --primary: #FF2A54;
  --primary-strong: #FF0033;
  --secondary: #00F0FF;
  --accent: #7000FF;
  --bg-dark: #05070e;
  --card-glass: rgba(18, 22, 38, 0.6);
  --card-glass-hover: rgba(28, 34, 56, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 42, 84, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --success: #10B981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  /* Use the generated background image */
  background-image: url('abstract_bg_glow.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
  position: relative;
}

/* Glassmorphism Containers */
header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px min(5vw, 60px);
  background: rgba(5, 7, 14, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 42, 84, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 42, 84, 0.6);
}

.btn-secondary {
  background: var(--card-glass);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--card-glass-hover);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Layout */
main {
  width: min(1280px, 100% - 40px);
  margin: 120px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Grid & Cards */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--card-glass-hover);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}

.hero-copy {
  z-index: 10;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  margin: 24px 0 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visuals {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.mockup-img {
  max-width: 140%;
  width: 800px;
  margin-left: -100px;
  border-radius: 20px;
  transform: rotateY(-15deg) rotateX(5deg);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
  animation: floatMockup 6s ease-in-out infinite alternate;
}

@keyframes floatMockup {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(0);
  }

  100% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(-20px);
  }
}

/* Logos Marquee */
.logos-container {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
}

.logos-marquee {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.logos-marquee img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logos-marquee img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 30px));
  }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 42, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  border: 1px solid rgba(255, 42, 84, 0.2);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

/* Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

.step-number {
  font-size: 80px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-glass);
  line-height: 1;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
  justify-content: center;
}

.pricing-card {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  border-width: 2px;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(255, 42, 84, 0.15);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 5px;
}

.price-new {
  font-size: 64px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.price-new span {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 24px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border-glass);
  margin-top: 80px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-main);
  margin-left: 10px;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero-subtitle {
    margin: 24px auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .mockup-img {
    margin-left: 0;
    width: 100%;
    transform: none;
    animation: floatMobile 6s ease-in-out infinite alternate;
  }
}

@keyframes floatMobile {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

/* Promo Popup */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.promo-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.promo-modal {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 50px var(--shadow-glass), inset 0 0 20px rgba(255, 42, 84, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.promo-overlay.show .promo-modal {
  transform: scale(1) translateY(0);
}

.close-promo {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.close-promo:hover {
  color: var(--text-main);
}