/* ============================================================
   KaspaNova — LANDING PAGE STYLES
   Hero • Sections • Stats • Charts • FAQ 
   Depends on: kaspanova.base.css
============================================================ */

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.kn-hero-section {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.kn-hero-title {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .kn-hero-title {
    font-size: 3rem;
  }
}

.kn-hero-section .lead {
  max-width: 560px;
}

/* ------------------------------------------------------------
   FEATURE GRID
------------------------------------------------------------ */
.kn-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(122,61,241,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.kn-feature-icon svg {
  stroke: var(--kn-purple);
}

/* ------------------------------------------------------------
   SECTIONS
------------------------------------------------------------ */
.kn-section {
  padding-block: 4rem;
}

.kn-section.bg-transparent {
  background: transparent;
}

/* ------------------------------------------------------------
   STATS CARDS
------------------------------------------------------------ */
.kn-stat-card {
  border-radius: 24px;
  background: radial-gradient(circle at top left, #111827 0%, #020617 70%);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 1.6rem;
  box-shadow:
    0 0 20px rgba(122,61,241,0.22),
    0 0 40px rgba(122,61,241,0.15);
}

body.theme-light .kn-stat-card {
  background: #ffffff;
  border: 1px solid rgba(122,61,241,0.2);
  box-shadow:
    0 0 14px rgba(122,61,241,0.15),
    inset 0 0 14px rgba(255,255,255,0.15);
}

.kn-stat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.kn-stat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(122,61,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kn-stat-header-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--kn-purple);
}

.kn-stat-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.kn-stat-subtitle {
  font-size: 0.78rem;
  color: var(--kn-text-muted);
}

.kn-stat-line {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.kn-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.8);
}

.kn-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--kn-green);
}

/* ------------------------------------------------------------
   STAT PILLS
------------------------------------------------------------ */
.kn-stat-pill {
  display: inline-flex;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.kn-stat-pill-up {
  background: rgba(34,197,94,0.16);
  color: #4ade80;
}

.kn-stat-pill-down {
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
}

.kn-stat-pill-neutral {
  background: rgba(148,163,184,0.16);
  color: var(--kn-text-muted);
}

/* ------------------------------------------------------------
   CHART CARD
------------------------------------------------------------ */
.kn-chart-card {
  border-radius: 24px;
  padding: 1.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148,163,184,0.25);
  position: relative;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 35px rgba(122,61,241,0.35),
    inset 0 0 12px rgba(122,61,241,0.25);
}

body.theme-light .kn-chart-card {
  background: #ffffff;
  border: 1px solid rgba(122,61,241,0.25);
  box-shadow:
    0 0 20px rgba(122,61,241,0.18),
    inset 0 0 16px rgba(122,61,241,0.08);
}

.kn-chart-wrapper {
  padding: 0.6rem;
  border-radius: 18px;
}

.kn-chart-card canvas {
  width: 100% !important;
}

#kasPriceChart {
  max-height: 320px !important;
}

/* Spinner */
.kn-chart-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.65);
  border-radius: 18px;
}

/* ------------------------------------------------------------
   RANGE BUTTONS
------------------------------------------------------------ */
.kn-range-btn {
  border: 1px solid rgba(122,61,241,0.35);
  background: transparent;
  padding: 0.3rem 0.8rem;
  border-radius: var(--kn-radius-pill);
  font-size: 0.82rem;
  color: var(--kn-text-muted);
  cursor: pointer;
  transition: var(--kn-transition);
}

.kn-range-btn:hover {
  background: rgba(122,61,241,0.15);
  color: var(--kn-purple);
}

.kn-range-btn.active {
  background: var(--kn-purple);
  border-color: var(--kn-purple);
  color: white;
}

/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------ */
.kn-faq-item {
  border-radius: var(--kn-radius-lg);
  overflow: hidden;
  background: var(--kn-bg-elevated);
  border: 1px solid var(--kn-border);
  margin-bottom: 0.75rem;
}

.kn-faq-item .accordion-button {
  background: transparent;
  color: var(--kn-text);
}

.kn-faq-item .accordion-button:not(.collapsed) {
  background: rgba(122,61,241,0.12);
  color: var(--kn-purple);
}

.kn-faq-item .accordion-body {
  color: var(--kn-text-muted);
}

/* ------------------------------------------------------------
   LANDING ANIMATIONS
------------------------------------------------------------ */
.kn-animate {
  opacity: 0;
  transform: translateY(8px);
}

.kn-animate-in {
  animation: kn-fade-up 0.45s ease-out forwards;
}

@keyframes kn-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ------------------------------------------------------------
   KASWARE LOGO — FIX TAILLE
------------------------------------------------------------ */

