/* ═══════════════════════════════════════════════════
   SENKO page — enhanced styles & animations
   Layered on top of ../assets/css/styles.css
   ═══════════════════════════════════════════════════ */

/* ── Font override ── */
body {
  font-family: 'Inter', 'Trebuchet MS', 'Segoe UI', sans-serif;
}

/* ── Text alignment fixes ── */
h1 {
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  text-wrap: pretty;
}

.section-title {
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-copy {
  font-size: 15px;
}

.feature-card h3 {
  line-height: 1.2;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.7;
}

.stat strong {
  font-size: 22px;
  line-height: 1.2;
}

.stat span {
  line-height: 1.5;
}

/* ── Command bar marquee ── */
.command-bar {
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.command-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.command-chip {
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
  white-space: nowrap;
  font-family: 'Inter', monospace;
  font-weight: 600;
}

.command-chip:hover {
  transform: translateY(-3px) scale(1.06);
  background: rgba(255, 173, 78, 0.22);
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.15);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Staggered card reveal ── */
.feature-card,
.ritual-card,
.ritual-item,
.mini-panel {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card.card-visible,
.ritual-card.card-visible,
.ritual-item.card-visible,
.mini-panel.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Feature card enhanced hover ── */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  border-color: rgba(255, 214, 153, 0.32);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 200, 120, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 200, 120, 0.08),
    transparent 60%
  );
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

/* ── Feature icon pulse on card hover ── */
.feature-card:hover .feature-icon {
  animation: iconPop 0.45s ease;
}

@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15) rotate(-4deg); }
  70% { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1.04) translateY(-3px); }
}

/* ── Button shimmer ── */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -75%; }
  50% { left: 125%; }
}

.button:hover {
  box-shadow:
    0 20px 40px rgba(255, 161, 67, 0.4),
    0 0 60px rgba(255, 159, 67, 0.15);
}

/* ── Stat cards ── */
.stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}

.stat.stat-visible {
  animation: statReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.stat:nth-child(1).stat-visible { animation-delay: 0s; }
.stat:nth-child(2).stat-visible { animation-delay: 0.12s; }
.stat:nth-child(3).stat-visible { animation-delay: 0.24s; }

.verified-label {
  background: rgba(88, 101, 242, 0.15) !important;
  color: #5865f2 !important;
  border: 1px solid rgba(88, 101, 242, 0.2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verified-label svg {
  fill: currentColor;
}

.hero-copy .stats {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 20px !important;
}

.stat strong {
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

.stat span {
  font-size: 13px !important;
  opacity: 0.8;
}

.platform-support {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rise 1.2s ease both;
  animation-delay: 0.3s;
}

.platform-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-icons {
  display: flex;
  gap: 8px;
}

.platform-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: all 0.25s ease;
}

.platform-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@keyframes statReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 223, 188, 0.3);
  box-shadow: 
    0 15px 35px rgba(255, 159, 67, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy .actions {
  margin-top: auto;
}

.hero-copy .stats {
  margin-top: 20px;
}

/* ── Support card right — expanded ── */
.support-card-right .section-title {
  font-size: clamp(24px, 4vw, 34px);
}

.support-desc {
  margin-bottom: 14px;
  font-size: 14px;
}

/* ── Mini panels with icons & arrows ── */
.mini-panel-action {
  display: flex !important;
  align-items: center;
  gap: 14px;
}

.mini-panel-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 224, 163, 0.2), rgba(255, 151, 83, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.mini-panel-icon svg {
  width: 22px;
  height: 22px;
}

.mini-panel-action:hover .mini-panel-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(145deg, rgba(255, 224, 163, 0.32), rgba(255, 151, 83, 0.18));
}

.mini-panel-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mini-panel-action:hover .mini-panel-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mini-panel-body {
  flex: 1;
  min-width: 0;
}

/* ── Invite panel glow ── */
.invite-panel {
  position: relative;
  overflow: hidden;
}

.invite-panel::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 220%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 183, 78, 0.06),
    transparent 60%
  );
  animation: inviteGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes inviteGlow {
  from { transform: translateX(-15%) rotate(-2deg); opacity: 0.5; }
  to { transform: translateX(15%) rotate(2deg); opacity: 1; }
}

