/* ============================================
   SWA Market — Advanced UI layer
   White + dark green, elevated motion & depth
   ============================================ */

/* ---- Advanced Preloader ---- */
.loader-wrap {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34, 130, 58, 0.08), transparent 55%),
    #ffffff;
  overflow: hidden;
}
.loader-wrap::before,
.loader-wrap::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  border: 1px solid rgba(34, 130, 58, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loaderRipple 3.2s ease-out infinite;
  pointer-events: none;
}
.loader-wrap::after {
  animation-delay: 1.1s;
  width: 40vmax;
  height: 40vmax;
}
@keyframes loaderRipple {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

.loader-wrap.done {
  transition: opacity 0.65s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.65s;
}
.loader-wrap.done .preloader-inner {
  transform: translateY(-18px) scale(0.96);
  opacity: 0;
  transition: 0.45s ease;
}

.preloader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.preloader-orb {
  position: relative;
  width: 88px;
  height: 88px;
}
.preloader-orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.preloader-orb .ring-a {
  border-top-color: var(--swa-accent-bright);
  border-right-color: rgba(34, 130, 58, 0.25);
  animation: spin 1.1s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}
.preloader-orb .ring-b {
  inset: 10px;
  border-bottom-color: var(--swa-accent);
  border-left-color: rgba(34, 130, 58, 0.2);
  animation: spin 1.6s linear infinite reverse;
}
.preloader-orb .core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22823a, #145524);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow:
    0 8px 28px rgba(34, 130, 58, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  animation: corePulse 2s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.txt-loading {
  gap: 0.06em;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  letter-spacing: 0.22em;
}
.txt-loading span {
  color: rgba(19, 22, 21, 0.14);
  display: inline-block;
  transform: translateY(8px);
  animation: letterRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.txt-loading span:nth-child(1) { animation-delay: 0.05s; }
.txt-loading span:nth-child(2) { animation-delay: 0.1s; }
.txt-loading span:nth-child(3) { animation-delay: 0.15s; }
.txt-loading span:nth-child(4) { animation-delay: 0.2s; }
.txt-loading span:nth-child(5) { animation-delay: 0.25s; }
.txt-loading span:nth-child(6) { animation-delay: 0.3s; }
.txt-loading span:nth-child(7) { animation-delay: 0.35s; }
.txt-loading span:nth-child(8) { animation-delay: 0.4s; }
.txt-loading span:nth-child(9) { animation-delay: 0.45s; }
.txt-loading span:nth-child(10) { animation-delay: 0.5s; }
@keyframes letterRise {
  to { transform: translateY(0); color: rgba(19, 22, 21, 0.22); }
}
.txt-loading span::before {
  color: var(--swa-accent-bright);
  animation: letterFlash 2s ease-in-out infinite;
}

.loader-progress {
  width: min(220px, 55vw);
  height: 3px;
  background: rgba(34, 130, 58, 0.12);
  border-radius: 99px;
  overflow: hidden;
}
.loader-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #145524, #22823a, #3bb961);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.loader-meta {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--swa-muted);
}

/* ---- Hero upgrades ---- */
.banner-section { padding-top: 0; margin: 0; }
.banner-slide {
  min-height: clamp(460px, 78vh, 680px);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 20, 18, 0.18);
}
.banner-slide .bg-layer {
  transform: none;
  transition: none;
}
.banner-slide.active .bg-layer { transform: none; }
.banner-slide .bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%);
  pointer-events: none;
}
.content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  max-width: 580px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.15rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3bb961;
  box-shadow: 0 0 0 0 rgba(59, 185, 97, 0.55);
  animation: liveDot 1.8s ease-out infinite;
}
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(59, 185, 97, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(59, 185, 97, 0); }
}
.content-box h2 {
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.hero-panel {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(2.5rem, 6vw, 4rem);
  z-index: 3;
  width: min(280px, 38%);
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  color: #fff;
  animation: panelFloat 5.5s ease-in-out infinite;
}
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.hero-panel .pair {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.hero-panel .chg {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dcea0;
}
.hero-panel .price {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0.15rem 0 0.75rem;
}
.spark {
  width: 100%;
  height: 48px;
  display: block;
}
.spark path.fill {
  fill: url(#sparkFill);
  opacity: 0.35;
}
.spark path.line {
  fill: none;
  stroke: #3bb961;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawSpark 2.2s ease forwards 0.4s;
}
@keyframes drawSpark { to { stroke-dashoffset: 0; } }

.banner-dots {
  bottom: 1.75rem;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 99px;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
}
.banner-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 4;
  overflow: hidden;
}
.banner-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #145524, #3bb961);
}
.banner-slide.active .banner-progress > i {
  animation: slideProgress 6s linear forwards;
}
@keyframes slideProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (max-width: 900px) {
  .hero-panel { display: none; }
}

/* ---- Marquee clients ---- */
.clients-section {
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--swa-line);
}
.clients-marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 1.6rem 0;
}
.clients-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(19, 22, 21, 0.28);
  white-space: nowrap;
  transition: color 0.25s;
}
.clients-track span:hover { color: var(--swa-accent-bright); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Section titles ---- */
.sec-title .sub-title {
  position: relative;
  padding-left: 1.35rem;
}
.sec-title .sub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--swa-accent-bright);
  transform: translateY(-50%);
}
.sec-title.left .sub-title { padding-left: 1.35rem; }
.sec-title:not(.left) .sub-title { padding-left: 1.35rem; padding-right: 1.35rem; }
.sec-title:not(.left) .sub-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--swa-accent-bright);
  transform: translateY(-50%);
}

