/* ==========================================================================
   Final Goal — the loudest card on the "Why use crypto" page.
   Loaded after whyusecrypto.css so it can restyle the goal card on its own.
   ========================================================================== */

.whyusecrypto .container > .card.card--final {
  grid-column: 1 / -1;
  padding: 34px 30px 32px;
  text-align: center;
  isolation: isolate;
}

/* golden halo that breathes behind the headline */
.whyusecrypto .container > .card.card--final::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 640px;
  height: 340px;
  margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.22), transparent 66%);
  filter: blur(16px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  animation: why-goal-halo 9s ease-in-out infinite;
}

@keyframes why-goal-halo {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- crest, label and the goal itself ---------------------------- */

.whyusecrypto .card--final .why-goal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.whyusecrypto .card--final .why-goal__crest {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 200, 87, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.22), transparent 70%);
  box-shadow: 0 0 22px rgba(255, 200, 87, 0.26);
  font-size: 1.45rem;
  line-height: 1;
  animation: why-goal-crest 6s ease-in-out infinite;
}

@keyframes why-goal-crest {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 200, 87, 0.22); transform: translateY(0); }
  50% { box-shadow: 0 0 32px rgba(255, 200, 87, 0.55); transform: translateY(-2px); }
}

.whyusecrypto .card--final .why-goal h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 212, 121, 0.72);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.44em;
  line-height: 1;
  text-transform: uppercase;
  text-indent: 0.44em;
  text-shadow: none;
}

.whyusecrypto .card--final .why-goal-tag {
  display: block;
  width: auto;
  margin: 0;
  color: #fffdf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow:
    0 0 18px rgba(255, 200, 87, 0.5),
    0 0 48px rgba(255, 200, 87, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.45);
  animation: why-goal-flare 4.2s ease-in-out infinite;
}

.whyusecrypto .card--final .why-goal-tag::after {
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(255, 200, 87, 0.04), #ffc857, rgba(255, 200, 87, 0.04));
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(255, 200, 87, 0.5);
  animation: why-goal-sweep 3.6s linear infinite;
}

@keyframes why-goal-flare {
  0%, 100% {
    text-shadow:
      0 0 16px rgba(255, 200, 87, 0.42),
      0 0 44px rgba(255, 200, 87, 0.22),
      0 1px 0 rgba(0, 0, 0, 0.45);
  }
  50% {
    text-shadow:
      0 0 26px rgba(255, 200, 87, 0.85),
      0 0 70px rgba(255, 200, 87, 0.45),
      0 1px 0 rgba(0, 0, 0, 0.45);
  }
}

/* ---------- three pillars instead of a lopsided two-column list --------- */

.whyusecrypto .container > .card.card--final ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.whyusecrypto .container > .card.card--final li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 24px 22px 26px;
  border: 1px solid rgba(255, 200, 87, 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 200, 87, 0.09), rgba(10, 8, 12, 0.55));
  color: #efe9dc;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.whyusecrypto .container > .card.card--final li:first-child {
  padding-top: 24px;
}

.whyusecrypto .container > .card.card--final li:last-child {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 200, 87, 0.18);
}

.whyusecrypto .container > .card.card--final li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 87, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 22px rgba(255, 200, 87, 0.16);
}

.whyusecrypto .card--final .why-goal-pillars__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 12px;
  background: rgba(255, 200, 87, 0.12);
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- the freedom bird next to the headline ------------------------ */

.whyusecrypto .card--final .why-goal__line {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
}

.whyusecrypto .card--final .why-goal__bird {
  flex: 0 0 auto;
  width: clamp(34px, 4.2vw, 54px);
  height: auto;
  fill: #ffd479;
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.5));
  animation: why-bird-fly 4.6s ease-in-out infinite;
}

.whyusecrypto .card--final .why-goal__bird-wings {
  transform-box: fill-box;
  transform-origin: 50% 85%;
  animation: why-bird-flap 0.9s ease-in-out infinite;
}

@keyframes why-bird-fly {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(4px, -7px) rotate(4deg); }
}

@keyframes why-bird-flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.62); }
}

/* ---------- the scene: island, yacht, jet, sports car -------------------- */

.whyusecrypto .why-goal-scene {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 18px;
  background: #241136;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.whyusecrypto .why-goal-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

/* sun */
.whyusecrypto .sc-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: sc-sun-pulse 8s ease-in-out infinite;
}

@keyframes sc-sun-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* clouds */
.whyusecrypto .sc-cloud--1 { animation: sc-drift 26s ease-in-out infinite; }
.whyusecrypto .sc-cloud--2 { animation: sc-drift 34s ease-in-out infinite reverse; }
.whyusecrypto .sc-cloud--3 { animation: sc-drift 44s ease-in-out infinite; }

@keyframes sc-drift {
  0%, 100% { transform: translateX(-16px); }
  50% { transform: translateX(16px); }
}

/* private jet crossing the sky */
.whyusecrypto .sc-jet {
  animation: sc-jet-fly 26s linear infinite;
}

.whyusecrypto .sc-jet__body {
  animation: sc-bob 5.2s ease-in-out infinite;
}

.whyusecrypto .sc-jet__trail {
  animation: sc-trail 0.67s linear infinite;
}

@keyframes sc-jet-fly {
  0% { transform: translate(1090px, 80px); }
  100% { transform: translate(-160px, 80px); }
}

@keyframes sc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sc-trail {
  from { transform: translateX(0); }
  to { transform: translateX(32px); }
}

