* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0e27;
  color: white;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #000000, #0a0e27, #000814);
}

/* Matrix Canvas */
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Nebula Effects */
.nebula-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(6, 78, 100, 0.2) 0%, rgba(6, 182, 212, 0.3) 50%, transparent 100%);
  filter: blur(120px);
  animation: pulse 3s ease-in-out infinite;
}

.nebula-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 95, 70, 0.2) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 100%);
  filter: blur(100px);
  animation: pulse 3s ease-in-out infinite 1s;
}

/* Stars */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

/* Animated Numbers */
.animated-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.number-particle {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  transition: all 0.1s;
  text-shadow: 0 0 10px currentColor;
  transform: translate(-50%, -50%);
}

/* Trading Screens */
.trading-screens {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.trading-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1rem 8rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
  transition: all 0.3s;
}

.hero-badge:hover {
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
  transform: scale(1.05);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.gradient-text {
  background: linear-gradient(to right, #06b6d4, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

.hero-description {
  font-size: 1.125rem;
  color: #a5f3fc;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.formula-card {
  background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 42rem;
  margin: 0 auto 3rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
}

.formula-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.75;
}

.cta-button {
  position: relative;
  background: linear-gradient(to right, #06b6d4, #3b82f6, #10b981);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
  transition: all 0.3s;
  overflow: hidden;
}

.cta-button:hover {
  box-shadow: 0 0 100px rgba(6, 182, 212, 0.9);
  transform: scale(1.05);
  background: linear-gradient(to right, #0891b2, #2563eb, #059669);
}

/* Benefits Cards */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.benefit-card {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  text-align: center;
}

.benefit-card:hover {
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.benefit-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1rem;
}

/* Stock Ticker */
.stock-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, rgba(8, 47, 73, 0.8), rgba(30, 58, 138, 0.8), rgba(8, 47, 73, 0.8));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.75rem 0;
  overflow: hidden;
  z-index: 30;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
  }
  75% {
    transform: translateY(-25px) translateX(5px);
  }
}

/* Phone Section */
.phone-section {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
  background: linear-gradient(to bottom, #0a0e27, rgba(6, 95, 70, 0.2));
}

.phone-mockup {
  position: relative;
  z-index: 10;
  width: 320px;
  height: 640px;
  background: linear-gradient(to bottom, #1a1a1a, #000);
  border-radius: 3rem;
  padding: 0.75rem;
  margin: 0 auto;
  box-shadow: 0 0 100px rgba(6, 182, 212, 0.6);
}

/* Features Section */
.features-section {
  padding: 5rem 1rem;
  background: #0a0e27;
}

.feature-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(6, 95, 70, 0.4));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.5s;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.3);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 8rem 1rem;
  background: linear-gradient(to bottom, #0a0e27, rgba(6, 95, 70, 0.3));
  overflow: hidden;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.4), rgba(30, 58, 138, 0.4), rgba(16, 185, 129, 0.4));
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 100px rgba(6, 182, 212, 0.3);
  padding: 4rem;
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
  overflow: hidden;

}
@media screen and (max-width: 768px) {
  .cta-card {
    padding: 1rem;
  }
}

/* Footer */
footer {
  background: #0a0e27;
  border-top: 1px solid rgba(6, 95, 70, 0.3);
  padding: 3rem 1rem;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.popup-container {
  position: relative;
  background: linear-gradient(135deg, #0a0e27, #1e3a8a);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 1.5rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 0 100px rgba(6, 182, 212, 0.4);
  animation: popupFadeIn 0.3s ease-out;
  margin: 2rem auto;
}

.popup-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  z-index: 10;
  margin-bottom: 1rem;
}

.popup-close:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.9);
  transform: rotate(90deg) scale(1.1);
}

.pop-up-content-wrap {
  color: #bfdbfe;
  line-height: 1.75;
  clear: both;
}

.pop-up-content-wrap h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #06b6d4, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.pop-up-content-wrap p {
  margin-bottom: 1.5rem;
  color: #bfdbfe;
  font-size: 1rem;
}

.pop-up-content-wrap strong {
  color: #67e8f9;
  font-weight: 700;
  font-size: 1.125rem;
}

.pop-up-content-wrap ul {
  margin: 1rem 0 1.5rem 2rem;
  list-style-type: disc;
}

.pop-up-content-wrap li {
  margin-bottom: 0.75rem;
  color: #a5f3fc;
}

.pop-up-content-wrap li p {
  color: #a5f3fc;
  margin-bottom: 0.5rem;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Popup scrollbar styling */
.popup-container::-webkit-scrollbar {
  width: 10px;
}

.popup-container::-webkit-scrollbar-track {
  background: rgba(6, 182, 212, 0.1);
  border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #06b6d4, #3b82f6);
  border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0891b2, #2563eb);
}

/* Responsive */
@media (max-width: 768px) {
  .popup-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .pop-up-content-wrap h2 {
    font-size: 1.75rem;
  }

  .popup-close {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
  }

  .pop-up-content-wrap strong {
    font-size: 1rem;
  }

  .pop-up-content-wrap ul {
    margin-left: 1rem;
  }
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .trading-card {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
}
