/* style.css */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #100720;
  --card:   #1e0f35;
  --border: #3a1a6a;
  --orange: #ff7c00;
  --gold:   #ffcf00;
  --purple: #9b3dff;
  --muted:  #a080c8;
  --dimmed: #5a408a;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── AMBIENT ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.amb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
}
.amb-1 { width: 500px; height: 500px; background: var(--purple); top: -150px; left: -150px; }
.amb-2 { width: 400px; height: 400px; background: var(--orange); bottom: -120px; right: -120px; }
.amb-3 { width: 300px; height: 300px; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(16, 7, 32, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(58, 26, 106, 0.5);
}
.nav-logo {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a0a2e;
  font-family: 'Fredoka One', sans-serif;
  font-size: 14px;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(255,140,0,0.35);
  white-space: nowrap;
}
.nav-dl:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(255,140,0,0.5); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.25rem 5rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(155, 61, 255, 0.15);
  border: 1px solid rgba(155, 61, 255, 0.4);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-mango {
  font-size: 96px;
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 36px rgba(255,160,0,0.45));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
.hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(40px, 10vw, 82px);
  line-height: 1.3;
  background: linear-gradient(135deg, var(--white) 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.85rem;
}
.hero-sub {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a0a2e;
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  padding: 0.85rem 1.85rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255,140,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(255,140,0,0.6); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-family: 'Fredoka One', sans-serif;
  font-size: 18px;
  padding: 0.85rem 1.85rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover  { background: rgba(155,61,255,0.12); border-color: var(--purple); transform: translateY(-3px); }
.btn-secondary:active { transform: scale(0.97); }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--dimmed);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: sh 2s ease-in-out infinite;
}
@keyframes sh {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── FEATURES ── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}
.section-title span {
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feat-card:hover { border-color: rgba(155,61,255,0.5); transform: translateY(-4px); }
.feat-icon  { font-size: 38px; margin-bottom: 0.9rem; display: block; }
.feat-title { font-family: 'Fredoka One', sans-serif; font-size: 20px; margin-bottom: 0.45rem; }
.feat-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── DOWNLOAD BANNER ── */
.dl-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 6rem;
}
.dl-card {
  max-width: 1060px;
  margin: 0 auto;
  background: linear-gradient(135deg, #22103a 0%, #1a0a2e 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.dl-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,124,0,0.13), transparent 70%);
  pointer-events: none;
}
.dl-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(155,61,255,0.1), transparent 70%);
  pointer-events: none;
}
.dl-left { flex: 1; }
.dl-emoji { font-size: 48px; display: block; margin-bottom: 0.6rem; }
.dl-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  margin-bottom: 0.5rem;
}
.dl-sub  { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 380px; }
.dl-meta {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dl-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--dimmed);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dl-right { flex-shrink: 0; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; }
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a0a2e;
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  padding: 1rem 2.25rem;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(255,140,0,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-dl:hover  { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(255,140,0,0.65); }
.btn-dl:active { transform: scale(0.97); }
.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  padding: 0.7rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-tg:hover { background: rgba(155,61,255,0.12); border-color: var(--purple); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-logo {
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-text { font-size: 11px; color: var(--dimmed); line-height: 1.6; }
.footer-text a { color: var(--dimmed); text-decoration: underline; text-underline-offset: 2px; }
.footer-text a:hover { color: var(--muted); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

/* Планшет */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-card { display: flex; align-items: flex-start; gap: 1rem; }
  .feat-icon { margin-bottom: 0; font-size: 32px; flex-shrink: 0; }
  .dl-card { flex-direction: column; align-items: flex-start; }
  .dl-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* Мобильный */
@media (max-width: 600px) {
  nav { padding: 0.7rem 1rem; }
  .nav-links { display: none; }

  .hero { padding: 6rem 1rem 4.5rem; min-height: 100svh; }
  .hero-mango { font-size: 72px; }

  .hero-btns { gap: 0.65rem; }
  .btn-primary, .btn-secondary { font-size: 16px; padding: 0.75rem 1.4rem; border-radius: 12px; width: 100%; justify-content: center; }

  .section { padding: 3.5rem 1rem; }
  .feat-card { padding: 1.25rem 1rem; }

  .dl-section { padding: 0 1rem 4rem; }
  .dl-card { padding: 1.75rem 1.25rem; }
  .dl-right { flex-direction: column; width: 100%; }
  .btn-dl { font-size: 17px; padding: 0.85rem 1.5rem; width: 100%; justify-content: center; }
  .btn-tg { font-size: 15px; padding: 0.65rem 1.25rem; width: 100%; justify-content: center; }

  footer { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
}

/* Очень маленькие */
@media (max-width: 360px) {
  .hero-mango { font-size: 56px; }
  .nav-logo { font-size: 18px; }
  .nav-dl { font-size: 12px; padding: 0.4rem 0.85rem; }
}

/* Ландшафт на телефоне */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 5rem 1rem 3rem; }
  .hero-mango { font-size: 52px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mango, .scroll-hint { animation: none; }
}