/* ============================================================================
   Arian Client — landing "life" layer (loaded after layout.css, overrides ok).
   Motion & flourish only: hero entrance, flowing gradients, module ticker,
   card spotlight, animated featured-plan ring, purchase channels split into
   two distinct branded panels (Discord / FunPay).
   Respects prefers-reduced-motion via the global kill-switch in tokens.css.
   ============================================================================ */

/* ------------------------------------------------------------ hero entrance */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: none;             filter: none; }
}
.hero-enter > * { animation: heroUp 0.75s var(--ease-soft) both; }
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.14s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.24s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.34s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.44s; }

/* flowing gradient on the highlighted hero line */
@keyframes gradFlow { to { background-position: 250% center; } }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-light), var(--brand), #d8b4fe, var(--brand-light));
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 7s linear infinite;
}

/* -------------------------------------------------------- richer reveal-in */
.reveal { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(6px);
  transition: opacity 0.65s var(--ease-soft), transform 0.65s var(--ease-soft), filter 0.65s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* section heading — animated accent underline */
.section-head h2 { position: relative; padding-bottom: 14px; }
.section-head h2::after {
  content: ''; position: absolute; left: 1px; bottom: 0; height: 3px; width: 58px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
  background-size: 200% auto; animation: shine 3s linear infinite;
}

/* --------------------------------------------------------- module ticker */
.ticker {
  position: relative; z-index: 1; overflow: hidden; padding: 2px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.ticker-track {
  display: flex; align-items: center; gap: 30px; width: max-content; padding: 8px 0;
  animation: tickerScroll 38s linear infinite;
}
.ticker-track .mod {
  font-family: 'SFSemibold', var(--font); font-size: 13px; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.34); white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.ticker-track .tdot {
  width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); opacity: 0.55; box-shadow: 0 0 6px var(--brand);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker:hover .mod { color: rgba(255, 255, 255, 0.6); }

/* ------------------------------------------------- cursor spotlight on cards */
[data-spot] { position: relative; }
[data-spot]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    var(--spot-color, rgba(139, 92, 246, 0.13)), transparent 68%);
}
[data-spot]:hover::after { opacity: 1; }

/* feature cards — icon pop + border light on hover */
.feature { will-change: transform; }
.feature:hover .ico { transform: scale(1.08) rotate(-4deg); box-shadow: 0 8px 22px -8px var(--brand-30); }
.feature .ico { transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s var(--ease); }

/* ------------------------------------------- featured plan: rotating ring */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinAng { to { --ang: 360deg; } }
.price.featured::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg),
    transparent 0%, var(--brand) 10%, var(--brand-light) 18%, transparent 30%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAng 4.5s linear infinite;
}
/* tilt cards: JS drives transform — drop the CSS transform transition so the
   motion tracks the cursor 1:1 (return transition is set inline on leave). */
.price[data-tilt] { transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.price .now { display: inline-block; min-width: 2ch; }

/* ------------------------------------------------- purchase channel panels */
.channels { display: flex; flex-direction: column; gap: 18px; }
.channel {
  display: flex; align-items: center; gap: 28px; padding: 30px 32px;
  border-radius: var(--r-lg);
}
.channel::before {
  content: ''; position: absolute; left: 0; top: 16%; bottom: 16%; width: 3px; border-radius: 3px;
  background: var(--ch-accent-grad, linear-gradient(180deg, var(--brand), var(--brand-light)));
}
.channel .ch-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s var(--ease);
}
.channel:hover .ch-ico { transform: scale(1.07) rotate(-3deg); }
.channel .ch-ico .icon { width: 27px; height: 27px; }
.channel .ch-text { flex: 1; min-width: 0; }
.channel h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; }
.channel .ch-sub { display: block; font-size: 12.5px; font-weight: 700; margin: 3px 0 10px; }
.channel .body { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.channel .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.channel .ch-cta { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 240px; }

/* Discord panel — blurple identity */
.channel.discord-ch {
  --spot-color: rgba(88, 101, 242, 0.14);
  --ch-accent-grad: linear-gradient(180deg, #5865f2, #8c9eff);
}
.channel.discord-ch .ch-ico { background: rgba(88, 101, 242, 0.14); color: #8c9eff; border: 1px solid rgba(88, 101, 242, 0.3); }
.channel.discord-ch:hover .ch-ico { box-shadow: 0 10px 26px -10px rgba(88, 101, 242, 0.55); }
.channel.discord-ch .ch-sub { color: #8c9eff; }
.channel.discord-ch:hover { border-color: rgba(88, 101, 242, 0.35); }
.btn-discord {
  color: #fff;
  background: linear-gradient(90deg, #5865f2, #7c86ff, #5865f2);
  background-size: 200% auto; animation: shine 3s linear infinite;
}
.btn-discord:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(88, 101, 242, 0.5); }
.btn-discord:active:not(:disabled) { transform: scale(0.98); }

/* FunPay panel — amber identity */
.channel.funpay-ch {
  --spot-color: rgba(255, 152, 0, 0.11);
  --ch-accent-grad: linear-gradient(180deg, #ff9800, #ffc107);
}
.channel.funpay-ch .ch-ico { background: rgba(255, 152, 0, 0.12); color: #ffb74d; border: 1px solid rgba(255, 152, 0, 0.26); }
.channel.funpay-ch:hover .ch-ico { box-shadow: 0 10px 26px -10px rgba(255, 152, 0, 0.45); }
.channel.funpay-ch .ch-sub { color: #ffb74d; }
.channel.funpay-ch:hover { border-color: rgba(255, 152, 0, 0.32); }
.btn-funpay {
  color: #1c1300;
  background: linear-gradient(90deg, #ffb74d, #ffd54f, #ffb74d);
  background-size: 200% auto; animation: shine 3s linear infinite;
}
.btn-funpay:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(255, 167, 38, 0.45); }
.btn-funpay:active:not(:disabled) { transform: scale(0.98); }

.channel .ch-hint { font-size: 11.5px; color: var(--faint); text-align: center; }

@media (max-width: 860px) {
  .channel { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 22px; }
  .channel .ch-head-row { display: flex; align-items: center; gap: 14px; }
  .channel .ch-cta { min-width: 0; }
}
.channel .ch-head-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.channel .ch-head-row .ch-titles { min-width: 0; }
.channel .ch-head-row h3 { margin: 0; }

/* --------------------------------------------------------------- footer fx */
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-30), transparent);
}