.checkout-actions img {
  height: 26px;
  max-height: 26px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------
   KASWARE BUTTONS — CLEAN / PURPLE / FINAL
------------------------------------------------------------ */

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   CONNECT KASWARE — KASPA GREEN (CLEAN)
============================================================ */

.checkout-actions .btn-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 44px;
  border-radius: 12px;

  background: linear-gradient(135deg, #70C7BA, #4ade80);
  color: #020617;

  font-size: 0.85rem;
  font-weight: 700;

  border: none;
  cursor: pointer;
  transition: all .18s ease;
}

/* KasWare logo */
.checkout-actions .btn-wallet img {
  height: 24px;
  width: auto;

  /* harmonise le logo avec le bouton vert */
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 6px rgba(112,199,186,0.55));
}

/* Hover */
.checkout-actions .btn-wallet:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 18px rgba(112,199,186,0.55);
}

/* ============================================================
   PAY WITH KASWARE (PURPLE PRIMARY)
============================================================ */

.checkout-actions .btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 44px;
  border-radius: 12px;

  background: linear-gradient(135deg, #7A3DF1, #9F7FFF);
  color: #ffffff;

  font-size: 0.85rem;
  font-weight: 700;

  border: none;
  cursor: pointer;
  transition: all .18s ease;
}

/* Lucide icon (zap) */
.checkout-actions .btn-pay svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
}

/* KasWare logo recoloré en mauve */
.checkout-actions .btn-pay img {
  height: 18px;
  width: auto;

  /* 🎯 recoloration purple sans toucher au PNG */
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 6px rgba(122,61,241,0.55));
}

.checkout-actions .btn-pay:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 18px rgba(122,61,241,0.55);
}


/* ============================================================
   DARK / LIGHT SAFETY FIXES — LANDING (CLEAN & MOBILE-FIRST)
   Scope: Landing page ONLY
============================================================ */

/* ------------------------------------------------------------
   STATS — lisibilité garantie (dark + light)
------------------------------------------------------------ */
.kn-stat-label {
  color: var(--kn-text-muted);
}

/* ------------------------------------------------------------
   FAQ — contraste et focus propre en light
------------------------------------------------------------ */
body.theme-light .kn-faq-item .accordion-button {
  color: var(--kn-text);
}

body.theme-light .kn-faq-item .accordion-button:not(.collapsed) {
  background: rgba(122,61,241,0.08);
  color: var(--kn-purple);
}

/* ------------------------------------------------------------
   CHART — spinner lisible en light
------------------------------------------------------------ */
body.theme-light .kn-chart-spinner {
  background: rgba(255,255,255,0.78);
}

/* ------------------------------------------------------------
   NAVBAR — links en light (desktop only)
   👉 le mobile utilise son propre drawer
------------------------------------------------------------ */
@media (min-width: 769px) {
  body.theme-light .kn-nav-link {
    color: #4b5563;
  }

  body.theme-light .kn-nav-link:hover {
    color: var(--kn-green);
  }
}

/* ============================================================
   MOBILE OPTIMISATIONS — LANDING
============================================================ */
@media (max-width: 768px) {

  /* ----------------------------------------------------------
     HERO — typographie lisible, centrée, pas écrasée
  ---------------------------------------------------------- */
  .kn-hero-title {
    font-size: 2.1rem;
    line-height: 1.15;
    text-align: center;
  }

  .kn-hero-section .lead,
  .kn-hero-section p {
    max-width: 92%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* ----------------------------------------------------------
     CHECKOUT DEMO — respiration verticale
  ---------------------------------------------------------- */
  .checkout-card {
    margin-top: 1.75rem;
  }
}
/* ==========================================================================
   KASPANOVA — PLATFORMS (LANDING)
   Scope: landing.html ONLY
   FINAL / CLEAN / PRODUCTION READY
========================================================================== */

/* ==========================================================
   PLATFORMS — WRAPPER
========================================================== */
.kn-platforms-wrapper {
  margin-top: 32px;
  padding: 26px 26px 30px;
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(122,61,241,0.16),
    var(--kn-bg)
  );

  border: 1px solid rgba(122,61,241,0.35);
  box-shadow:
    0 0 0 1px rgba(122,61,241,0.25),
    0 0 32px rgba(122,61,241,0.35),
    inset 0 0 0 1px rgba(73,234,203,0.10);
}

/* ==========================================================
   PLATFORM CARD — BASE
========================================================== */
.kn-platform-card {
  position: relative;
  height: 100%;

  background: var(--kn-bg-elevated);
  border: 1px solid var(--kn-border);
  border-radius: 20px;

  padding: 18px 16px 22px;
  text-align: center;

  transition: transform .25s ease, box-shadow .25s ease;
  animation: knFadeUp .45s ease forwards;
}

.kn-platform-card:hover {
  transform: translateY(-2px);
}