/* ---- Account cards pro ---- */
.account-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1.9rem 1.5rem 1.6rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(34, 130, 58, 0.35), rgba(34, 130, 58, 0.05) 45%, transparent) border-box;
  border: 1px solid transparent;
}
.account-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 130, 58, 0.1), transparent 70%);
  top: -50px;
  right: -40px;
  pointer-events: none;
  transition: transform 0.45s var(--ease);
}
.account-card:hover::after { transform: scale(1.35); }
.account-card .icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 1.2rem;
}
.account-card .tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: var(--swa-accent-soft);
  color: var(--swa-accent-bright);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--swa-accent-bright);
}
.account-card .card-link i {
  transition: transform 0.25s;
}
.account-card:hover .card-link i { transform: translateX(4px); }

/* ---- Video panel pro ---- */
.video-panel {
  border-radius: 14px;
  min-height: 420px;
  box-shadow: var(--swa-shadow-lg);
}
.video-panel .curve-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ---- Funfacts pro ---- */
.funfact-row {
  gap: 0;
  padding: 0.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--swa-line);
  box-shadow: var(--swa-shadow);
  overflow: hidden;
}
.funfact-card {
  padding: 2rem 1.5rem;
  position: relative;
}
.funfact-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--swa-line);
}
.funfact-card .count {
  background: linear-gradient(135deg, #145524, #3bb961);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Trading cards pro ---- */
.trading-card {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.trading-card .viz {
  height: 130px;
  margin: 0;
  position: relative;
  background:
    linear-gradient(160deg, #132018, #0f1412);
  color: #7dcea0;
  border-radius: 0;
}
.trading-card .viz i {
  position: relative;
  z-index: 1;
  font-size: 2rem;
}
.trading-card .viz svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  opacity: 0.85;
}
.trading-card .body {
  padding: 1.25rem 1.2rem 1.35rem;
}
.trading-card h3 { margin-bottom: 0.4rem; }
.trading-card p { min-height: auto; margin-bottom: 1rem; }
.trading-card .theme-btn { width: auto; }

/* ---- Process timeline ---- */
.process-steps { position: relative; padding-left: 0.25rem; }
.process-step {
  position: relative;
  padding-left: 1.25rem;
  border-bottom: none;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  transition: background 0.25s;
}
.process-step:hover { background: rgba(34, 130, 58, 0.05); }
.process-step .num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #22823a, #145524);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(34, 130, 58, 0.28);
  flex-shrink: 0;
}
.process-visual {
  border-radius: 16px;
  min-height: 400px;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 130, 58, 0.2), transparent 45%),
    linear-gradient(165deg, #e8f5ec, #f7faf8 40%, #dfeee4);
}
.center-badge {
  width: 168px;
  height: 168px;
  border-width: 3px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 12px rgba(34, 130, 58, 0.08),
    0 20px 50px rgba(34, 130, 58, 0.18);
}

/* ---- Awards ---- */
.award-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--swa-line);
  background: #fff;
  box-shadow: var(--swa-shadow);
}
.award-table tr:last-child { border-bottom: none; }
.award-table td { padding: 1.35rem 1.15rem; }
.award-table tr:hover { background: rgba(34, 130, 58, 0.04); }
.award-badge {
  border-radius: 12px;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, rgba(34, 130, 58, 0.14), rgba(34, 130, 58, 0.04));
}

