/* =====================================================================
   ArtistBots — Home page (logged-out) live-animation styles
   Loaded only by templates/index.html. Uses variables from style.css.
   ===================================================================== */

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-c), var(--accent-a), var(--accent-b));
  pointer-events: none;
}

/* ---------- Hero (sky-blue gradient panel) ---------- */
.hero-wrap {
  position: relative; overflow: hidden;
  /* frameless: full-width, no rounded card / shadow, fades into the page */
  width: 100%; margin: 0; border-radius: 0; box-shadow: none;
  background:
    radial-gradient(900px 380px at 50% 100%, rgba(47,111,235,.22), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #eaf1ff 40%, #d6e4ff 75%, var(--bg) 100%);
}
#heroParticles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-wrap .hero { position: relative; z-index: 2; }
.hero-wrap::after { content: none; }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(18,161,80,.7); animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(18,161,80,.6); }
  70% { box-shadow: 0 0 0 10px rgba(18,161,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); }
}

.hero-typed { font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 600; margin-bottom: 14px; color: var(--navy); }
.typed-word { font-family: var(--font-head); font-style: normal; font-weight: 800; color: var(--accent-a); }
.caret, .t-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: text-bottom;
  background: var(--accent-a); animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.btn-glow { position: relative; animation: glowPulse 2.8s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 8px 26px -8px rgba(47,111,235,.55); }
  50%     { box-shadow: 0 10px 40px -4px rgba(91,141,239,.85); }
}
.btn-glow:hover { transform: translateY(-2px); }

