/* ===== CSS Variables ===== */
:root {
  --primary: 187 67% 46%;
  --primary-foreground: 0 0% 100%;
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --muted: 217 33% 12%;
  --muted-foreground: 215 20% 65%;
  --card: 222 47% 8%;
  --card-foreground: 210 40% 98%;
  --border: 217 33% 15%;
  --accent: 217 33% 12%;
  --accent-foreground: 210 40% 98%;
  
  --primary-glow: 187 80% 55%;
  --secondary-blue: 210 100% 50%;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, hsl(210 100% 50%), hsl(210 100% 70%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
}

.paypal-badge {
  color: hsl(210 100% 50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 1rem;
  line-height: 1.2;
}

.section-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 1.5rem auto 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(var(--primary) / 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.header.scrolled {
  background: hsl(var(--background) / 0.95);
  box-shadow: 0 4px 30px hsl(0 0% 0% / 0.2);
}

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

.logo img {
  height: 2.5rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

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

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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
}

.language-switcher.mobile {
  margin: 0.5rem 1rem;
  justify-content: center;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  text-align: center;
}

.lang-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

.lang-btn.active {
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

@media (max-width: 1023px) {
  .header-actions {
    display: none;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: hsl(var(--foreground));
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
}

.nav-mobile.open {
  display: flex;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-link-mobile {
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

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

.btn-mobile {
  margin-top: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0.7) 0%,
    hsl(var(--background) / 0.85) 50%,
    hsl(var(--background)) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  text-align: center;
}

.hero-text {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
}

.trusted-companies {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.trusted-title {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.companies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.company-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.company-name:hover {
  opacity: 1;
}

/* ===== About Section ===== */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-grid:last-child {
  margin-bottom: 0;
}

.about-grid-reverse {
  direction: ltr;
}

@media (min-width: 1024px) {
  .about-grid-reverse .about-image {
    order: -1;
  }
}

.about-content {
  direction: ltr;
}

.about-text {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.8;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.1);
}

.paypal-card:hover {
  border-color: hsl(210 100% 50% / 0.3);
  box-shadow: 0 10px 40px hsl(210 100% 50% / 0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.stripe-icon {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--primary-glow) / 0.1));
  color: hsl(var(--primary));
}

.paypal-icon {
  background: linear-gradient(135deg, hsl(210 100% 50% / 0.2), hsl(210 100% 70% / 0.1));
  color: hsl(210 100% 60%);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.stripe-glow {
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.2) 0%, transparent 70%);
}

.paypal-glow {
  background: radial-gradient(ellipse, hsl(210 100% 50% / 0.2) 0%, transparent 70%);
}

.floating-image {
  max-width: 100%;
  border-radius: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== How It Works Section ===== */
.how-it-works {
  position: relative;
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.1);
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  border-radius: 0.5rem;
}

.step-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 0.75rem;
}

.step-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.steps-image {
  display: flex;
  justify-content: center;
}

.steps-image img {
  max-width: 100%;
  border-radius: 1.5rem;
}

/* ===== What We Do Section ===== */
.what-we-do {
  position: relative;
  padding: 6rem 0;
}

.what-we-do-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.glass-card {
  padding: 2rem;
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  margin: 2.5rem 0;
}

.glass-card p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

/* ===== Why Choose Us Section ===== */
.why-choose-us {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.why-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.why-content {
  text-align: left;
}

.why-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.8;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.05);
}

.check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
}

.check-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
  position: relative;
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px hsl(var(--primary) / 0.1);
}

.testimonial-text {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: hsl(var(--primary));
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 50%;
}

.author-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===== Success Stories Section ===== */
.success-stories {
  padding: 6rem 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.screenshot-card {
  padding: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px hsl(0 0% 0% / 0.3);
}

.screenshot-card img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== FAQ Section ===== */
.faq {
  position: relative;
  padding: 6rem 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.faq-item.open {
  border-color: hsl(var(--primary) / 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo img {
  height: 2rem;
}

.footer-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 20rem;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px hsl(var(--primary) / 0.4);
  }
  50% {
    box-shadow: 0 0 40px hsl(var(--primary) / 0.6);
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    flex-direction: column;
  }
  
  .step {
    flex-direction: column;
  }
}