/* waves */
.whyusecrypto .sc-wave--a { animation: sc-wave-run 11s ease-in-out infinite; }
.whyusecrypto .sc-wave--b { animation: sc-wave-run 15s ease-in-out infinite reverse; }

@keyframes sc-wave-run {
  0%, 100% { transform: translateX(-18px); }
  50% { transform: translateX(18px); }
}

/* palm sway */
.whyusecrypto .sc-palm {
  transform-box: fill-box;
  transform-origin: 20% 100%;
  animation: sc-sway 6.5s ease-in-out infinite;
}

@keyframes sc-sway {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(1.8deg); }
}

/* yacht bobbing on the water */
.whyusecrypto .sc-yacht {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: translate(340px, 160px);
  animation: sc-boat 5s ease-in-out infinite;
}

@keyframes sc-boat {
  0%, 100% { transform: translate(340px, 160px) rotate(-1.6deg); }
  50% { transform: translate(340px, 156px) rotate(1.6deg); }
}

/* parasol sways a little with the palm */
.whyusecrypto .sc-parasol {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sc-sway 9s ease-in-out infinite;
}

/* sports car with spinning, sparkling wheels */
.whyusecrypto .sc-car {
  animation: sc-drive 16s linear infinite;
}

.whyusecrypto .sc-car__chassis {
  animation: sc-bounce 1.7s ease-in-out infinite;
}

.whyusecrypto .sc-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: sc-wheel-roll 16s linear infinite;
}

/* driver steps out once the car has arrived */
.whyusecrypto .sc-door {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: sc-door-open 16s linear infinite;
}

.whyusecrypto .sc-driver {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  animation: sc-driver-out 16s linear infinite;
}

/* the centre line is painted road marking — it does not move */
.whyusecrypto .sc-roadline {
  animation: none;
}

.whyusecrypto .sc-bush {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sc-sway 7.5s ease-in-out infinite;
}

.whyusecrypto .sc-bush--2 { animation-duration: 9s; animation-direction: reverse; }
.whyusecrypto .sc-bush--3 { animation-duration: 8.2s; }
.whyusecrypto .sc-bush--4 { animation-duration: 6.8s; }

.whyusecrypto .sc-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: sc-twinkle 2.4s ease-in-out infinite;
}

@keyframes sc-drive {
  0% { transform: translate(1010px, 198px); opacity: 0; }
  9% { opacity: 1; }
  52% { transform: translate(640px, 198px); opacity: 1; }
  93% { transform: translate(640px, 198px); opacity: 1; }
  98% { opacity: 0; }
  100% { transform: translate(640px, 198px); opacity: 0; }
}

/* one wheel turn per ~85 units of travel (circumference), stops with the car */
@keyframes sc-wheel-roll {
  0% { transform: rotate(0deg); }
  52% { transform: rotate(-1570deg); }
  100% { transform: rotate(-1570deg); }
}

@keyframes sc-door-open {
  0%, 54% { transform: rotate(0deg); }
  60% { transform: rotate(-42deg); }
  88% { transform: rotate(-42deg); }
  94%, 100% { transform: rotate(0deg); }
}

@keyframes sc-driver-out {
  0%, 56% { opacity: 0; transform: translateY(6px) scale(0.86); }
  63% { opacity: 1; transform: translateY(0) scale(1); }
  90% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(0) scale(1); }
}

@keyframes sc-road {
  from { transform: translateX(0); }
  to { transform: translateX(-24px); }
}

@keyframes sc-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.6px); }
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

@keyframes sc-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 980px) {
  .whyusecrypto .container > .card.card--final ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .whyusecrypto .container > .card.card--final {
    padding: 26px 18px 24px;
  }

  .whyusecrypto .card--final .why-goal {
    margin-bottom: 18px;
  }

  .whyusecrypto .card--final .why-goal h2 {
    font-size: 0.68rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .whyusecrypto .card--final .why-goal__crest {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .whyusecrypto .card--final li {
    padding: 16px 15px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whyusecrypto .container > .card.card--final::after,
  .whyusecrypto .card--final .why-goal__crest,
  .whyusecrypto .card--final .why-goal-tag,
  .whyusecrypto .card--final .why-goal-tag::after,
  .whyusecrypto .card--final .why-goal__bird,
  .whyusecrypto .card--final .why-goal__bird-wings,
  .whyusecrypto .why-goal-scene .sc-sun,
  .whyusecrypto .why-goal-scene .sc-cloud,
  .whyusecrypto .why-goal-scene .sc-jet,
  .whyusecrypto .why-goal-scene .sc-jet__body,
  .whyusecrypto .why-goal-scene .sc-jet__trail,
  .whyusecrypto .why-goal-scene .sc-wave,
  .whyusecrypto .why-goal-scene .sc-palm,
  .whyusecrypto .why-goal-scene .sc-yacht,
  .whyusecrypto .why-goal-scene .sc-parasol,
  .whyusecrypto .why-goal-scene .sc-car,
  .whyusecrypto .why-goal-scene .sc-car__chassis,
  .whyusecrypto .why-goal-scene .sc-wheel,
  .whyusecrypto .why-goal-scene .sc-door,
  .whyusecrypto .why-goal-scene .sc-driver,
  .whyusecrypto .why-goal-scene .sc-roadline,
  .whyusecrypto .why-goal-scene .sc-bush,
  .whyusecrypto .why-goal-scene .sc-spark {
    animation: none !important;
  }
}