/* ── Profile shell improvements ── */
.profile-banner {
  position: relative;
  height: 200px;
  background: 
    linear-gradient(to bottom, transparent 50%, #2a120b 98%, #2a120b 100%),
    url("../assets/images/banner.webp") center/cover no-repeat;
  border-radius: 34px 34px 0 0;
}

.profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 200, 120, 0.08) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: bannerSheen 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes bannerSheen {
  0%, 100% { background-position: 200% 200%; }
  50% { background-position: -100% -100%; }
}

/* ── Avatar ring animation ── */
.avatar-wrap {
  position: relative;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: avatarSpin 6s linear infinite;
  opacity: 0.4;
}

@keyframes avatarSpin {
  to { transform: rotate(360deg); }
}

/* ── Presence dot enhanced ── */
.presence-dot {
  animation: ping 2.2s infinite, presenceGlow 3s ease-in-out infinite alternate;
}

@keyframes presenceGlow {
  from { box-shadow: 0 0 0 4px rgba(109, 255, 153, 0.12); }
  to { box-shadow: 0 0 12px 6px rgba(109, 255, 153, 0.22); }
}

/* ── Hero layout fix for empty space ── */
.hero {
  align-items: start !important;
}

/* ── Redesigned Profile Badges ── */
.profile-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(18, 9, 5, 0.4);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  position: relative;
  cursor: pointer;
}

.profile-badge svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-badge:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(255, 210, 122, 0.4));
}

/* Tooltip for badges */
.profile-badge::before {
  content: attr(data-label);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(18, 18, 24, 0.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}

.profile-badge::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: rgba(18, 18, 24, 0.92) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.profile-badge:hover::before,
.profile-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Ritual num animated entrance ── */
.ritual-item:hover .ritual-num {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.25);
}

.ritual-num {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ritual-item {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ritual-item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 214, 153, 0.18);
  background: rgba(255, 249, 239, 0.06);
}

/* ── Footer link underline animation ── */
.footer a {
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

/* ── Topbar subtle glow line ── */
.topbar {
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 183, 78, 0.3),
    transparent
  );
  opacity: 0;
  animation: topbarGlow 3s ease-in-out 1s forwards;
}

@keyframes topbarGlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Nav link active indicator ── */
.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 60%;
}

/* ── Floating particles (decorative) ── */
body::before {
  background-image:
    linear-gradient(rgba(255, 223, 188, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 223, 188, 0.03) 1px, transparent 1px),
    radial-gradient(circle 2px, rgba(255, 200, 120, 0.15) 100%, transparent 100%);
  background-size: 36px 36px, 36px 36px, 120px 120px;
  background-position: 0 0, 0 0, 30px 30px;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  to { background-position: 36px 36px, 36px 36px, 66px 66px; }
}

/* ── Label hover effect ── */
.label {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.label:hover {
  transform: translateY(-2px);
  background: rgba(255, 179, 77, 0.2);
  box-shadow: 0 6px 16px rgba(255, 159, 67, 0.12);
}

/* ── Responsive fixes ── */
@media (max-width: 760px) {
  .command-track {
    animation-duration: 20s;
  }

  .mini-panel-action {
    flex-wrap: nowrap;
  }

  .mini-panel-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .mini-panel-icon svg {
    width: 18px;
    height: 18px;
  }

  .support-desc {
    font-size: 13px;
  }
}

/* ── Fix profile shell corners ── */
.profile-shell {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
}

/* Live Stats Block */
.bot-live-stats {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: card-reveal-anim 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
  animation-delay: 0.25s;
}

.live-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.live-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.live-stat-value {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.live-stat-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
}

@keyframes card-reveal-anim {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bot Version Tag */
.bot-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-version-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.bot-version-tag.is-visible {
  opacity: 1;
  transform: scale(1);
}
