@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary-cyan: #00D4FF;
  --primary-purple: #B026FF;
  --secondary-cyan: #00E5FF;
  --secondary-purple: #E91E63;
  --bg-dark: #050816;
  --bg-darker: #0a0e27;
  --bg-card: rgba(15, 23, 42, 0.6);
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-light: #cbd5e1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.App {
  min-height: 100vh;
  background: linear-gradient(135deg, #050816 0%, #0a0e27 50%, #1a1f3a 100%);
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
  filter: blur(10px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-cyan);
}

.nav-link.active {
  color: var(--primary-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
}

.navbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.language-selector select {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.btn-connect {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn-connect.connected {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.enhanced-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.neural-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Trading Chart Mockups */
.trading-chart-left,
.trading-chart-right {
  position: absolute;
  z-index: 1;
  width: 350px;
  height: 250px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 15px;
  padding: 1rem;
  animation: fadeInScale 1s ease 0.8s both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.trading-chart-left {
  top: 20%;
  left: 5%;
  transform: perspective(600px) rotateY(5deg);
}

.trading-chart-right {
  top: 25%;
  right: 5%;
  transform: perspective(600px) rotateY(-5deg);
}

.chart-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.chart-title {
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.mini-chart {
  width: 100%;
  height: 150px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-svg polyline {
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  border-radius: 30px;
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}

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

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-cyan) 30%, var(--primary-purple) 70%, var(--secondary-purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--primary-cyan);
  border-radius: 12px;
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  border-radius: 30px;
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-cyan);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(176, 38, 255, 0.2));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-cyan);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* Roadmap Section */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.roadmap-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
  z-index: 0;
}

.roadmap-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.roadmap-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-cyan);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.roadmap-quarter {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.roadmap-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.roadmap-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.roadmap-card ul {
  list-style: none;
}

.roadmap-card li {
  color: var(--text-light);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.roadmap-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.final-cta {
  text-align: center;
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(176, 38, 255, 0.05));
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Tutorials Page */
.tutorials-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4rem;
}

.tutorial-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tutorial-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tutorial-header p {
  color: var(--text-gray);
  font-size: 1.2rem;
}

.tutorial-content {
  max-width: 800px;
  margin: 0 auto;
}

.tutorial-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.tutorial-image {
  margin-bottom: 2rem;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.tutorial-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tutorial-card p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

.tutorial-progress {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  transform: scale(1.3);
}

.tutorial-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tutorial-note {
  color: var(--text-gray);
  font-size: 0.9rem;
  text-align: center;
}

.tutorial-complete {
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  color: #10b981;
  margin-bottom: 2rem;
}

.tutorial-complete h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tutorial-complete p {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Live Trading Page */
.live-trading-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-gray);
  font-size: 1.2rem;
}

.market-overview {
  margin-bottom: 4rem;
}

.market-overview h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.crypto-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.crypto-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crypto-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.crypto-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.crypto-header p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.crypto-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
}

.change {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.change.positive {
  color: #10b981;
}

.change.negative {
  color: #ef4444;
}

/* Live Trades Section */
.live-trades {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
}

.live-trades .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.live-trades h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
}

.pulse-icon {
  animation: pulse 2s ease-in-out infinite;
}

.live-indicator {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.9rem;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.trades-table {
  width: 100%;
}

.table-header {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr 2fr 1.5fr;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  font-weight: 600;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.table-body {
  max-height: 600px;
  overflow-y: auto;
}

.trade-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr 2fr 1.5fr;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.trade-row:hover {
  background: rgba(0, 212, 255, 0.05);
}

.trade-row .pair {
  font-weight: 600;
  color: var(--primary-cyan);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.buy {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge.sell {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .roadmap-grid::before {
    display: none;
  }
  
  .trading-chart-left,
  .trading-chart-right {
    width: 280px;
    height: 200px;
  }
}

@media (max-width: 968px) {
  .navbar-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .trading-chart-left,
  .trading-chart-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .grid-3,
  .grid-4,
  .roadmap-grid,
  .crypto-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .table-header,
  .trade-row {
    font-size: 0.8rem;
    grid-template-columns: 1fr 1.5fr 1fr 1.5fr 1fr;
  }
}
