/* ============================================================
   NaMuTi — telegram-bot.css (сторінка Telegram бота)
   ============================================================ */

/* ─── HERO ─── */
.bot-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bot-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(155,81,224,.22), transparent),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(46,201,154,.15), transparent),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(245,200,0,.08), transparent);
  pointer-events: none;
}

.bot-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.bot-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), rgba(46,201,154,.8));
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(155,81,224,.3);
}

.bot-hero-emoji {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

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

/* Декоративні елементи */
.bot-doodle {
  position: absolute;
  font-size: 28px;
  opacity: .15;
  animation: bot-float var(--dd, 16s) ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bot-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
  75% { transform: translateY(-20px) rotate(4deg); }
}

.bot-geo {
  position: absolute;
  opacity: .06;
  border-radius: 50%;
  pointer-events: none;
  animation: bot-pulse 6s ease-in-out infinite;
  z-index: 0;
}

.bot-geo-square {
  border-radius: 8px;
  animation-duration: 8s;
}

@keyframes bot-pulse {
  0%, 100% { transform: scale(1); opacity: .06; }
  50% { transform: scale(1.15); opacity: .1; }
}

.bot-hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
}

.bot-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 32px;
}

.bot-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bot-btn-tg {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 15px;
}

.bot-hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bot-stat {
  text-align: center;
  padding: 16px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .3s ease;
}

.bot-stat:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}

.bot-stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.bot-stat-num.g { color: var(--green); text-shadow: 0 0 20px rgba(46,201,154,.3); }
.bot-stat-num.p { color: var(--purple); text-shadow: 0 0 20px rgba(155,81,224,.3); }
.bot-stat-num.y { color: var(--yellow); text-shadow: 0 0 20px rgba(245,200,0,.3); }

.bot-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}


/* ─── СЕКЦІЇ (загальне) ─── */
.bot-sec-head {
  text-align: center;
  margin-bottom: 48px;
}

.bot-sec-head .sec-desc {
  margin-top: 12px;
}

.bot-howto,
.bot-commands,
.bot-subjects,
.bot-faq {
  padding: 80px 24px;
}

.bot-howto {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bot-commands {
  background: var(--bg);
}

.bot-subjects {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bot-faq {
  background: var(--bg);
}


/* ─── ФІЧІ — у стилі МІСІЇ ─── */
.bot-features {
  padding: 80px 0 100px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.bot-feat-top {
  text-align: center;
  padding: 0 24px 48px;
}

.bot-feat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.bot-feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: bot-pulse-dot 2s ease-in-out infinite;
}

@keyframes bot-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.bot-feat-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.bot-feat-ul {
  position: relative;
  display: inline-block;
}

.bot-feat-ul::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--green), var(--yellow));
}

.bot-feat-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
}

.bot-feat-line {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.65;
}

.bot-feat-line strong {
  color: var(--text);
  font-weight: 800;
}

/* Грід карток */
.bot-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bot-feat-card {
  border-radius: 22px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  color: #F0F0FF;
  transition: transform .35s ease, box-shadow .35s ease;
  box-sizing: border-box;
}

.bot-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

