/* =============================================
   EnglishGuide — Pre-landing Page Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --purple: #6B4EFF;
  --purple-light: #8B73FF;
  --purple-dark: #5438E0;
  --purple-bg: #F3F0FF;
  --dark-bg: #110D2B;
  --dark-card: #1E1748;
  --dark-card-border: #2D2560;
  --green-accent: #34D399;
  --orange-accent: #F59E0B;
  --red-accent: #EF4444;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-white: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-section: #F3F4F6;
  --border-light: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(107,78,255,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-badge--dark {
  background: rgba(107, 78, 255, 0.2);
  color: var(--purple-light);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--purple);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(107, 78, 255, 0.35);
}

.btn--primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107, 78, 255, 0.45);
}

.btn--large {
  padding: 20px 48px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

.btn--arrow::after {
  content: '→';
  font-size: 18px;
  transition: transform var(--transition);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.header__cta {
  padding: 10px 24px;
  font-size: 14px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 64px;
  background: linear-gradient(135deg, #0F0A2E 0%, #1a1145 50%, #201555 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(107,78,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(107, 78, 255, 0.15);
  border: 1px solid rgba(107, 78, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--purple-light), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__subtitle strong {
  color: var(--text-white);
  font-weight: 700;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero__guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.hero__guarantee svg {
  flex-shrink: 0;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
}

.hero__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* Hero Image */
.hero__image-wrapper {
  position: relative;
}

.hero__image {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.hero__trustpilot {
  position: absolute;
  top: 16px;
  right: -8px;
  background: rgba(30, 23, 72, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 78, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__trustpilot .stars {
  color: #FBBF24;
}

.hero__guarantee-badge {
  position: absolute;
  bottom: 24px;
  right: -12px;
  background: rgba(30, 23, 72, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 78, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 220px;
}

.hero__guarantee-badge h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero__guarantee-badge p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* =============================================
   PAIN POINTS SECTION
   ============================================= */
.pain {
  padding: 96px 0;
  background: var(--bg-white);
}

.pain__header {
  text-align: center;
  margin-bottom: 56px;
}

.pain__header .section-subtitle {
  margin: 0 auto;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain__card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}

.pain__card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.pain__card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.pain__card-icon--time {
  background: #FEF3C7;
}

.pain__card-icon--app {
  background: #EDE9FE;
}

.pain__card-icon--fear {
  background: #FEE2E2;
}

.pain__card-problem {
  font-size: 14px;
  color: var(--red-accent);
  text-decoration: line-through;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pain__card-solution {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pain__card-solution::before {
  content: '✓';
  color: var(--green-accent);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pain__card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps {
  padding: 96px 0;
  background: var(--bg-light);
}

.steps__header {
  text-align: center;
  margin-bottom: 56px;
}

.steps__header .section-subtitle {
  margin: 0 auto;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.step__card {
  text-align: center;
  position: relative;
}

.step__icon-wrapper {
  position: relative;
  display: inline-flex;
  margin-bottom: 24px;
}

.step__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.step__icon--1 { background: var(--purple); color: white; }
.step__icon--2 { background: var(--purple); color: white; }
.step__icon--3 { background: #06B6D4; color: white; }

.step__number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--orange-accent);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto 16px;
}

.step__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.step__tag {
  padding: 4px 12px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.step__tag--cyan {
  background: #ECFDF5;
  color: #059669;
}

.steps__cta {
  text-align: center;
}

/* =============================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================= */
.testimonials {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #160F35 100%);
  color: var(--text-white);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials__header .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.testimonial__card {
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial__card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.testimonial__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial__stars {
  color: #FBBF24;
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial__source {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
}

.testimonial__text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.testimonial__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-accent);
  margin-bottom: 20px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.testimonial__name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.testimonials__trust {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.testimonials__trust-wrapper {
  text-align: center;
}

.testimonials__trust .stars {
  color: #FBBF24;
}

.testimonials__trust strong {
  color: var(--text-white);
}

/* =============================================
   ADVANTAGES
   ============================================= */
.advantages {
  padding: 96px 0;
  background: var(--bg-white);
}

.advantages__header {
  text-align: center;
  margin-bottom: 56px;
}

.advantages__header .section-subtitle {
  margin: 0 auto;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.advantage__card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.advantage__card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.advantage__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.advantage__icon--tutors { background: #EDE9FE; }
.advantage__icon--price { background: #ECFDF5; }
.advantage__icon--guarantee { background: #FEF3C7; }
.advantage__icon--time { background: #E0F2FE; }

.advantage__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
}

.advantage__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.advantage__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.advantages__badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  text-align: center;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.final-cta__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.final-cta .btn {
  background: var(--text-white);
  color: var(--purple);
  font-size: 18px;
  padding: 18px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
}

.final-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.final-cta .btn::after {
  content: '→';
  font-size: 20px;
  margin-left: 8px;
  transition: transform var(--transition);
}

.final-cta .btn:hover::after {
  transform: translateX(4px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 32px 0;
  background: var(--dark-bg);
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-size: 13px;
}

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

.footer a:hover {
  color: var(--text-white);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__image-wrapper {
    display: flex;
    justify-content: center;
  }

  .hero__image {
    max-width: 420px;
    margin: 0 auto;
  }

  .pain__grid,
  .steps__grid,
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 48px;
    padding-top: calc(var(--header-height) + 32px);
  }

  .hero__stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .pain__grid,
  .steps__grid,
  .testimonials__grid,
  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__trustpilot {
    right: 8px;
  }

  .hero__guarantee-badge {
    right: 8px;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 28px;
  }

  .advantages__badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .pain, .steps, .advantages, .testimonials {
    padding: 64px 0;
  }
}

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

  .hero__title {
    font-size: 28px;
  }

  .header__logo span {
    display: none;
  }

  .btn--large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }
}
