/* ===== CSS Variables ===== */
:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #3b82f6;
  --dark: #111827;
  --darker: #0b1120;
  --light: #f3f4f6;
  --gray: #6b7280;
  --success: #10b981;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ===== Base Styles ===== */


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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Enhanced Header Styles ===== */
header {
  position: fixed;
  width: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(17, 24, 39, 0.98);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  transition: all 0.3s ease;
  z-index: 100;
}

.logo:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.logo svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.mobile-menu-button span {
  width: 100%;
  height: 2px;
  background-color: var(--light);
  transition: all 0.3s ease-in-out;
}

.mobile-menu-button.active span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--gray);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--light);
}

nav a:hover::after {
  width: 100%;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Add these new styles after your existing nav styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-weight: 500;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transform: translateX(5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 8rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--darker) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 3s ease infinite;
}

.hero p {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Features Section ===== */
.features {
  background-color: var(--darker);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 50%);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: rgba(31, 41, 55, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(31, 41, 55, 0.8);
  border-color: var(--primary);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ===== Markets Section ===== */
.markets {
  text-align: center;
  background: linear-gradient(to bottom, var(--darker), var(--dark));
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.market-card {
  background-color: rgba(31, 41, 55, 0.6);
  border-radius: 1rem;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-card:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: rgba(31, 41, 55, 0.8);
  border-color: var(--primary);
}

.market-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.market-card:hover .market-icon {
  transform: rotate(360deg);
}

/* ===== CTA Section ===== */
.cta {
  background: var(--gradient);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

/* ===== Footer ===== */
footer {
  background-color: var(--darker);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--light);
  transform: translateX(5px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
}

/* ===== Animations ===== */
@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 1s ease-out forwards;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
  nav {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.98);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
  }

  .nav-container.active {
    transform: translateX(0);
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  nav a {
    font-size: 1.25rem;
  }

  .auth-buttons {
    margin-top: 2rem;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .auth-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    margin-top: 1rem;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.3s ease forwards;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-left: 2px solid var(--primary);
  }

  .badge {
    position: static;
    display: inline-block;
    margin-left: 0.5rem;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .feature-card,
  .market-card {
    padding: 1.5rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }
}

/* Trading Features Section */
.trading-features {
  background-color: var(--darker);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.trading-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%);
  pointer-events: none;
}

.trading-features h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.checkmark {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item p {
  font-size: 1rem;
  color: var(--light);
  margin: 0;
}

/* .platform-preview {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
} */
/* .platform-preview {
  display: flex;
 justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;

  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
}

.rishabh {

  flex: 1;
  justify-content: space-between;
}
.rishabh img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  
}

.utkarsh {
  flex: 1;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  color: #13b8f4;
  padding: 20px;

  max-width: 420px;
  margin: 40px auto 16px;

  font-family: Lexend, sans-serif;


  line-height: 1;
  letter-spacing: -2px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}  */

.platform-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.rishabh,
.utkarsh {
  flex: 1 1 50%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.rishabh img {
  max-width: 100%;
  height: auto;
}

.utkarsh {
  font-size: 40px;
  font-weight: bold;
  color: #13b8f4;

}

@media (max-width: 768px) {

  .rishabh,
  .utkarsh {
    flex: 1 1 100%;
  }

  .utkarsh {
    font-size: 25px;
  }
}

.platform-preview:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.platform-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Responsive styles for Trading Features */
@media (max-width: 1024px) {
  .trading-features h2 {
    font-size: 2.5rem;
  }

  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trading-features h2 {
    font-size: 2rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .trading-features h2 {
    font-size: 1.75rem;
  }

  .platform-preview {
    border-radius: 10px;
  }
}