/* ---- App mock pro ---- */
.app-banner {
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
  position: relative;
}
.app-banner::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 130, 58, 0.16), transparent 70%);
  right: -60px;
  top: -80px;
  pointer-events: none;
}
.app-mock {
  position: relative;
  min-height: 300px;
  border-radius: 28px 28px 8px 8px;
  padding: 1.25rem 1rem 1.5rem;
  background: linear-gradient(180deg, #1c2a22, #101512);
  box-shadow:
    0 30px 60px rgba(15, 20, 18, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  text-align: left;
}
.app-mock .notch {
  width: 72px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto 0.35rem;
}
.app-mock .screen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.app-mock .screen-card {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.app-mock .screen-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0.2rem 0;
  color: #fff;
}
.app-mock .up { color: #7dcea0; font-size: 0.8rem; font-weight: 600; }

/* ---- News pro ---- */
.news-card {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card .media {
  height: 120px;
  background:
    linear-gradient(135deg, rgba(34, 130, 58, 0.75), rgba(15, 20, 18, 0.85)),
    linear-gradient(120deg, #1a6b2e, #0f1412);
  position: relative;
}
.news-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.news-card .inner {
  padding: 1.35rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .date {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.95);
  color: var(--swa-accent-bright);
}
.news-card .media { display: block; }
.news-card .media .date { position: absolute; }

/* ---- Subscribe ---- */
.subscribe-bar {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(34, 130, 58, 0.28);
}
.subscribe-bar::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.06);
  right: -80px;
  top: -100px;
  pointer-events: none;
}

/* ---- Reveal upgrade ---- */
.reveal {
  filter: blur(8px);
  transform: translateY(36px) scale(0.985);
}
.reveal.visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* ---- 3D transparent assets ---- */
.img-3d {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  background: transparent !important;
  filter: drop-shadow(0 14px 28px rgba(15, 20, 18, 0.18));
  transition: transform 0.45s var(--ease), filter 0.45s ease;
  user-select: none;
  pointer-events: none;
}
.img-3d.float {
  animation: float3d 4.5s ease-in-out infinite;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.account-card .icon-box {
  background: transparent !important;
  width: 72px;
  height: 72px;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.account-card .icon-box .img-3d {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.account-card:hover .icon-box {
  background: transparent !important;
  color: inherit;
}
.account-card:hover .img-3d {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 18px 32px rgba(34, 130, 58, 0.28));
}

.trading-card .viz {
  background: linear-gradient(180deg, rgba(34, 130, 58, 0.06), rgba(244, 248, 245, 0.9)) !important;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.trading-card .viz .img-3d {
  width: 96px;
  height: 96px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.trading-card .viz svg { opacity: 0.35; }
.trading-card:hover .viz .img-3d {
  transform: translateY(-8px) scale(1.08);
}

.process-visual .img-3d {
  width: min(260px, 70%);
  position: relative;
  z-index: 1;
}
.process-visual .center-badge { display: none; }

.app-mock-art {
  display: grid;
  place-items: center;
  min-height: 300px;
}
.app-mock-art .img-3d {
  width: min(240px, 80%);
  max-height: 320px;
  object-fit: contain;
}

.hero-panel .img-3d {
  width: 64px;
  height: 64px;
  margin: 0.35rem 0 0.5rem;
  object-fit: contain;
}

.video-panel .img-3d {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: min(180px, 40%);
  opacity: 0.95;
  z-index: 1;
}

.asset-credit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}
.asset-credit a { color: rgba(255,255,255,0.55); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .clients-track,
  .hero-panel,
  .preloader-orb .ring,
  .banner-slide .bg-layer,
  .spark path.line,
  .img-3d.float { animation: none !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
}