/* ==========================================================
   PLATFORM LOGO
========================================================== */
.kn-platform-logo-wrap {
  width: 100%;
  height: 86px;
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    rgba(122,61,241,0.18),
    rgba(122,61,241,0.06)
  );

  border-radius: 22px;
  border: 1px solid rgba(122,61,241,0.25);
  transition: background .25s ease;
}

.kn-platform-logo {
  max-height: 56px;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(1.08);
  transition: transform .25s ease;
}

.kn-platform-card:hover .kn-platform-logo-wrap {
  background: rgba(122,61,241,0.22);
}

.kn-platform-card:hover .kn-platform-logo {
  transform: scale(1.08);
}

/* ==========================================================
   TEXT
========================================================== */
.kn-platform-card h6 {
  margin: 4px 0 6px;
  font-weight: 600;
  color: var(--kn-purple);
}

.kn-platform-card p {
  font-size: 0.85rem;
  line-height: 1.35;
  min-height: 38px;
  color: var(--kn-text-muted);
}

/* ==========================================================
   BADGES — POSITION
========================================================== */
.kn-platform-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.kn-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================
   BADGES — STATUS
========================================================== */
.kn-badge-online {
  background: rgba(34,197,94,0.22);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.45);
}

.kn-badge-offline {
  background: rgba(239,68,68,0.18);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.45);
}

/* ==========================================================
   OFFLINE STATE — GRAY CONTENT (BADGE STAYS RED)
========================================================== */
.kn-platform-card.is-offline {
  opacity: 0.55;
  pointer-events: none;
}

.kn-platform-card.is-offline
.kn-platform-logo,
.kn-platform-card.is-offline h6,
.kn-platform-card.is-offline p {
  filter: grayscale(1) brightness(0.9);
}

/* Force OFFLINE badge to stay vivid */
.kn-platform-card.is-offline .kn-badge-offline {
  filter: none !important;
  opacity: 1 !important;
  box-shadow:
    0 0 0 1px rgba(239,68,68,0.6),
    0 0 10px rgba(239,68,68,0.35);
}

/* ==========================================================
   ONLINE STATE — BASE GLOW
========================================================== */
.kn-platform-card.is-online {
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.25),
    0 0 24px rgba(34,197,94,0.18);
}

/* ==========================================================
   ONLINE STATE — SUBTLE PULSE (AFTER ENTRY)
========================================================== */
@keyframes knOnlinePulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(34,197,94,0.25),
      0 0 18px rgba(34,197,94,0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(34,197,94,0.35),
      0 0 28px rgba(34,197,94,0.28);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(34,197,94,0.25),
      0 0 18px rgba(34,197,94,0.18);
  }
}

.kn-platform-card.is-online {
  animation:
    knFadeUp .45s ease forwards,
    knOnlinePulse 4.5s ease-in-out infinite;
}

/* Pause pulse on hover (UX premium) */
.kn-platform-card.is-online:hover {
  animation-play-state: paused;
}

/* ==========================================================
   BUTTON ALIGNMENT
========================================================== */
.kn-platform-card .kn-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================
   ENTRY ANIMATION
========================================================== */
@keyframes knFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================
   MOBILE TUNING
========================================================== */
@media (max-width: 768px) {

  .kn-platforms-wrapper {
    padding: 20px 18px 22px;
  }

  .kn-platform-card {
    padding: 16px 14px 20px;
  }

  .kn-platform-logo-wrap {
    height: 78px;
  }

  .kn-platform-card p {
    font-size: 0.82rem;
  }

  /* Disable pulse on mobile for perf */
  .kn-platform-card.is-online {
    animation:
      knFadeUp .45s ease forwards;
  }
}


/* Texte "Pay with" */
.checkout-demo .checkout-title {
  color: var(--kn-purple) !important;
}

/* Lien $KAS — même couleur, aucun bleu par défaut */
.checkout-demo .checkout-title a {
  color: var(--kn-purple) !important;
  text-decoration: none;
  font-weight: 600;
}

/* Hover subtil (optionnel mais premium) */
.checkout-demo .checkout-title a:hover {
  text-decoration: underline;
}
/* ============================================================
   PATCH — FORCE PURPLE CHECKOUT TITLE (DEMO ONLY)
   Overrides theme-light checkout.css rule safely
============================================================ */

/* Texte + lien — toujours mauve dans le DEMO */
.theme-light .checkout-demo .checkout-title,
.theme-light .checkout-demo .checkout-title a,
.theme-dark .checkout-demo .checkout-title,
.theme-dark .checkout-demo .checkout-title a {
  color: var(--kn-purple) !important;
}

/* Optionnel : hover clean */
.checkout-demo .checkout-title a:hover {
  text-decoration: underline;
}
