:root {
  --bg: #030806;
  --bg-soft: #060f0b;
  --panel: rgba(10, 25, 18, 0.65);
  --panel-strong: rgba(6, 16, 11, 0.95);
  --text: #f2f7f4;
  --muted: #8aa395;
  --accent: #29d96c;
  --accent-2: #1cb85c;
  --accent-3: #8ef1b8;
  --border: rgba(41, 217, 108, 0.12);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px rgba(41, 217, 108, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(41, 217, 108, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(24, 184, 92, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(13, 27, 20, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #030806 0%, #060e0a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030806;
}
::-webkit-scrollbar-thumb {
  background: rgba(41, 217, 108, 0.25);
  border-radius: 99px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Navbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 8, 6, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 28px;
}

.trade-badge {
  background: rgba(41, 217, 108, 0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menu Toggle Button on Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Button Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #030806;
}

.btn-primary:hover {
  background: var(--accent-3);
  box-shadow: 0 0 15px rgba(41, 217, 108, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 60px;
}

.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 40%, #8ef1b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat-item h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Simulated Live Trading Terminal */
.hero-visual {
  display: flex;
  justify-content: center;
}

.terminal-card {
  background: rgba(6, 16, 11, 0.95);
  border: 1px solid rgba(41, 217, 108, 0.18);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(41, 217, 108, 0.1);
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: rgba(3, 8, 6, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.terminal-status {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: pulseBlink 1.5s infinite;
}

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

.terminal-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.terminal-left {
  border-right: 1px solid var(--border);
  padding-right: 20px;
}

.coin-selector-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.coin-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coin-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.coin-tab.active {
  background: rgba(41, 217, 108, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(41, 217, 108, 0.1);
}

.pair-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pair-selector strong {
  font-size: 1rem;
}

.price-val {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.price-val.price-up { color: var(--accent); }
.price-val.price-down { color: #ff6b6b; }

.change-pct {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.change-pct.positive {
  background: rgba(41, 217, 108, 0.1);
  color: var(--accent);
}

.trading-chart-mock {
  width: 100%;
  height: 120px;
  background: rgba(3, 8, 6, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

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

.order-form-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.order-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-tabs button.active {
  background: rgba(41, 217, 108, 0.12);
  color: var(--accent);
}

.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
}

.input-row span {
  color: var(--muted);
}

/* Terminal Right Orderbook and alerts list */
.terminal-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terminal-right h4 {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.order-book {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}

.order-book-row {
  display: flex;
  justify-content: space-between;
}

.order-book-row.ask { color: #ff6b6b; }
.order-book-row.bid { color: var(--accent); }

.alerts-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-item {
  border-left: 2px solid transparent;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

.alert-item.positive {
  border-color: var(--accent);
}

.alert-item.neutral {
  border-color: #007bff;
}

.alert-item span {
  color: var(--muted);
  font-size: 0.65rem;
}

.alert-item strong {
  color: var(--text);
}

/* Features grid styles */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-heading h2 {
  font-size: 2.2rem;
  margin: 10px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(10, 25, 18, 0.55);
  border: 1px solid rgba(41, 217, 108, 0.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(41, 217, 108, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(41, 217, 108, 0.08);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Pricing / Plans Sections */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
  align-items: center;
}

.price-card {
  background: rgba(10, 25, 18, 0.55);
  border: 1px solid rgba(41, 217, 108, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.price-card:hover {
  border-color: rgba(41, 217, 108, 0.2);
}

.price-card.featured {
  border-color: rgba(41, 217, 108, 0.25);
  background: rgba(14, 32, 23, 0.65);
  box-shadow: 0 25px 50px rgba(41, 217, 108, 0.08);
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .price-card.featured {
    transform: scale(1);
  }
}

.price-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.price-badge.highlight {
  color: var(--accent);
}

.price-val {
  margin-bottom: 20px;
}

.price-val strong {
  font-size: 2.8rem;
  font-weight: 800;
}

.price-val span {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 28px;
  min-height: 60px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Footer Section */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 28px;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Custom Dialog Modal Popup Box */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}

.modal-body {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid rgba(41, 217, 108, 0.2);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(41, 217, 108, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal.active .modal-body {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(41, 217, 108, 0.1);
  border: 1px solid rgba(41, 217, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(41, 217, 108, 0.15);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(41, 217, 108, 0.15); }
  50% { box-shadow: 0 0 25px rgba(41, 217, 108, 0.35); }
  100% { box-shadow: 0 0 10px rgba(41, 217, 108, 0.15); }
}

.modal-body h3 {
  font-size: 1.45rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.modal-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 0.95rem;
}

/* Responsive configurations */
@media (max-width: 991px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 0;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
