/* ============================================
   SENETRADING LANDING — STYLES
   Version: 1.0 | 01.06.2026
   ============================================ */

/* ─── HERO ─── */
.hero-bg {
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: rotateOrb 25s linear infinite;
  opacity: 0.6;
}

@keyframes rotateOrb {
  from { transform: rotate(0deg) translate(80px); }
  to { transform: rotate(360deg) translate(80px); }
}

.big-text {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2.5px;
}

/* ─── PROBLEMS SECTION ─── */
.problems-section {
  background: linear-gradient(180deg, #071a12 0%, #040d09 100%);
}

.problems-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 250px;
  background: linear-gradient(to bottom, rgba(34,197,94,0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Spotlight cards */
.card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx, -200px) var(--my, -200px), var(--spot-color, rgba(16,185,129,0.08)), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.problem-card:hover .card-spotlight { opacity: 1; }

.card-border-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(250px circle at var(--mx, -200px) var(--my, -200px), var(--spot-border, rgba(16,185,129,0.3)), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}

.problem-card:hover .card-border-glow { opacity: 1; }

.problem-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s;
}

.problem-card.revealed { opacity: 1; transform: translateY(0); }
.problem-card:hover { background-color: #0d2219; }

/* ─── CATALOG FILTER TABS ─── */
.filter-tab { color: #9ca3af; background: transparent; }
.filter-tab.active { color: #047857; background: #ecfdf5; }
.filter-tab:not(.active):hover { color: #6b7280; background: #f9fafb; }
.catalog-card.hidden-by-filter { display: none; }

/* ─── TRADING CARD ─── */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.trading-card-wrapper {
  position: relative;
  border-radius: 1.5rem;
  padding: 2px;
  background: conic-gradient(from var(--angle), #10b981, #06b6d4, #8b5cf6, #f59e0b, #10b981);
  animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

.trading-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1.7rem;
  background: conic-gradient(from var(--angle), #10b981, #06b6d4, #8b5cf6, #f59e0b, #10b981);
  filter: blur(12px);
  opacity: 0.5;
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}

.trading-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease-out;
}

/* Sparkline */
.sparkline-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.5s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.sparkline-glow {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.5s ease-out forwards;
  filter: blur(4px);
  opacity: 0.4;
}

.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.5; }
}

/* Counter */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Particles */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-180px) scale(0.3); opacity: 0; }
}

/* Live bars */
.live-bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  background: #10b981;
  border-radius: 2px;
  animation: liveBar 0.8s ease-in-out infinite alternate;
}

.live-bar:nth-child(2) { animation-delay: 0.15s; height: 12px; }
.live-bar:nth-child(3) { animation-delay: 0.3s; height: 20px; }
.live-bar:nth-child(4) { animation-delay: 0.45s; height: 10px; }
.live-bar:nth-child(5) { animation-delay: 0.6s; height: 14px; }

@keyframes liveBar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

/* Mini candles */
.candle { animation: candleGrow 0.6s ease-out forwards; transform: scaleY(0); transform-origin: bottom; }
.candle:nth-child(1) { animation-delay: 0.1s; }
.candle:nth-child(2) { animation-delay: 0.2s; }
.candle:nth-child(3) { animation-delay: 0.3s; }
.candle:nth-child(4) { animation-delay: 0.4s; }
.candle:nth-child(5) { animation-delay: 0.5s; }
.candle:nth-child(6) { animation-delay: 0.6s; }
.candle:nth-child(7) { animation-delay: 0.7s; }
.candle:nth-child(8) { animation-delay: 0.8s; }

@keyframes candleGrow {
  to { transform: scaleY(1); }
}

/* Education section */
.float-candle {
  position: absolute;
  bottom: 10%;
  width: 3px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  animation: floatCandle linear infinite;
}

.float-candle--red {
  background: rgba(255,100,100,0.15);
}

@keyframes floatCandle {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-300px) scale(0.5); opacity: 0; }
}

.price-line-pulse {
  animation: priceLinePulse 4s ease-in-out infinite;
}

@keyframes priceLinePulse {
  0%, 100% { stroke-opacity: 0.15; }
  50% { stroke-opacity: 0.3; }
}

/* Mission section animations */
.edu-card, .eco-card, .bento-card, .benefits-card {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ─── MISSION SECTION ─── */
.mission-text-line {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-text-line.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.mission-gradient-text {
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-line-draw {
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.mission-line-draw.revealed {
  transform: scaleX(1);
}

.timeline-step { position: relative; padding-top: 0; padding-bottom: 0; }

@media (min-width: 768px) {
  .timeline-step { padding-top: 2rem; padding-bottom: 2rem; }
}

.timeline-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.timeline-card.revealed { opacity: 1; transform: translateY(0); }

.timeline-dot.active {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.2);
}

.timeline-dot.active svg { color: #10b981; }

@media (hover: hover) {
  .timeline-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.03), 0 20px 50px rgba(16, 185, 129, 0.07);
  }
}

.mission-bottom-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-bottom-card.revealed { opacity: 1; transform: translateY(0); }

/* CTA reveals */
.cta-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Benefits cards */
.benefits-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.benefits-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .benefits-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.03), 0 20px 50px rgba(16, 185, 129, 0.07);
  }
}

/* ─── TOUCH OVERRIDES ─── */
@media (hover: none) {
  .problem-card, .benefits-card, .timeline-card,
  .mission-text-line, .mission-line-draw,
  .mission-bottom-card, .cta-reveal {
    opacity: 1; transform: none; filter: none;
  }
  .timeline-dot { border-color: #10b981; }
  .timeline-dot svg { color: #10b981; }
}

/* Animated line pulse (ecosystem) */
@keyframes linePulse {
  0%, 100% { transform: translateX(-50px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(calc(100% + 50px)); opacity: 0; }
}

.animate-line-pulse { animation: linePulse 3s ease-in-out infinite; }

/* Progress path draw */
.progress-path-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawPath 2s ease-out 0.5s forwards;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.module-dot-pulse {
  animation: moduleDotPulse 2s ease-in-out infinite;
}

@keyframes moduleDotPulse {
  0%, 100% { r: 5; }
  50% { r: 7; }
}

/* Chart draw (hover effect) */
.chart-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1s ease;
}

.group:hover .chart-draw {
  stroke-dashoffset: 0;
}
