/* ===== CSS VARIABLES ===== */
:root {
  --primary-purple: #5B4DB8;
  --secondary-purple: #7C6FD8;
  --dark-purple: #4F2978;
  --light-purple: #F9F7FF;
  --border-purple: #E5D9FF;
  
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --text-light: #999999;
  
  --white: #FFFFFF;
  --red: #EF4444;
  --red-dark: #DC2626;
  --green: #22C55E;
  --gold: #F59E0B;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-purple: 0 10px 30px rgba(91, 77, 184, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-tertiary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-tertiary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-pricing {
  width: 100%;
  background: var(--primary-purple);
  color: var(--white);
  margin-top: 24px;
}

.btn-pricing:hover {
  background: var(--dark-purple);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(91, 77, 184, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-menu a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  min-height: 100vh;
  padding: 140px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-left {
  padding-bottom: 80px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subheading {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Phone Mockup */
.hero-right {
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 290px;
  height: 600px;
  background: #1C1C1E;
  border-radius: 44px;
  padding: 14px;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 36px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  color: white;
  overflow: hidden;
  position: relative;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 8px;
}

.status-icons {
  display: flex;
  gap: 4px;
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.app-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #5B4DB8 0%, #7C6FD8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.rank-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 83, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.rank-icon {
  font-size: 14px;
}

.rank-name {
  font-size: 11px;
  font-weight: 700;
  color: #D4A853;
  letter-spacing: 0.5px;
}

/* Flashcard */
.flashcard {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.card-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8B5CF6;
  margin-bottom: 16px;
  font-weight: 500;
}

.topic-dot {
  width: 8px;
  height: 8px;
  background: #8B5CF6;
  border-radius: 50%;
}

.card-content {
  position: relative;
}

.card-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.card-word {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.speak-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B5CF6;
  cursor: pointer;
}

/* Rating Buttons */
.rating-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.rating-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.rating-btn:hover {
  transform: scale(1.02);
}

.rating-btn.again {
  background: rgba(120, 120, 120, 0.2);
  color: rgba(255,255,255,0.7);
}

.rating-btn.good {
  background: rgba(91, 77, 184, 0.3);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.rating-btn.easy {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rating-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rating-time {
  font-size: 11px;
  opacity: 0.7;
}

/* Progress Section */
.progress-section {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5B4DB8, #8B5CF6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* App Footer */
.app-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-icon {
  font-size: 16px;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
  z-index: 1;
}

/* Wave */
.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--white);
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-purple);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--red));
  border-radius: 2px;
}

.section-title.light {
  color: var(--white);
}

.section-title.light::after {
  background: rgba(255,255,255,0.5);
}

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

.feature-card {
  background: var(--light-purple);
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-purple);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-purple);
  border-color: var(--primary-purple);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.portal-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

.portal-link:hover {
  color: var(--dark-purple);
  transform: translateX(4px);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
  padding: 100px 0;
}

.pricing-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.section-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-top: -40px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
}

.pricing-price .currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-purple);
  margin-top: 8px;
}

.pricing-price .amount {
  font-size: 64px;
  font-weight: 800;
  color: var(--dark-purple);
  line-height: 1;
}

.pricing-price .period {
  font-size: 14px;
  color: var(--text-light);
  align-self: flex-end;
  margin-bottom: 12px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 8px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-purple);
  font-size: 15px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--green);
  font-weight: 700;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  padding: 100px 0;
  text-align: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 80px 0 32px;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 16px;
  color: var(--secondary-purple);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-section h5 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-section ul a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-section ul a:hover {
  color: var(--secondary-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 52px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(99, 88, 194, 0.98);
    padding: 20px;
    gap: 20px;
    backdrop-filter: blur(10px);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-left {
    padding-bottom: 40px;
  }
  
  .hero-headline {
    font-size: 42px;
  }
  
  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .phone-mockup {
    transform: scale(0.85);
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 36px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .wave {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 36px;
  }
  
  .phone-mockup {
    transform: scale(0.75);
  }
  
  .phone-frame {
    width: 260px;
    height: 540px;
  }
  
  .pricing-card {
    padding: 40px 24px;
  }
  
  .pricing-price .amount {
    font-size: 52px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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