/* Equalizer */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 54px; margin: 46px auto 0; max-width: 520px; }
.eq i {
  flex: 1; max-width: 8px; height: 100%; border-radius: 4px 4px 0 0;
  background: var(--c, #1e6fe0);
  transform-origin: bottom; transform: scaleY(.15); opacity: .9;
  animation: eqBar var(--dur, 1s) ease-in-out var(--del, 0s) infinite alternate,
    eqColor 9s linear calc(var(--del, 0s) * 6) infinite;
}
@keyframes eqColor {
  0%, 100% { background-color: #e53935; } /* red */
  17% { background-color: #1e6fe0; }      /* blue */
  33% { background-color: #1faa59; }      /* green */
  50% { background-color: #ec407a; }      /* pink */
  67% { background-color: #ff9933; }      /* saffron */
  83% { background-color: #7e57c2; }      /* violet */
}
@keyframes eqBar { from { transform: scaleY(.12); } to { transform: scaleY(var(--h, 1)); } }

/* Floating chips (desktop only) */
.float-chip {
  position: absolute; z-index: 1; display: none; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px rgba(20,40,110,.55);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip-yt { top: 22%; left: 6%;  color: #ff4d4d; }
.chip-sp { top: 58%; left: 10%; color: #1db954; animation-delay: -2s; }
.chip-tg { top: 26%; right: 7%; color: #2aabee; animation-delay: -4s; }
.chip-dc { top: 60%; right: 9%; color: #6f82ff; animation-delay: -1s; }
.float-chip { color: var(--text); }
.float-chip i { color: inherit; }
.chip-yt i { color: #ff4d4d; } .chip-sp i { color: #1db954; } .chip-tg i { color: #2aabee; } .chip-dc i { color: #6f82ff; }
@keyframes chipFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@media (min-width: 1150px) { .float-chip { display: inline-flex; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 16px 0; margin-top: 28px; border-block: 1px solid var(--card-border);
  background: rgba(255,255,255,.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { white-space: nowrap; color: var(--text-dim); font-weight: 700; font-size: .95rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Stats ---------- */
.hstats { max-width: 1000px; margin: 0 auto; padding: 60px 24px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hstat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: border-color .25s, transform .25s, box-shadow .25s; }
.hstat:hover { border-color: #b7c9f2; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hstat-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat-label { color: var(--text); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.hstat-label small { color: var(--text-dim); font-weight: 400; font-size: .78rem; }

/* ---------- Section helpers ---------- */
.section-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: -22px auto 32px; }
.demo, .steps-section, .code-section { max-width: 1000px; margin: 0 auto; padding: 50px 24px 30px; }
.demo-note { text-align: center; color: var(--text-dim); font-size: .8rem; margin-top: 14px; }

/* ---------- Terminal demo (legacy block, kept in sync) ---------- */
.terminal {
  background: var(--ink); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(10,42,148,.6);
}
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ink-bar); border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; }
.d-r { background: #ff5f57; } .d-y { background: #febc2e; } .d-g { background: #28c840; }
.term-tabs { display: flex; gap: 6px; flex: 1; }
.term-tab {
  background: transparent; border: 1px solid transparent; color: rgba(219,230,255,.7); cursor: pointer;
  padding: 5px 12px; border-radius: 8px; font: 700 .8rem var(--font-body); transition: all .2s;
}
.term-tab:hover { color: #fff; }
.term-tab.active { color: #fff; background: rgba(74,141,255,.24); border-color: rgba(120,170,255,.55); }
.term-status { display: inline-flex; align-items: center; gap: 7px; font: 600 .75rem 'Menlo','Consolas',monospace; color: rgba(219,230,255,.7); }
.term-status i { width: 8px; height: 8px; border-radius: 50%; background: #7f8fbd; }
.term-status[data-state="loading"] { color: #fbbf24; } .term-status[data-state="loading"] i { background: #fbbf24; animation: livePulse 1s infinite; }
.term-status[data-state="ok"] { color: #4ade80; }      .term-status[data-state="ok"] i { background: #4ade80; }
.term-body {
  padding: 22px 22px 26px; min-height: 250px; font: .88rem/1.7 'Menlo','Consolas',monospace;
  color: #d6e2ff; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.t-line { animation: lineIn .25s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.t-prompt { color: #8fc0ff; font-weight: 700; }
.tok-method { color: #93c5fd; font-weight: 700; }
.tok-path { color: #fde68a; }
.tok-dim { color: #8fa0cc; }
.tok-num { color: #fbbf24; }
.t-ok { color: #4ade80; font-weight: 700; }
.t-wait { color: #fbbf24; }
.t-dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%,100% { content: '...'; } }
.term-progress { height: 3px; background: rgba(255,255,255,.08); }
.term-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0a2a94, #1553f5, #4a8dff); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 66px; }
.steps-line { position: absolute; top: 24px; left: 16.6%; right: 16.6%; height: 2px; background: rgba(47,111,235,.14); z-index: 0; }
.steps-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-c), var(--accent-b)); transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.steps.in-view .steps-line i { width: 100%; }
.step { position: relative; z-index: 1; text-align: center; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -66px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 800 1.3rem var(--font-head); color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 24px -8px rgba(47,111,235,.7); border: 4px solid var(--bg);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .9rem; }
.step code, .feature-card code { background: rgba(47,111,235,.08); color: var(--accent-c); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.steps-section .steps { margin-top: 20px; }

/* ---------- Feature cards: cursor spotlight + icon float ---------- */
.feature-card.spot { position: relative; overflow: hidden; }
.feature-card.spot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(47,111,235,.10), transparent 60%);
}
.feature-card.spot:hover::before { opacity: 1; }
.feature-card .feature-icon { display: flex; align-items: center; width: fit-content; min-height: 36px; animation: iconBob 4.5s ease-in-out infinite; }
.feature-card:nth-child(2n) .feature-icon { animation-delay: -1.5s; }
.feature-card:nth-child(3n) .feature-icon { animation-delay: -3s; }
@keyframes iconBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Line-icon feature cards get a light-blue tile so they read as deliberate
   "logo" marks, matching the two branded (YouTube / Spotify) icons above. */
.feature-card .feature-icon:not(.icon-svg) {
  width: 40px; height: 40px; border-radius: 12px; justify-content: center;
  background: linear-gradient(135deg, #eef2fb, #c9d8f7);
  border: 1px solid #c9d8f7; color: var(--accent-a);
}
.feature-card:nth-child(3n) .feature-icon:not(.icon-svg) {
  background: linear-gradient(135deg, #e3ebfd, #c9d8f7); border-color: #a9c1f0; color: var(--accent-c);
}

/* ---------- Code card ---------- */
.code-card { background: var(--ink); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -36px rgba(10,42,148,.6); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--ink-bar); border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs { display: flex; gap: 6px; }
.code-tab { background: transparent; border: 1px solid transparent; color: rgba(219,230,255,.7); cursor: pointer; padding: 5px 12px; border-radius: 8px; font: 700 .8rem var(--font-body); transition: all .2s; }
.code-tab:hover { color: #fff; }
.code-tab.active { color: #fff; background: rgba(74,141,255,.22); border-color: rgba(120,170,255,.5); }
.code-pane { display: none; margin: 0; padding: 22px; overflow-x: auto; font: .86rem/1.7 'Menlo','Consolas',monospace; color: #d6e2ff; }
.code-pane.active { display: block; animation: lineIn .35s ease both; }

/* ---------- Locked code teaser (signed-out) ---------- */
.code-locked { position: relative; }
.code-locked .code-tab { cursor: default; }
.lock-chip { font: 700 .78rem var(--font-body); color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.32); padding: 4px 10px; border-radius: 999px; }
.code-ghost { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 290px; filter: blur(2px); opacity: .55; }
.code-ghost i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(74,141,255,.65), rgba(143,192,255,.4)); animation: ghostPulse 2.4s ease-in-out infinite; }
.code-ghost i:nth-child(2n) { animation-delay: -.8s; } .code-ghost i:nth-child(3n) { animation-delay: -1.6s; }
@keyframes ghostPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.code-lock-overlay {
  position: absolute; inset: 49px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 26px; background: linear-gradient(to bottom, rgba(11,20,51,.25), rgba(11,20,51,.9) 55%);
  color: #fff;
}
.lock-icon { font-size: 2rem; margin-bottom: 8px; animation: iconBob 3.5s ease-in-out infinite; }
.code-lock-overlay h3 { font-size: 1.15rem; margin-bottom: 8px; }
.code-lock-overlay p { color: rgba(219,230,255,.8); font-size: .92rem; max-width: 460px; margin-bottom: 18px; }

/* ---------- Telegram live chat additions ---------- */

/* ---------- Pricing (home): plain white section, shared card base lives in style.css ---------- */
.pricing {
  max-width: 1100px; margin: 0 auto; padding: 20px 24px 70px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hstats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 80px; padding-top: 40px; }
  .steps-line { display: none; }
  .hero-wrap .hero { padding-top: 60px; }
  .pricing { padding: 12px 16px 50px; }
  .term-tabs { order: 3; flex-basis: 100%; }
  .term-body { min-height: 220px; font-size: .8rem; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-chip, .eq i, .btn-glow, .live-dot, .caret, .t-caret,
  .feature-card .feature-icon, .code-ghost i, .lock-icon { animation: none !important; }
  .eq i { transform: scaleY(.5); }
  .steps-line i { transition: none; }
}

.lock-chip-open { color: #4ade80; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.35); }

.hero-cta .btn-lg { padding: 10px 22px; font-size: .92rem; }

/* =====================================================================
   PHONE — compact layout (<= 600px). Everything is scaled down so the
   landing page no longer feels oversized on small screens.
   ===================================================================== */
@media (max-width: 600px) {
  html { font-size: 14.5px; }                       /* shrinks every rem-based size ~10% */

  /* Hero */
  .hero-wrap .hero { padding: 34px 16px 28px; }
  .hero-badge { font-size: .74rem; padding: 5px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 12px; }
  .hero-typed { font-size: 1rem; margin-bottom: 10px; }
  .hero-sub { font-size: .94rem; margin-bottom: 20px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; max-width: 230px; justify-content: center; }
  .btn-lg, .hero-cta .btn-lg { padding: 9px 16px; font-size: .86rem; }
  .eq { height: 32px; margin-top: 26px; gap: 3px; }

  /* Marquee + stats */
  .marquee { padding: 10px 0; margin-top: 16px; }
  .marquee-track { gap: 28px; }
  .marquee-track span { font-size: .82rem; }
  .hstats { padding: 28px 14px 4px; gap: 10px; }
  .hstat { padding: 14px 8px; }
  .hstat-num { font-size: 1.7rem; }
  .hstat-label { font-size: .8rem; margin-top: 4px; }
  .hstat-label small { font-size: .7rem; }

  /* Section headings */
  .section-title { font-size: 1.4rem; margin: 16px 0 22px; padding: 0 6px; }
  .section-sub { font-size: .88rem; margin: -10px auto 20px; padding: 0 16px; }

  /* 3 steps */
  .steps-section, .code-section { padding: 30px 16px 14px; }
  .steps { gap: 58px; padding-top: 34px; }
  .step { padding: 20px 16px; }
  .step-num { width: 44px; height: 44px; top: -54px; font-size: 1.1rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .86rem; }

  /* Feature cards */
  .features { padding: 24px 16px 36px; }
  .grid-3 { gap: 12px; }
  .feature-card { padding: 18px; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: .86rem; }

  /* Pricing */
  .pricing { padding: 12px 16px 36px; }
  .pricing-toggle-note { font-size: .82rem; margin: -10px auto 20px; }
  .pricing-track { gap: 14px; }
  .pricing-track .price-card { width: min(250px, 74vw); }
  .price-card { padding: 20px; gap: 12px; border-radius: 20px; }
  .price-card.best { transform: none; }
  .price-card.best:hover { transform: none; }
  .price-amount { font-size: 1.9rem; }
  .price-specs { font-size: .84rem; gap: 7px; }

  /* Telegram promo */
  .bot-promo { padding: 20px 16px 36px; }
  .bot-promo-inner { padding: 24px 18px; border-radius: 24px; gap: 20px; }
  .bot-promo-text h2 { font-size: 1.4rem; margin-bottom: 10px; }
  .bot-promo-text p { font-size: .9rem; margin-bottom: 16px; }

}

/* Telegram music bot repo cards */
.repo-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.repo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.repo-head h3 { margin: 0; }
.repo-ico { color: var(--text); display: inline-flex; flex-shrink: 0; }
.repo-btn { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 700px) { .repo-grid { grid-template-columns: 1fr; } }