/* Кольори карток */
.bf-c1 { background: #0D0D1A; }
.bf-c2 { background: #1A0A2E; }
.bf-c3 { background: #0A1F16; }
.bf-c4 { background: #1A1408; }
.bf-c5 { background: #1A0A0A; }
.bf-c6 { background: #0A1520; }
.bf-c7 { background: #1A0A2E; }
.bf-c8 { background: #F5C800; color: #1A1208; }

/* Великий номер на фоні */
.bot-feat-bnum {
  font-family: 'Unbounded', sans-serif;
  font-size: 84px;
  font-weight: 900;
  opacity: .07;
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
  pointer-events: none;
}

.bf-c8 .bot-feat-bnum { opacity: .12; }

.bot-feat-emoji {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.bot-feat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .5;
  margin-bottom: 10px;
}

.bot-feat-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  color: inherit;
  line-height: 1.3;
}

.bot-feat-card p {
  font-size: 13px;
  line-height: 1.65;
  opacity: .7;
  margin: 0 0 14px;
  color: inherit;
}

.bot-feat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bot-feat-tags span {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}

.bf-c8 .bot-feat-tags span {
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.6);
  border-color: rgba(0,0,0,.1);
}


/* ─── КРОКИ ─── */
.bot-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.bot-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all .3s ease;
}

.bot-step:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.bot-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.bot-step-num.p { background: var(--purple); box-shadow: 0 4px 20px rgba(155,81,224,.4); }
.bot-step-num.g { background: var(--green); box-shadow: 0 4px 20px rgba(46,201,154,.4); }
.bot-step-num.y { background: var(--yellow); color: #1A1408; box-shadow: 0 4px 20px rgba(245,200,0,.4); }

.bot-step h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.bot-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0;
}

.bot-step-arrow {
  font-size: 24px;
  color: var(--muted);
  font-weight: 700;
}


/* ─── КОМАНДИ (2 колонки) ─── */
.bot-cmd-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.bot-cmd-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-cmd-col-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.bot-cmd-col-title.p {
  color: var(--purple);
  background: rgba(155,81,224,.08);
  border: 1px solid rgba(155,81,224,.15);
}

.bot-cmd-col-title.g {
  color: var(--green);
  background: rgba(46,201,154,.08);
  border: 1px solid rgba(46,201,154,.15);
}

.bot-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .3s ease;
}

.bot-cmd:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateX(4px);
}

.bot-cmd-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-cmd code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(46,201,154,.12);
  border: 1px solid rgba(46,201,154,.18);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.bot-cmd-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-cmd-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.bot-cmd-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.bot-cmd-arrow {
  font-size: 14px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}

.bot-cmd:hover .bot-cmd-arrow {
  opacity: 1;
  transform: translateX(2px);
}


/* ─── ПРЕДМЕТИ (обов'язкові + на вибір) ─── */
.bot-subj-section {
  max-width: 860px;
  margin: 0 auto 32px;
}

.bot-subj-section:last-child {
  margin-bottom: 0;
}

.bot-subj-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-subj-badge {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--yellow);
  background: rgba(245,200,0,.1);
  border: 1px solid rgba(245,200,0,.2);
  padding: 3px 10px;
  border-radius: 6px;
}

.bot-subj-grid {
  display: grid;
  gap: 10px;
}

.bot-subj-required {
  grid-template-columns: repeat(3, 1fr);
}

.bot-subj-optional {
  grid-template-columns: repeat(3, 1fr);
}

.bot-subj {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.bs-purple { background: rgba(155,81,224,.08); border: 1.5px solid rgba(155,81,224,.18); }
.bs-green  { background: rgba(46,201,154,.06); border: 1.5px solid rgba(46,201,154,.15); }
.bs-yellow { background: rgba(245,200,0,.06);  border: 1.5px solid rgba(245,200,0,.15); }
.bs-red    { background: rgba(224,92,92,.06);   border: 1.5px solid rgba(224,92,92,.15); }

.bs-purple:hover { border-color: rgba(155,81,224,.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(155,81,224,.15); }
.bs-green:hover  { border-color: rgba(46,201,154,.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(46,201,154,.15); }
.bs-yellow:hover { border-color: rgba(245,200,0,.4);  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245,200,0,.1); }
.bs-red:hover    { border-color: rgba(224,92,92,.4);   transform: translateY(-3px); box-shadow: 0 8px 24px rgba(224,92,92,.15); }

.bot-subj-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.bot-subj-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-subj-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.bot-subj-meta {
  font-size: 11.5px;
  color: var(--muted);
}


/* ─── FAQ (картки замість акордеону) ─── */
.bot-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.bot-faq-card {
  border-radius: 20px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

.bot-faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}

.bfaq-1 { background: #0D0D1A; color: #F0F0FF; }
.bfaq-2 { background: #1A0A2E; color: #F0F0FF; }
.bfaq-3 { background: #0A1F16; color: #F0F0FF; }
.bfaq-4 { background: #1A1408; color: #F0F0FF; }
.bfaq-5 { background: #0A1520; color: #F0F0FF; }
.bfaq-6 { background: #1A0A0A; color: #F0F0FF; }
.bfaq-7 { background: #F5C800; color: #1A1208; }
.bfaq-8 { background: #0D0D1A; color: #F0F0FF; }

.bot-faq-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.bot-faq-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
  color: inherit;
  line-height: 1.3;
}

.bot-faq-card p {
  font-size: 12.5px;
  line-height: 1.65;
  opacity: .7;
  margin: 0;
  color: inherit;
}


/* ─── SCROLL REVEAL ─── */
.rev {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.rev.vis {
  opacity: 1;
  transform: translateY(0);
}

.bot-feat-card.rev { transition-delay: calc(var(--i, 0) * .08s); }
.bot-feat-card:nth-child(1) { --i: 0; }
.bot-feat-card:nth-child(2) { --i: 1; }
.bot-feat-card:nth-child(3) { --i: 2; }
.bot-feat-card:nth-child(4) { --i: 3; }
.bot-feat-card:nth-child(5) { --i: 4; }
.bot-feat-card:nth-child(6) { --i: 5; }
.bot-feat-card:nth-child(7) { --i: 6; }
.bot-feat-card:nth-child(8) { --i: 7; }


/* ─── BACK LINK ─── */
.back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.back-link:hover {
  color: var(--text);
}


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .bot-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bot-faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bot-hero {
    padding: 90px 16px 40px;
  }

  .bot-hero-emoji {
    font-size: 48px;
  }

  .bot-hero-sub {
    font-size: 14px;
  }

  .bot-hero-stats {
    gap: 10px;
  }

  .bot-stat {
    padding: 12px 18px;
  }

  .bot-stat-num {
    font-size: 22px;
  }

  .bot-features {
    padding: 56px 0 64px;
  }

  .bot-feat-top {
    padding: 0 16px 32px;
  }

  .bot-feat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bot-feat-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .bot-feat-bnum {
    font-size: 56px;
  }

  .bot-howto,
  .bot-commands,
  .bot-subjects,
  .bot-faq {
    padding: 56px 16px;
  }

  .bot-sec-head {
    margin-bottom: 32px;
  }

  .bot-steps {
    flex-direction: column;
    gap: 12px;
  }

  .bot-step-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .bot-step {
    min-width: unset;
    width: 100%;
    padding: 24px 20px;
  }

  .bot-cmd-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bot-cmd-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bot-subj-required,
  .bot-subj-optional {
    grid-template-columns: 1fr 1fr;
  }

  .bot-subj {
    padding: 14px 16px;
  }

  .bot-subj-emoji {
    font-size: 24px;
  }

  .bot-faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .bot-hero {
    padding: 80px 12px 32px;
  }

  .bot-hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .bot-hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .bot-feat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bot-subj-required,
  .bot-subj-optional {
    grid-template-columns: 1fr;
  }

  .bot-faq-grid {
    grid-template-columns: 1fr;
  }
}
