/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --primary: #4F46E5;        /* Vibrant Indigo */
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #EC4899;         /* Pink accent */
  --accent-hover: #DB2777;
  --bg: #FAFBFE;             /* Very light cool gray/blue */
  --bg-alt: #F3F6FA;         /* Slightly deeper gray/blue for contrast */
  --white: #FFFFFF;
  --text-primary: #0F172A;   /* Deeper slate for higher contrast */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94A3B8;     /* Slate 400 */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --card-shadow-lg: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

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

/* ============================
   Section base
   ============================ */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Header / Navbar
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 254, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.header__cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 140px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Ambient Glows */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

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

.hero__content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--primary), #8B5CF6, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-decoration: none;
  animation: pulse-glow 3s infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  color: white;
}
.btn-primary svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}
.btn-primary:hover svg {
  transform: translateX(3px);
}

.hero__trust {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__trust svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* ============================
   Telegram Mockup
   ============================ */
.tg-mockup {
  width: 100%;
  max-width: 380px;
  background: #F8FAFC;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.5);
  animation: float 6s ease-in-out infinite;
  transform: rotate(-2deg);
}

.tg-mockup__header {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-mockup__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.tg-mockup__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.tg-mockup__status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.tg-mockup__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Message bubble base */
.tg-msg {
  background: white;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px 6px;
  position: relative;
  max-width: 92%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.tg-msg__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--primary);
}

.tg-msg__time {
  font-size: 0.65rem;
  color: #A0AEC0;
  text-align: right;
  margin-top: 4px;
}

/* Word card */
.tg-msg--card .tg-msg__word {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tg-msg--card .tg-msg__pron {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tg-msg--card .tg-msg__trans {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.tg-msg--card .tg-msg__example {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-alt);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

/* Phrase card */
.tg-msg--phrase .tg-msg__series {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tg-msg--phrase .tg-msg__quote {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tg-msg--phrase .tg-msg__meaning {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Audio card */
.tg-msg--audio .tg-msg__player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.tg-msg--audio .tg-msg__play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.tg-msg--audio .tg-msg__waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 24px;
}
.tg-msg--audio .tg-msg__waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.4;
  animation: waveform 1.2s ease-in-out infinite alternate;
}
.tg-msg--audio .tg-msg__waveform span:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(2)  { height: 14px; animation-delay: 0.05s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(3)  { height: 20px; animation-delay: 0.1s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(4)  { height: 12px; animation-delay: 0.15s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(5)  { height: 22px; animation-delay: 0.2s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(6)  { height: 16px; animation-delay: 0.25s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(7)  { height: 10px; animation-delay: 0.3s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(8)  { height: 18px; animation-delay: 0.35s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(9)  { height: 24px; animation-delay: 0.4s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(10) { height: 14px; animation-delay: 0.45s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(11) { height: 20px; animation-delay: 0.5s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(12) { height: 8px;  animation-delay: 0.55s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(13) { height: 16px; animation-delay: 0.6s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(14) { height: 22px; animation-delay: 0.65s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(15) { height: 12px; animation-delay: 0.7s; }
.tg-msg--audio .tg-msg__waveform span:nth-child(16) { height: 6px;  animation-delay: 0.75s; }

@keyframes waveform {
  0%   { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 0.7; transform: scaleY(1); }
}

.tg-msg--audio .tg-msg__duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.tg-msg--audio .tg-msg__question {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================
   BENEFITS
   ============================ */
.benefits {
  padding: 80px 0;
  background: var(--white);
}

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

.benefit-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.benefit-card:hover {
  border-color: transparent;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: all var(--transition);
}
.benefit-card:hover .benefit-card__icon {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: white;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}
.benefit-card__icon svg {
  width: 26px;
  height: 26px;
}

.benefit-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.benefit-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================
   PRICING
   ============================ */
.pricing {
  padding: 80px 0;
  background: var(--bg-alt);
}

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

.pricing-card {
  padding: 36px 28px 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* Popular card */
.pricing-card--popular {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--card-shadow-lg);
  transform: scale(1.04);
  z-index: 2;
}
.pricing-card--popular:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.2);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.pricing-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.pricing-card__period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pricing-card__currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-decoration: none;
}
.btn-pay:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.pricing-card--popular .btn-pay {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
}
.pricing-card--popular .btn-pay:hover {
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
  color: white;
}

/* ============================
   TRUST / What's Inside
   ============================ */
.trust {
  padding: 80px 0;
  background: var(--white);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.trust-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.trust-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all var(--transition);
}
.trust-item:hover .trust-item__icon {
  background: white;
  color: var(--accent);
}
.trust-item__icon svg {
  width: 24px;
  height: 24px;
}

.trust-item__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 48px 0 32px;
  background: #111827;
  color: #9CA3AF;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer__info {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer__info p {
  margin-bottom: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.85rem;
  color: #9CA3AF;
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.footer__links a:hover {
  color: white;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1F2937;
  font-size: 0.8rem;
  color: #6B7280;
  text-align: center;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .pricing__grid {
    gap: 16px;
  }
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  /* Header */
  .header__inner {
    height: 56px;
  }
  .logo {
    font-size: 1rem;
  }
  .logo__icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 8px;
  }
  .header__cta {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    padding: 88px 0 48px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__title {
    font-size: 1.85rem;
  }
  .hero__subtitle {
    font-size: 1rem;
    margin: 0 auto 28px;
  }
  .hero__actions {
    align-items: center;
  }
  .hero__trust {
    justify-content: center;
  }
  .hero__visual {
    order: -1;
  }
  .tg-mockup {
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(0deg);
  }

  /* Benefits */
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .benefit-card {
    padding: 24px 22px;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card--popular {
    transform: none;
  }
  .pricing-card--popular:hover {
    transform: translateY(-4px);
  }

  /* Trust */
  .trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trust-item {
    padding: 20px 16px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__links {
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
  .hero__title {
    font-size: 1.6rem;
  }
  .trust__grid {
    grid-template-columns: 1fr;
  }
}
