:root {
  --primary: #4a1d96;
  --primary-light: #6b3fa0;
  --primary-dark: #2d1163;
  --secondary: #1e3a5f;
  --accent: #d4af37;
  --accent-light: #e6c556;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --text-muted: #8888a0;
  --bg: #ffffff;
  --bg-alt: #f8f7fc;
  --bg-dark: #0f0f1a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 60px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.nav.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(74, 29, 150, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(74, 29, 150, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-store {
  background: var(--bg-dark);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}

.btn-store:hover {
  background: #2a2a3a;
  color: white;
  transform: translateY(-2px);
}

.btn-store img {
  height: 24px;
}

.btn-store span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-store .small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn-store .big {
  font-size: 1rem;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8f7fc 0%, #e8e4f4 50%, #d8d4e8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(74, 29, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

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

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0f0f1a;
  border-radius: 20px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 29, 150, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 28px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.screenshots-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-wrapper::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screenshot-phone {
  width: 220px;
  height: 460px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.screenshot-phone:hover {
  transform: scale(1.05);
}

.screenshot-phone img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 48px 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
}

.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-features li {
  color: white;
}

.pricing-card.featured .pricing-features li::before {
  color: var(--accent-light);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.pricing-trial {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-card.featured .pricing-features li {
  border-color: rgba(255, 255, 255, 0.1);
}

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

/* Comparison Table */
.comparison {
  padding: 80px 0;
  background: var(--bg-alt);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-alt);
}

.check {
  color: var(--accent);
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
}

/* CTA Section */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: white;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-store {
  background: white;
  color: var(--primary-dark);
}

.cta .btn-store:hover {
  background: var(--bg-alt);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Legal Pages */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.legal-content .last-updated {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

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

  .hero-text {
    max-width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
  }

  .screenshot-phone {
    width: 180px;
    height: 380px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }
}

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

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
