:root {
  --color-primary: #4EC8FF;
  --color-black: #000000;
  --color-green-start: #00FF99;
  --color-green-end: #00FF66;
  --color-yellow: #FFD700;
  --color-white: #ffffff;
  --color-gray: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at center, #111111 0%, var(--color-black) 100%);
  min-height: 100vh;
  color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  padding: 0rem 0;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-primary);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.trader-portrait {
  max-width: 100%;
  max-height: 500px; /* Balance layout, sharp for 1000px or 500px images */
  width: auto; /* Respect native width */
  height: auto; /* Maintain 1:1 aspect ratio */
  object-fit: contain; /* Show full image, no cropping */
  border-radius: 16px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5))
         drop-shadow(0 0 20px rgba(78, 200, 255, 0.3));
  transition: filter 0.3s ease;
  display: block; /* Ensure centering */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
}

.trader-portrait:hover {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6))
         drop-shadow(0 0 30px rgba(78, 200, 255, 0.4));
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3rem); /* Enhanced hierarchy */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 2rem; /* Added to replace observation spacing */
}

.highlight-blue {
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(78, 200, 255, 0.4);
}

.highlight-green {
  color: var(--color-green-start);
}

.highlight-yellow {
  color: var(--color-yellow);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  display: block;
  margin: 1rem 0;
  text-align: center;
}

.observation {
  font-size: 0.95rem;
  color: var(--color-white); /* Improved contrast */
  letter-spacing: 0.02em;
  padding: 1.5rem;
  margin-top: 2rem; /* Added spacing above */
  margin-bottom: 2rem; /* Added spacing below */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Browser compatibility */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  word-break: break-word; /* Handle long text */
}

.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-green-start), var(--color-green-end));
  color: var(--color-black);
  padding: clamp(1.2rem, 3vw, 1.5rem) clamp(2.4rem, 5vw, 3rem); /* Dynamic padding */
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
  border: 1px solid rgba(0, 255, 153, 0.3);
  will-change: transform; /* Optimize animation */
  animation: buttonPulse 2s ease-in-out infinite;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.5);
  filter: brightness(1.1);
}

.cta-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px; /* Accessibility */
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.cta-subtext {
  color: var(--color-gray);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 992px) {
  .hero-content {
    gap: 2rem;
  }
  .trader-portrait {
    max-height: 400px; /* Scale down for smaller screens */
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    gap: 3rem;
  }

  .trader-portrait {
    max-height: 350px; /* Balanced for tablets */
  }

  h1 {
    font-size: clamp(1.8rem, 4vw, 2rem);
  }

  h2 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem; /* Adjusted for smaller screens */
  }

  .observation {
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 1rem;
  }

  .logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }

  .trader-portrait {
    max-height: 250px; /* Fit small mobile screens */
  }

  h1 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }

  h2 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1rem; /* Tighter spacing for mobile */
  }

  .cta-button {
    font-size: clamp(1rem, 3vw, 1.2rem);
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 5vw, 2.4rem);
  }

  .observation {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}